As etharp already sends packets from the queue asynchronously, also make it send packet submitted through etharp_output().

etharp_output() now returns err_t.
etharp_query() now sends a packet directly if the IP address is stable.
This commit is contained in:
likewise
2004-05-05 18:28:42 +00:00
parent 015cb1a35d
commit 29df95c514
3 changed files with 153 additions and 170 deletions

View File

@@ -98,7 +98,7 @@ void etharp_tmr(void);
void etharp_ip_input(struct netif *netif, struct pbuf *p);
void etharp_arp_input(struct netif *netif, struct eth_addr *ethaddr,
struct pbuf *p);
struct pbuf *etharp_output(struct netif *netif, struct ip_addr *ipaddr,
err_t etharp_output(struct netif *netif, struct ip_addr *ipaddr,
struct pbuf *q);
err_t etharp_query(struct netif *netif, struct ip_addr *ipaddr, struct pbuf *q);