From 203f2b67c0bea9646b4cf18bafba6e735df4efe3 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Tue, 27 May 2025 18:07:34 -0400 Subject: Pull the ARP-ping from libdhcp to net_iface --- libhw_generic/include/libhw/generic/net.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libhw_generic/include/libhw/generic/net.h') diff --git a/libhw_generic/include/libhw/generic/net.h b/libhw_generic/include/libhw/generic/net.h index 04d1082..55e4a6f 100644 --- a/libhw_generic/include/libhw/generic/net.h +++ b/libhw_generic/include/libhw/generic/net.h @@ -126,7 +126,10 @@ struct net_iface_config { \ LO_FUNC(lo_interface net_stream_listener, tcp_listen, uint16_t local_port) \ LO_FUNC(lo_interface net_stream_conn , tcp_dial , struct net_ip4_addr remote_node, uint16_t remote_port) \ - LO_FUNC(lo_interface net_packet_conn , udp_conn , uint16_t local_port) + LO_FUNC(lo_interface net_packet_conn , udp_conn , uint16_t local_port) \ + \ + /** FIXME: arp_ping should probably have an explicit timeout or something. */ \ + LO_FUNC(bool , arp_ping , struct net_ip4_addr) LO_INTERFACE(net_iface); #endif /* _LIBHW_GENERIC_NET_H_ */ -- cgit v1.2.3-2-g168b