Lines Matching refs:ifp
198 static errno_t stf_ioctl(ifnet_t ifp, u_long cmd, void *data);
199 static errno_t stf_output(ifnet_t ifp, mbuf_t m);
215 __unused ifnet_t ifp,
230 ifnet_t ifp,
236 struct stf_softc* stf = ifnet_softc(ifp);
249 ifnet_t ifp,
252 if (((struct stf_softc*)ifnet_softc(ifp))->sc_protocol_family == protocol_family)
253 ((struct stf_softc*)ifnet_softc(ifp))->sc_protocol_family = 0;
260 ifnet_t ifp,
273 stat = ifnet_attach_protocol(ifp, protocol_family, ®);
284 ifnet_t ifp,
289 struct stf_softc* stf = ifnet_softc(ifp);
296 ifnet_t ifp,
300 struct stf_softc *sc = ifnet_softc(ifp);
458 stf_getsrcifa6(struct ifnet *ifp)
465 ifnet_lock_shared(ifp);
466 for (ia = ifp->if_addrlist.tqh_first; ia; ia = ia->ifa_list.tqe_next) {
500 ifnet_lock_done(ifp);
503 ifnet_lock_done(ifp);
510 struct ifnet *ifp,
530 sc = ifnet_softc(ifp);
534 if ((ifnet_flags(ifp) & IFF_UP) == 0) {
544 ia6 = stf_getsrcifa6(ifp);
573 if (ifp->if_bpf) {
577 bpf_tap_out(ifp, 0, m, &af, sizeof(af));
600 if (ifp->if_flags & IFF_LINK1)
633 __unused ifnet_t ifp,
750 struct ifnet *ifp;
770 ifp = sc->sc_if;
773 mac_mbuf_label_associate_ifnet(ifp, m);
800 if ((ifnet_flags(ifp) & IFF_LINK1) != 0)
807 m->m_pkthdr.rcvif = ifp;
811 if (ifp->if_bpf) {
814 bpf_tap_in(ifp, 0, m, &af, sizeof(af));
826 mbuf_pkthdr_setrcvif(m, ifp);
827 ifnet_input(ifp, m, &stats);
846 ifnet_t ifp,
871 if ( !(ifnet_flags( ifp ) & IFF_UP) ) {
875 ifnet_set_flags(ifp, IFF_UP, IFF_UP);