Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Announce fir IPv4 addresses (GARP) before IPv6 NA
To announce IPv6 addresses, SendUnsolicitedNeighborAdvertisement() possibly needs to wait for tentative IPv6 addresses to become usable (DAD). This can take more than a second. Change the loop over all addresses, to iterate them twice, and on the first run announce IPv4 addresses. IPv4 addresses don't need to be affected by this waiting. Note that utils.AnnounceIPs() is called towards the end of whatever the command invocation is doing. This reordering, ensures that we potentially announce IPv4 addresses earlier.
- Loading branch information