Home | History | Annotate | Download | only in net

Lines Matching refs:ifp

138 	struct ifnet *ifp;
140 ifp = if_alloc(IFT_FAITH);
142 if_initname(ifp, ifc->ifc_name, unit);
144 ifp->if_mtu = FAITHMTU;
146 ifp->if_flags = /* IFF_LOOPBACK */ IFF_BROADCAST | IFF_MULTICAST;
147 ifp->if_ioctl = faithioctl;
148 ifp->if_output = faithoutput;
149 ifp->if_type = IFT_FAITH;
150 ifp->if_hdrlen = 0;
151 ifp->if_addrlen = 0;
152 ifp->if_dlt = DLT_NULL;
153 if_attach(ifp);
154 if_alloc_sadl(ifp);
155 bpf_attach(ifp, DLT_NULL, sizeof(u_int));
161 faith_clone_destroy(struct ifnet *ifp)
164 bpf_detach(ifp);
165 if_detach(ifp);
166 if_free(ifp);
173 faithoutput(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *dst,
190 bpf_mtap_af(ifp, af, m, BPF_D_OUT);
198 if_statadd2(ifp, if_opackets, 1, if_obytes, pktlen);
217 m_set_rcvif(m, ifp);
221 if_statadd2(ifp, if_ipackets, 1, if_ibytes, pktlen);
246 faithioctl(struct ifnet *ifp, u_long cmd, void *data)
257 ifp->if_flags |= IFF_UP | IFF_RUNNING;
286 if ((error = ifioctl_common(ifp, cmd, data)) == ENETRESET)