net/arp: account for ARP delay, avoid duplicate packets on timeout
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Sun, 30 Aug 2015 15:46:54 +0000 (17:46 +0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Wed, 28 Oct 2015 19:57:37 +0000 (14:57 -0500)
commit45b47734a0788721c76e3bb621a5133554e0a640
treefb8b5ce5c47435ff1683d918c563e48436809e5b
parent943231119f3caaaca7db4c588e4f3e9a6cec426a
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>
net/arp.c
net/arp.h
net/net.c