Lines Matching defs:sc_if
81 #define sc_if sc_ac.ac_if
198 if (strcmp(sc->sc_if.if_xname, name) == 0)
211 if (tun_name_lookup(sc->sc_if.if_xname) != NULL)
235 ifp = &sc->sc_if;
459 ifp = &sc->sc_if;
500 ifp = &sc->sc_if;
616 wakeup(&sc->sc_if.if_snd);
649 CLR(sc->sc_if.if_capabilities, TUN_IF_CAPS);
650 SET(sc->sc_if.if_capabilities, cap->tun_if_capabilities);
663 (sc->sc_if.if_capabilities & TUN_IF_CAPS);
675 CLR(sc->sc_if.if_capabilities, TUN_IF_CAPS);
687 struct ifnet *ifp = &sc->sc_if;
715 if (tunp->type != sc->sc_if.if_type) {
719 if (tunp->flags != (sc->sc_if.if_flags & TUN_IFF_FLAGS)) {
723 sc->sc_if.if_mtu = tunp->mtu;
724 sc->sc_if.if_baudrate = tunp->baudrate;
728 tunp->mtu = sc->sc_if.if_mtu;
729 tunp->type = sc->sc_if.if_type;
730 tunp->flags = sc->sc_if.if_flags & TUN_IFF_FLAGS;
731 tunp->baudrate = sc->sc_if.if_baudrate;
742 if (*(int *)data != (sc->sc_if.if_flags & TUN_IFF_FLAGS)) {
832 ifp = &sc->sc_if;
933 ifp = &sc->sc_if;
1166 struct ifnet *ifp = &sc->sc_if;