When using lagg failover mode no gratuitous ARP (IPv4) or neighbour advertisements are sent to notify other nodes that the address has moved. This results is slow
failover, dropped packets and network outages for the lagg interface.
Based on work from koobs@ and suggestions from glebius@ this change fixes this.
It uses a new linkstate (LINK_STATE_UP_FORCE) to allow lagg to force through link state changes and hence fire a ifnet_link_event which are now monitored by rip and nd6.
Upon receiving these events the protocols trigger the relevant notifications:
- inet4 => Gratuitous ARP
- inet6 => Neighbour Announce
This fixes PR #156226
Original thread from 2012: PATCH if_lagg driver enhancements.