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

Function in6_purgemaddrs

freebsd/netinet6/in6_ifattach.c:859–878  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

857}
858
859static void
860in6_purgemaddrs(struct ifnet *ifp)
861{
862 struct in6_multi_head inmh;
863
864 SLIST_INIT(&inmh);
865 IN6_MULTI_LOCK();
866 IN6_MULTI_LIST_LOCK();
867 mld_ifdetach(ifp, &inmh);
868 IN6_MULTI_LIST_UNLOCK();
869 IN6_MULTI_UNLOCK();
870 in6m_release_list_deferred(&inmh);
871
872 /*
873 * Make sure all multicast deletions invoking if_ioctl() are
874 * completed before returning. Else we risk accessing a freed
875 * ifnet structure pointer.
876 */
877 in6m_release_wait(NULL);
878}
879
880void
881in6_ifattach_destroy(void)

Callers 1

_in6_ifdetachFunction · 0.85

Calls 3

mld_ifdetachFunction · 0.85
in6m_release_waitFunction · 0.85

Tested by

no test coverage detected