Try to delete all interface addresses on shutdown
commit426e34566295fbc41c0e1a8bf38d10990963e150
authorMattias Nissler <mattias.nissler@gmx.de>
Wed, 20 Feb 2008 23:57:02 +0000 (21 00:57 +0100)
committerMattias Nissler <mattias.nissler@gmx.de>
Thu, 21 Feb 2008 00:00:26 +0000 (21 01:00 +0100)
tree49a83ee9eebe89791771e4bcbfae55ac9fb9a81c
parent87934feb72ad21aeb9c802850e3f453e6b5398a4
Try to delete all interface addresses on shutdown

Work around an issue in the Darwin kernel. When unregistering an interface,
addresses are not properly removed from the interface. This leads to crashes
and other problems when reusing the interface. Introduce an ugly hack that
tries to remove all interface addresses when shutting the interface down.
tuntap/Changelog
tuntap/src/tap/tap.cc
tuntap/src/tap/tap.h
tuntap/src/tun/tun.cc
tuntap/src/tun/tun.h
tuntap/src/tuntap.cc
tuntap/src/tuntap.h