| 649 | } |
| 650 | |
| 651 | static int |
| 652 | tun_clone_destroy(struct if_clone *ifc __unused, struct ifnet *ifp) |
| 653 | { |
| 654 | struct tuntap_softc *tp = ifp->if_softc; |
| 655 | |
| 656 | mtx_lock(&tunmtx); |
| 657 | TAILQ_REMOVE(&tunhead, tp, tun_list); |
| 658 | mtx_unlock(&tunmtx); |
| 659 | tun_destroy(tp); |
| 660 | |
| 661 | return (0); |
| 662 | } |
| 663 | |
| 664 | static void |
| 665 | vnet_tun_init(const void *unused __unused) |
nothing calls this directly
no test coverage detected