]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit - src/if-options.c
dhcpcd: Add support for arp persist defence (#273)
authorpradeep-brightsign <148219883+pradeep-brightsign@users.noreply.github.com>
Thu, 21 Dec 2023 10:26:09 +0000 (10:26 +0000)
committerGitHub <noreply@github.com>
Thu, 21 Dec 2023 10:26:09 +0000 (10:26 +0000)
commite65e82a58d3029412984d9b1efc3a88cd1a059de
tree4d6a8cce9555ce9039c9eac3cdbe2dd09548fd92
parent1c8ae59836fa87b4c63c598087f0460ec20ed862
dhcpcd: Add support for arp persist defence (#273)

RFC 5227 recommends 3 ways to deal with address conflict detection.
a) Stop everything.
b) Defend and then stop on fail - this is what dhcpcd currently does.
c) Notify and carry on.

The current change implements the option c. A new option arp_persistdefence
has been added and when this is enabled, the a defence is attempted upon a
conflict and when that fails, an error is logged on every other conflict
within the DEFEND_INTERVAL and the current IP address is retained.

Fixes #272
src/arp.c
src/dhcpcd.conf.5.in
src/if-options.c
src/if-options.h