net/arp: account for ARP delay, avoid duplicate packets on timeout
eth_rx() in the main reception loop may trigger sending a packet which is already timed out (or will immediately) upon reception of an ARP reply. As long as the ARP reply is pending, the timeout handler of a packet should be postponed. Happens on TFTP with bad network (e.g. WLAN). Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
committed by
Joe Hershberger
parent
943231119f
commit
45b47734a0
@@ -25,7 +25,7 @@ void arp_init(void);
|
||||
void arp_request(void);
|
||||
void arp_raw_request(struct in_addr source_ip, const uchar *targetEther,
|
||||
struct in_addr target_ip);
|
||||
void arp_timeout_check(void);
|
||||
int arp_timeout_check(void);
|
||||
void arp_receive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len);
|
||||
|
||||
#endif /* __ARP_H__ */
|
||||
|
||||
Reference in New Issue
Block a user