Lines Matching refs:ifp
164 static errno_t stf_ioctl(ifnet_t ifp, u_int32_t cmd, void *data);
165 static errno_t stf_output(ifnet_t ifp, mbuf_t m);
172 __unused ifnet_t ifp,
186 ifnet_t ifp,
192 struct stf_softc* stf = ifnet_softc(ifp);
205 ifnet_t ifp,
208 if (((struct stf_softc*)ifnet_softc(ifp))->sc_protocol_family == protocol_family)
209 ((struct stf_softc*)ifnet_softc(ifp))->sc_protocol_family = 0;
216 ifnet_t ifp,
229 stat = ifnet_attach_protocol(ifp, protocol_family, ®);
240 ifnet_t ifp,
245 struct stf_softc* stf = ifnet_softc(ifp);
252 ifnet_t ifp,
256 struct stf_softc *sc = ifnet_softc(ifp);
403 stf_getsrcifa6(struct ifnet *ifp)
410 ifnet_lock_shared(ifp);
411 for (ia = ifp->if_addrlist.tqh_first;
436 ifnet_lock_done(ifp);
439 ifnet_lock_done(ifp);
446 struct ifnet *ifp,
465 sc = ifnet_softc(ifp);
469 if ((ifnet_flags(ifp) & IFF_UP) == 0) {
479 ia6 = stf_getsrcifa6(ifp);
506 if (ifp->if_bpf) {
510 bpf_tap_out(ifp, 0, m, &af, sizeof(af));
530 if (ifp->if_flags & IFF_LINK1)
566 __unused ifnet_t ifp,
673 struct ifnet *ifp;
693 ifp = sc->sc_if;
696 mac_mbuf_label_associate_ifnet(ifp, m);
723 if ((ifnet_flags(ifp) & IFF_LINK1) != 0)
730 m->m_pkthdr.rcvif = ifp;
734 if (ifp->if_bpf) {
737 bpf_tap_in(ifp, 0, m, &af, sizeof(af));
749 mbuf_pkthdr_setrcvif(m, ifp);
750 ifnet_input(ifp, m, &stats);
768 ifnet_t ifp,
787 if ( !(ifnet_flags( ifp ) & IFF_UP) ) {
790 ifnet_set_flags(ifp, IFF_UP, IFF_UP);