Lines Matching refs:utun_ifp
222 result = ifnet_allocate_extended(&utun_init, &pcb->utun_ifp);
231 ifnet_set_mtu(pcb->utun_ifp, 1500);
232 ifnet_set_flags(pcb->utun_ifp, IFF_UP | IFF_MULTICAST | IFF_POINTOPOINT, 0xffff);
237 ifnet_set_eflags(pcb->utun_ifp, IFEF_NOAUTOIPV6LL, IFEF_NOAUTOIPV6LL);
241 ifnet_set_stat(pcb->utun_ifp, &stats);
244 result = ifnet_attach(pcb->utun_ifp, NULL);
247 ifnet_release(pcb->utun_ifp);
253 bpfattach(pcb->utun_ifp, DLT_NULL, 4);
257 ifnet_set_flags(pcb->utun_ifp, IFF_RUNNING, IFF_RUNNING);
421 ifnet_t ifp = pcb->utun_ifp;
553 ifnet_stat_increment_in(pcb->utun_ifp, utsp->utsp_packets,
556 ifnet_stat_increment_out(pcb->utun_ifp, utsp->utsp_packets,
575 result = ifnet_set_delegate(pcb->utun_ifp, del_ifp);
618 *len = snprintf(data, *len, "%s%d", ifnet_name(pcb->utun_ifp), ifnet_unit(pcb->utun_ifp)) + 1;
643 bpf_tap_out(pcb->utun_ifp, DLT_NULL, data, 0, 0);
860 mbuf_pkthdr_setrcvif(m, pcb->utun_ifp);
865 bpf_tap_in(pcb->utun_ifp, DLT_NULL, m, 0, 0);
888 result = ifnet_input(pcb->utun_ifp, m, &incs);
890 result = ifnet_input(pcb->utun_ifp, m, NULL);
893 ifnet_stat_increment_in(pcb->utun_ifp, 0, 0, 1);