kernel-pfroute: If a new interface appears, slightly delay address enumeration
authorMartin Willi <martin@revosec.ch>
Fri, 24 Oct 2014 13:21:11 +0000 (15:21 +0200)
committerMartin Willi <martin@revosec.ch>
Tue, 16 Dec 2014 16:22:28 +0000 (17:22 +0100)
commit6fa203b8d4dfdaad586a3b056cb1ff1318f6e643
treea711b2e02768e10a8b6bdb6eb5406b938e63660a
parent1c6188a0c2cd25604fdcc9b1843298286fb34dfc
kernel-pfroute: If a new interface appears, slightly delay address enumeration

On OS X 10.10, when installing a virtual IP on a tun device, there is a chance
that a RTM_IFANNOUNCE is sent before the IP is ready on that link when calling
getifaddrs(). As we don't get an RTM_NEWADDR event either, that race lets us
miss the virtual IP install event, failing the add_ip() call.
src/libhydra/plugins/kernel_pfroute/kernel_pfroute_net.c