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

Function if_delallmulti

freebsd/net/if.c:3619–3629  ·  view source on GitHub ↗

* Delete all multicast group membership for an interface. * Should be used to quickly flush all multicast filters. */

Source from the content-addressed store, hash-verified

3617 * Should be used to quickly flush all multicast filters.
3618 */
3619void
3620if_delallmulti(struct ifnet *ifp)
3621{
3622 struct ifmultiaddr *ifma;
3623 struct ifmultiaddr *next;
3624
3625 IF_ADDR_WLOCK(ifp);
3626 CK_STAILQ_FOREACH_SAFE(ifma, &ifp->if_multiaddrs, ifma_link, next)
3627 if_delmulti_locked(ifp, ifma, 0);
3628 IF_ADDR_WUNLOCK(ifp);
3629}
3630
3631void
3632if_delmulti_ifma(struct ifmultiaddr *ifma)

Callers

nothing calls this directly

Calls 1

if_delmulti_lockedFunction · 0.85

Tested by

no test coverage detected