Skip to content
Commit 3fd0801a authored by Robert Lubos's avatar Robert Lubos Committed by Fabio Baltieri
Browse files

net: ipv4: Fix packet leak with IPv4 autoconf



The IPv4 autoconfiguration feature relies on the fact, that autoconf
ARP packets are always prepared by the ARP module. After recent ARP
refactoring though that could no longer be the case due to packet
queueing mechanism. This could lead to net pkt leaks in the autoconf
module.

Fix this by skipping the pending packet queue for autoconf packets.
Since for autoconf ARP requests there's no really a pending packet
to queue, it can be safely avoided. This results in the ARP request
being always sent for the autoconf case, preventing the packet leak.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent 5e4eeb10
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment