Lines Matching refs:nc
348 struct sl_softc *sc = (struct sl_softc *)tp->t_slsc, *nc, *tmpnc; in sltioctl() local
361 for (nsl = NSL, nc = sl_softc; --nsl >= 0; nc++) { in sltioctl()
362 if ( nc->sc_if.if_dunit == *(u_int *)data in sltioctl()
363 && nc->sc_ttyp == NULL in sltioctl()
367 *tmpnc = *nc; in sltioctl()
368 *nc = *sc; in sltioctl()
369 nc->sc_if = tmpnc->sc_if; in sltioctl()
375 if (!(nc->sc_if.if_flags & IFF_UP)) in sltioctl()
376 if_up(&nc->sc_if); in sltioctl()
377 } else if (nc->sc_if.if_flags & IFF_UP) in sltioctl()
378 if_down(&nc->sc_if); in sltioctl()
380 sc->sc_flags |= (nc->sc_flags & SC_STATIC); in sltioctl()
381 tp->t_slsc = sc = nc; in sltioctl()