CVSROOT: /cvs Module name: src Changes by: m...@cvs.openbsd.org 2014/03/19 07:49:12
Modified files: sys/net : if.c Log message: Since in{,6}_ifdetach() take care of removing the IPv4/6 addresses from the per-ifp list when an interface is destroyed/removed the only address left on the list at this point is the link-layer one. So remove the custom loop and its associated hack for the link-layer address and simply call if_free_sadl(). As a side effect, this should fix any scenario where if_alloc_sadl() is called multiple time since the first link-layer address allocated was never removed from the per-ifp list.