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

Function igmp_domifattach

freebsd/netinet/igmp.c:613–630  ·  view source on GitHub ↗

* Attach IGMP when PF_INET is attached to an interface. */

Source from the content-addressed store, hash-verified

611 * Attach IGMP when PF_INET is attached to an interface.
612 */
613struct igmp_ifsoftc *
614igmp_domifattach(struct ifnet *ifp)
615{
616 struct igmp_ifsoftc *igi;
617
618 CTR3(KTR_IGMPV3, "%s: called for ifp %p(%s)",
619 __func__, ifp, ifp->if_xname);
620
621 IGMP_LOCK();
622
623 igi = igi_alloc_locked(ifp);
624 if (!(ifp->if_flags & IFF_MULTICAST))
625 igi->igi_flags |= IGIF_SILENT;
626
627 IGMP_UNLOCK();
628
629 return (igi);
630}
631
632/*
633 * VIMAGE: assume curvnet set by caller.

Callers 1

in_domifattachFunction · 0.85

Calls 1

igi_alloc_lockedFunction · 0.85

Tested by

no test coverage detected