| 141 | "IPsec output bpf mask"); |
| 142 | |
| 143 | static void |
| 144 | enc_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 | |
| 158 | static int |
| 159 | enc_clone_create(struct if_clone *ifc, int unit, caddr_t params) |
no test coverage detected