arp: Implement sticky ARP mode for interfaces.
authorKonrad Sewiłło-Jopek <kjopek@gmail.com>
Fri, 27 May 2022 11:02:57 +0000 (11:02 +0000)
committerAlexander V. Chernikov <melifaro@FreeBSD.org>
Fri, 27 May 2022 12:41:30 +0000 (12:41 +0000)
commitc9a5c48ae88dcd10c1a1273e028f98761887f190
tree65b0eae14d17f608786a1bd51d80fdcef4fb1a48
parent18054d0220cfc8df9c9568c437bd6fbb59d53c3c
arp: Implement sticky ARP mode for interfaces.

Provide sticky ARP flag for network interface which marks it as the
"sticky" one similarly to what we have for bridges. Once interface is
marked sticky, any address resolved using the ARP will be saved as a
static one in the ARP table. Such functionality may be used to prevent
ARP spoofing or to decrease latencies in Ethernet networks.

The drawbacks include potential limitations in usage of ARP-based
load-balancers and high-availability solutions such as carp(4).

The implemented option is disabled by default, therefore should not
impact the default behaviour of the networking stack.

Sponsored by: Conclusive Engineering sp. z o.o.
Reviewed By: melifaro, pauamma_gundo.com
Differential Revision: https://reviews.freebsd.org/D35314
MFC after: 2 weeks
sbin/ifconfig/ifconfig.8
sbin/ifconfig/ifconfig.c
sys/net/if.h
sys/netinet/if_ether.c