[PATCH] Stop ARP probes when conflict is detected

Cherry-picked from
https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/
master/net-misc/dhcpcd/files/patches/dhcpcd-6.8.2-Stop-ARP-probes-when-
conflict-is-detected.patch.

Currently, an ARP state is create for each IP when performing duplicate
address detection. However, when duplicate address is detected, the ARP
state for that IP doesn't get cleanup, causing the ARP request to be
sent continuously with a random timeout.  All ARP states would eventually
get cleanup when a duplicate address detection succeed.

So clean up the ARP state when duplicate address is detected to avoid
generating unnecessary traffics and causing any problems with the dhcp
state machine.

BUG: 22956197
Change-Id: I0e6a2f14eb3871872dee409b6b0c87ec19c58bed

Reviewed-on: https://chromium-review.googlesource.com/272614
1 file changed