diff options
author | Joe Hershberger | 2018-09-26 16:48:58 -0500 |
---|---|---|
committer | Joe Hershberger | 2018-10-10 12:28:58 -0500 |
commit | 3f02c98bd1000fc26ee2700fd5a75112cdeaca6c (patch) | |
tree | 89ce7087f91b06e5ad12442dd6487ab5d3f0c149 /include/net.h | |
parent | c67a420781012abb5c888e2857efde12cf27284b (diff) |
net: Add an accessor to know if waiting for ARP
This single-sources the state of the ARP.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/net.h')
-rw-r--r-- | include/net.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h index 156bdc1da4d..40e895316ee 100644 --- a/include/net.h +++ b/include/net.h @@ -636,6 +636,7 @@ rxhand_f *net_get_udp_handler(void); /* Get UDP RX packet handler */ void net_set_udp_handler(rxhand_f *); /* Set UDP RX packet handler */ rxhand_f *net_get_arp_handler(void); /* Get ARP RX packet handler */ void net_set_arp_handler(rxhand_f *); /* Set ARP RX packet handler */ +bool arp_is_waiting(void); /* Waiting for ARP reply? */ void net_set_icmp_handler(rxhand_icmp_f *f); /* Set ICMP RX handler */ void net_set_timeout_handler(ulong, thand_f *);/* Set timeout handler */ |