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

Function gre_clone_destroy

freebsd/net/if_gre.c:214–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212#endif /* VIMAGE */
213
214static void
215gre_clone_destroy(struct ifnet *ifp)
216{
217 struct gre_softc *sc;
218
219 sx_xlock(&gre_ioctl_sx);
220 sc = ifp->if_softc;
221 gre_delete_tunnel(sc);
222 bpfdetach(ifp);
223 if_detach(ifp);
224 ifp->if_softc = NULL;
225 sx_xunlock(&gre_ioctl_sx);
226
227 GRE_WAIT();
228 if_free(ifp);
229 free(sc, M_GRE);
230}
231
232static int
233gre_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)

Callers

nothing calls this directly

Calls 5

gre_delete_tunnelFunction · 0.85
bpfdetachFunction · 0.85
if_detachFunction · 0.85
if_freeFunction · 0.85
freeFunction · 0.50

Tested by

no test coverage detected