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

Function enc_clone_destroy

freebsd/net/if_enc.c:143–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141 "IPsec output bpf mask");
142
143static void
144enc_clone_destroy(struct ifnet *ifp)
145{
146 struct enc_softc *sc;
147
148 sc = ifp->if_softc;
149 KASSERT(sc == V_enc_sc, ("sc != ifp->if_softc"));
150
151 bpfdetach(ifp);
152 if_detach(ifp);
153 if_free(ifp);
154 free(sc, M_DEVBUF);
155 V_enc_sc = NULL;
156}
157
158static int
159enc_clone_create(struct if_clone *ifc, int unit, caddr_t params)

Callers 1

vnet_enc_init_protoFunction · 0.85

Calls 4

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

Tested by

no test coverage detected