summaryrefslogtreecommitdiff
path: root/libhw_generic/include/libhw/generic/net.h
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-05-27 18:07:34 -0400
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-05-27 19:23:14 -0400
commit203f2b67c0bea9646b4cf18bafba6e735df4efe3 (patch)
treecf164c300fbb0d843ef3cc238cb15fa40610edae /libhw_generic/include/libhw/generic/net.h
parent7dd869b107af520a5ce6870efab8becce5d81b15 (diff)
Pull the ARP-ping from libdhcp to net_iface
Diffstat (limited to 'libhw_generic/include/libhw/generic/net.h')
-rw-r--r--libhw_generic/include/libhw/generic/net.h5
1 files changed, 4 insertions, 1 deletions
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_ */