MCPcopy Create free account
hub / github.com/F-Stack/f-stack / nd6_ifdetach

Function nd6_ifdetach

freebsd/netinet6/nd6.c:311–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309}
310
311void
312nd6_ifdetach(struct ifnet *ifp, struct nd_ifinfo *nd)
313{
314 struct epoch_tracker et;
315 struct ifaddr *ifa, *next;
316
317 NET_EPOCH_ENTER(et);
318 CK_STAILQ_FOREACH_SAFE(ifa, &ifp->if_addrhead, ifa_link, next) {
319 if (ifa->ifa_addr->sa_family != AF_INET6)
320 continue;
321
322 /* stop DAD processing */
323 nd6_dad_stop(ifa);
324 }
325 NET_EPOCH_EXIT(et);
326
327 free(nd, M_IP6NDP);
328}
329
330/*
331 * Reset ND level link MTU. This function is called when the physical MTU

Callers 1

in6_domifdetachFunction · 0.85

Calls 2

nd6_dad_stopFunction · 0.85
freeFunction · 0.50

Tested by

no test coverage detected