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

Function if_clone_addif

freebsd/net/if_clone.c:214–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214void
215if_clone_addif(struct if_clone *ifc, struct ifnet *ifp)
216{
217
218 if ((ifc->ifc_flags & IFC_NOGROUP) == 0)
219 if_addgroup(ifp, ifc->ifc_name);
220
221 IF_CLONE_LOCK(ifc);
222 IFC_IFLIST_INSERT(ifc, ifp);
223 IF_CLONE_UNLOCK(ifc);
224}
225
226/*
227 * Create a clone network interface.

Callers 2

if_clone_createifFunction · 0.85
epair_clone_addFunction · 0.85

Calls 1

if_addgroupFunction · 0.85

Tested by

no test coverage detected