From 6472cfe37a23e071f0ab1eb2589bc459df57108d Mon Sep 17 00:00:00 2001 From: mlaier Date: Fri, 10 Apr 2009 14:41:51 +0000 Subject: Remove interfaces from IFG_ALL on detach. This cures a couple of pf panics when using the "self" keyword in tables or as ()-style host address and fixes "ifconfig -g all" output. PR: kern/130977, kern/131310 Submitted by: Mikolaj Golub MFC after: 3 days --- sys/net/if.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/net/if.c') diff --git a/sys/net/if.c b/sys/net/if.c index 20627d3..d0cbec5 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -887,6 +887,7 @@ if_detach(struct ifnet *ifp) rt_ifannouncemsg(ifp, IFAN_DEPARTURE); EVENTHANDLER_INVOKE(ifnet_departure_event, ifp); devctl_notify("IFNET", ifp->if_xname, "DETACH", NULL); + if_delgroup(ifp, IFG_ALL); IF_AFDATA_LOCK(ifp); for (dp = domains; dp; dp = dp->dom_next) { -- cgit v1.1