Home | History | Annotate | Download | only in net

Lines Matching refs:ifp

108  * Assumes that ifp is actually pointer to arccom structure.
111 arc_output(struct ifnet *ifp, struct mbuf *m0, const struct sockaddr *dst,
123 if ((ifp->if_flags & (IFF_UP|IFF_RUNNING)) != (IFF_UP|IFF_RUNNING))
127 ac = (struct arccom *)ifp;
131 myself = *CLLADDR(ifp->if_sadl);
137 IFQ_CLASSIFY(&ifp->if_snd, m, dst->sa_family);
148 else if (ifp->if_flags & IFF_NOARP)
150 else if ((error = arpresolve(ifp, rt, m, dst, &adst,
156 (ifp->if_flags & IFF_SIMPLEX))
158 if (ifp->if_flags & IFF_LINK0) {
185 if (!(ifp->if_flags & IFF_LINK0)) {
186 rt_unhandled(__func__, ifp, dst);
197 if (ifp->if_flags & IFF_LINK0) {
212 if (ifp->if_flags & IFF_LINK2)
222 error = nd6_resolve(ifp, rt, m, dst, &adst,
239 rt_unhandled(__func__, ifp, dst);
244 (void) looutput(ifp, mcopy, dst, rt);
279 if ((error = ifq_enqueue(ifp, m)) != 0)
327 return ifq_enqueue(ifp, m);
341 arc_defrag(struct ifnet *ifp, struct mbuf *m)
351 ac = (struct arccom *)ifp;
356 if_statinc(ifp, if_ierrors);
376 if_statinc(ifp, if_ierrors);
474 ifp->if_xname, s);
500 arc_input(struct ifnet *ifp, struct mbuf *m)
506 if ((ifp->if_flags & IFF_UP) == 0) {
512 m = arc_defrag(ifp, m);
518 if_statadd(ifp, if_ibytes, m->m_pkthdr.len);
522 if_statinc(ifp, if_imcasts);
590 arc_ifattach(struct ifnet *ifp, uint8_t lla)
594 ifp->if_type = IFT_ARCNET;
595 ifp->if_addrlen = 1;
596 ifp->if_hdrlen = ARC_HDRLEN;
597 ifp->if_dlt = DLT_ARCNET;
598 if (ifp->if_flags & IFF_BROADCAST)
599 ifp->if_flags |= IFF_MULTICAST|IFF_ALLMULTI;
600 if (ifp->if_flags & IFF_LINK0 && arc_ipmtu > ARC_PHDS_MAXMTU)
603 ifp->if_xname, arc_ipmtu, ARC_PHDS_MAXMTU);
605 ifp->if_output = arc_output;
606 ifp->_if_input = arc_input;
607 ac = (struct arccom *)ifp;
612 ifp->if_xname, ifp->if_xname);
614 if_attach(ifp);
616 if_set_sadl(ifp, &lla, sizeof(lla), true);
618 ifp->if_broadcastaddr = &arcbroadcastaddr;
620 bpf_attach(ifp, DLT_ARCNET, ARC_HDRLEN);