Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Announce 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. Instead of looping over IPv4 and IPv6 addresses together, split the loop. Iterate first over IPv4 addresses, which potentially can complete fast without waiting. While at it, don't let the first error shortcut the announcement of future addresses. Loop over all addresses, but return the first error we encountered. The caller anyway ignores the error and only uses it for debug logging.
- Loading branch information