| 265 | } |
| 266 | |
| 267 | static int |
| 268 | stf_clone_destroy(struct if_clone *ifc, struct ifnet *ifp) |
| 269 | { |
| 270 | struct stf_softc *sc = ifp->if_softc; |
| 271 | int err __unused; |
| 272 | |
| 273 | err = ip_encap_detach(sc->encap_cookie); |
| 274 | KASSERT(err == 0, ("Unexpected error detaching encap_cookie")); |
| 275 | bpfdetach(ifp); |
| 276 | if_detach(ifp); |
| 277 | if_free(ifp); |
| 278 | |
| 279 | free(sc, M_STF); |
| 280 | ifc_free_unit(ifc, STFUNIT); |
| 281 | |
| 282 | return (0); |
| 283 | } |
| 284 | |
| 285 | static int |
| 286 | stfmodevent(module_t mod, int type, void *data) |
nothing calls this directly
no test coverage detected