Home
last modified time | relevance | path

Searched refs:sc_if (Results 1 – 3 of 3) sorted by relevance

/xnu-10063.101.15/bsd/net/
H A Dif_stf.c156 ifnet_t sc_if; /* common area */ member
340 error = ifnet_allocate_extended(&stf_init, &sc->sc_if); in stfattach()
346 ifnet_set_mtu(sc->sc_if, IPV6_MMTU); in stfattach()
347 ifnet_set_flags(sc->sc_if, 0, 0xffff); /* clear all flags */ in stfattach()
350 ifnet_set_flags(sc->sc_if, IFF_LINK2, IFF_LINK2); in stfattach()
353 error = ifnet_attach(sc->sc_if, NULL); in stfattach()
357 ifnet_release(sc->sc_if); in stfattach()
361 bpfattach(sc->sc_if, DLT_NULL, sizeof(u_int)); in stfattach()
387 if ((ifnet_flags(sc->sc_if) & IFF_UP) == 0) { in stf_encapcheck()
392 if ((ifnet_flags(sc->sc_if) & IFF_LINK0) != 0) { in stf_encapcheck()
[all …]
H A Dif_pflog.c234 error = ifnet_allocate_extended(&pf_init, &pflogif->sc_if); in pflog_clone_create()
241 ifnet_set_mtu(pflogif->sc_if, PFLOGMTU); in pflog_clone_create()
242 ifnet_set_flags(pflogif->sc_if, IFF_UP, IFF_UP); in pflog_clone_create()
244 error = ifnet_attach(pflogif->sc_if, NULL); in pflog_clone_create()
247 ifnet_release(pflogif->sc_if); in pflog_clone_create()
253 bpfattach(pflogif->sc_if, DLT_PFLOG, PFLOG_HDRLEN); in pflog_clone_create()
259 pflogifs[unit] = pflogif->sc_if; in pflog_clone_create()
H A Dif_pflog.h70 struct ifnet *sc_if; /* back ptr to interface */ member