Lines Matching defs:sc_ifp
151 struct ifnet *sc_ifp;
251 ifp = lp->sc_ifp = if_alloc(IFT_PARA);
293 bpfdetach(sc->sc_ifp);
294 if_detach(sc->sc_ifp);
352 if_setdrvflagbits(sc->sc_ifp, 0, (IFF_DRV_RUNNING | IFF_DRV_OACTIVE));
381 sc->sc_ifbuf = malloc(if_getmtu(sc->sc_ifp) + MLPIPHDRLEN,
447 ifr->ifr_mtu = if_getmtu(sc->sc_ifp);
535 if (if_getflags(sc->sc_ifp) & IFF_LINK0) {
548 if (len > if_getmtu(sc->sc_ifp) + MLPIPHDRLEN)
574 if_inc_counter(sc->sc_ifp, IFCOUNTER_IPACKETS, 1);
575 if_inc_counter(sc->sc_ifp, IFCOUNTER_IBYTES, len);
576 top = m_devget(sc->sc_ifbuf + CLPIPHDRLEN, len, 0, sc->sc_ifp,
580 lptap(sc->sc_ifp, top);
582 M_SETFIB(top, if_getfib(sc->sc_ifp));
591 len = if_getmtu(sc->sc_ifp) + LPIPHDRLEN;
626 if_inc_counter(sc->sc_ifp, IFCOUNTER_IPACKETS, 1);
627 if_inc_counter(sc->sc_ifp, IFCOUNTER_IBYTES, len);
628 top = m_devget(sc->sc_ifbuf + LPIPHDRLEN, len, 0, sc->sc_ifp,
632 lptap(sc->sc_ifp, top);
634 M_SETFIB(top, if_getfib(sc->sc_ifp));
646 if_inc_counter(sc->sc_ifp, IFCOUNTER_IERRORS, 1);
654 if_printf(sc->sc_ifp, "Too many errors, Going off-line.\n");
656 if_setdrvflagbits(sc->sc_ifp, 0, IFF_DRV_RUNNING);