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

Function vnet_ng_ether_init

freebsd/netgraph/ng_ether.c:859–876  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

857}
858
859static void
860vnet_ng_ether_init(const void *unused)
861{
862 struct ifnet *ifp;
863
864 /* If module load was rejected, don't attach to vnets. */
865 if (ng_ether_attach_p != ng_ether_attach)
866 return;
867
868 /* Create nodes for any already-existing Ethernet interfaces. */
869 IFNET_RLOCK();
870 CK_STAILQ_FOREACH(ifp, &V_ifnet, if_link) {
871 if (ifp->if_type == IFT_ETHER
872 || ifp->if_type == IFT_L2VLAN)
873 ng_ether_attach(ifp);
874 }
875 IFNET_RUNLOCK();
876}
877VNET_SYSINIT(vnet_ng_ether_init, SI_SUB_PSEUDO, SI_ORDER_ANY,
878 vnet_ng_ether_init, NULL);

Callers

nothing calls this directly

Calls 1

ng_ether_attachFunction · 0.85

Tested by

no test coverage detected