Lines Matching refs:oifp
132 struct ifnet *oifp; /* other ifp of pair. */
388 struct ifnet *oifp;
403 * and ned to put them into the input queue of the oifp
404 * and call oifp->if_input() via netisr/epair_sintr().
406 oifp = sc->oifp;
407 sc = oifp->if_softc;
418 if ((oifp->if_drv_flags & IFF_DRV_RUNNING) == 0 ||
419 (oifp->if_flags & IFF_UP) ==0) {
424 DPRINTF("packet %s -> %s\n", ifp->if_xname, oifp->if_xname);
431 m->m_pkthdr.rcvif = oifp;
432 CURVNET_SET_QUIET(oifp->if_vnet);
438 oifp->if_ipackets++;
448 __func__, oifp, sc->refcount));
469 struct ifnet *oifp;
502 oifp = sc->oifp;
503 if ((oifp->if_drv_flags & IFF_DRV_RUNNING) == 0 ||
504 (oifp->if_flags & IFF_UP) ==0) {
511 DPRINTF("packet %s -> %s\n", ifp->if_xname, oifp->if_xname);
547 sc = oifp->if_softc;
553 m->m_pkthdr.rcvif = oifp;
554 CURVNET_SET_QUIET(oifp->if_vnet);
568 oifp->if_ipackets++;
577 __func__, oifp, sc->refcount));
790 sca->oifp = scb->ifp;
791 scb->oifp = sca->ifp;
881 struct ifnet *oifp;
897 oifp = sca->oifp;
898 scb = oifp->if_softc;
900 DPRINTF("ifp=%p oifp=%p\n", ifp, oifp);
902 if_link_state_change(oifp, LINK_STATE_DOWN);
904 oifp->if_drv_flags &= ~IFF_DRV_RUNNING;
911 CURVNET_SET_QUIET(oifp->if_vnet);
912 ether_ifdetach(oifp);
920 ("%s: ifp=%p scb->refcount!=1: %d", __func__, oifp, scb->refcount));
921 oifp->if_softc = NULL;
922 error = if_clone_destroyif(ifc, oifp);
926 if_free(oifp);