Lines Matching defs:TUN2IFP
98 #define TUN2IFP(sc) ((sc)->tun_ifp)
251 CURVNET_SET(TUN2IFP(tp)->if_vnet);
253 bpfdetach(TUN2IFP(tp));
254 if_detach(TUN2IFP(tp));
255 if_free(TUN2IFP(tp));
426 ifp = TUN2IFP(tp);
445 ifp = TUN2IFP(tp);
674 if (TUN2IFP(tp)->if_mtu != tunp->mtu) {
680 TUN2IFP(tp)->if_mtu = tunp->mtu;
681 TUN2IFP(tp)->if_type = tunp->type;
682 TUN2IFP(tp)->if_baudrate = tunp->baudrate;
688 tunp->mtu = TUN2IFP(tp)->if_mtu;
689 tunp->type = TUN2IFP(tp)->if_type;
690 tunp->baudrate = TUN2IFP(tp)->if_baudrate;
724 if (TUN2IFP(tp)->if_flags & IFF_UP)
731 TUN2IFP(tp)->if_flags &=
733 TUN2IFP(tp)->if_flags |= *(int *)data;
756 if (!IFQ_IS_EMPTY(&TUN2IFP(tp)->if_snd)) {
758 IFQ_LOCK(&TUN2IFP(tp)->if_snd);
759 IFQ_POLL_NOLOCK(&TUN2IFP(tp)->if_snd, mb);
762 IFQ_UNLOCK(&TUN2IFP(tp)->if_snd);
796 struct ifnet *ifp = TUN2IFP(tp);
849 struct ifnet *ifp = TUN2IFP(tp);
931 struct ifnet *ifp = TUN2IFP(tp);
962 struct ifnet *ifp = TUN2IFP(tp);
998 struct ifnet *ifp = TUN2IFP(tp);
1022 struct ifnet *ifp = TUN2IFP(tp);