Lines Matching refs:ifp
99 register struct ifnet *ifp = &discif;
101 ifp->if_name = "ds";
102 ifp->if_family = APPLE_IF_FAM_DISC;
103 ifp->if_mtu = DSMTU;
104 ifp->if_flags = IFF_LOOPBACK | IFF_MULTICAST;
105 ifp->if_ioctl = discioctl;
106 ifp->if_output = discoutput;
107 ifp->if_type = IFT_LOOP;
108 ifp->if_hdrlen = 0;
109 ifp->if_addrlen = 0;
110 if_attach(ifp);
111 bpfattach(ifp, DLT_NULL, sizeof(u_int));
139 discoutput(ifp, m, dst, rt)
140 struct ifnet *ifp;
159 bpf_tap_out(ifp, 0, m, &af, sizeof(af));
161 m->m_pkthdr.rcvif = ifp;
163 ifp->if_opackets++;
164 ifp->if_obytes += m->m_pkthdr.len;
186 discioctl(ifp, cmd, data)
187 register struct ifnet *ifp;
198 ifnet_set_flags(ifp, IFF_UP, IFF_UP);
231 ifp->if_mtu = ifr->ifr_mtu;