Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/ip6_input.c
Show First 20 Lines • Show All 380 Lines • ▼ Show 20 Lines | CK_STAILQ_FOREACH(ifp, &V_ifnet, if_link) { | ||||
CK_STAILQ_FOREACH_SAFE(ifa, &ifp->if_addrhead, ifa_link, nifa) { | CK_STAILQ_FOREACH_SAFE(ifa, &ifp->if_addrhead, ifa_link, nifa) { | ||||
if (ifa->ifa_addr->sa_family != AF_INET6) | if (ifa->ifa_addr->sa_family != AF_INET6) | ||||
continue; | continue; | ||||
in6_purgeaddr(ifa); | in6_purgeaddr(ifa); | ||||
} | } | ||||
/* IF_ADDR_UNLOCK(ifp); */ | /* IF_ADDR_UNLOCK(ifp); */ | ||||
in6_ifdetach_destroy(ifp); | in6_ifdetach_destroy(ifp); | ||||
mld_domifdetach(ifp); | mld_domifdetach(ifp); | ||||
/* Make sure any routes are gone as well. */ | |||||
rt_flushifroutes_af(ifp, AF_INET6); | |||||
} | } | ||||
IFNET_RUNLOCK(); | IFNET_RUNLOCK(); | ||||
/* Make sure any routes are gone as well. */ | |||||
rib_flush_routes_family(AF_INET6); | |||||
frag6_destroy(); | frag6_destroy(); | ||||
nd6_destroy(); | nd6_destroy(); | ||||
in6_ifattach_destroy(); | in6_ifattach_destroy(); | ||||
hashdestroy(V_in6_ifaddrhashtbl, M_IFADDR, V_in6_ifaddrhmask); | hashdestroy(V_in6_ifaddrhashtbl, M_IFADDR, V_in6_ifaddrhmask); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,334 Lines • Show Last 20 Lines |