Lines Matching refs:ifp
124 * Assumes that ifp is actually pointer to arpcom structure.
127 fddi_output(ifp, m0, dst, rt0)
128 register struct ifnet *ifp;
139 struct arpcom *ac = (struct arpcom *)ifp;
141 if ((ifp->if_flags & (IFF_UP|IFF_RUNNING)) != (IFF_UP|IFF_RUNNING))
143 getmicrotime(&ifp->if_lastchange);
209 iso_snparesolve(ifp, (struct sockaddr_iso *)dst,
308 printf("%s%d: can't handle af%d\n", ifp->if_name, ifp->if_unit,
349 if ((ifp->if_flags & IFF_SIMPLEX) &&
354 (void) if_simloop(ifp,
358 (void) if_simloop(ifp,
369 if (IF_QFULL(&ifp->if_snd)) {
370 IF_DROP(&ifp->if_snd);
374 ifp->if_obytes += m->m_pkthdr.len;
375 IF_ENQUEUE(&ifp->if_snd, m);
376 if ((ifp->if_flags & IFF_OACTIVE) == 0)
377 (*ifp->if_start)(ifp);
380 ifp->if_omcasts++;
395 fddi_input(ifp, fh, m)
396 struct ifnet *ifp;
404 if ((ifp->if_flags & IFF_UP) == 0) {
408 getmicrotime(&ifp->if_lastchange);
409 ifp->if_ibytes += m->m_pkthdr.len + sizeof (*fh);
416 ifp->if_imcasts++;
417 } else if ((ifp->if_flags & IFF_PROMISC)
418 && bcmp(((struct arpcom *)ifp)->ac_enaddr, (caddr_t)fh->fddi_dhost,
462 arpinput((struct arpcom *)ifp, m);
487 ifp->if_noproto++;
531 struct arpcom *ac = (struct arpcom *) ifp;
548 ifp->if_output(ifp, m, &sa, NULL);
563 if ( !sdl_sethdrif(ifp, fh->fddi_shost, LLC_X25_LSAP,
579 ifp->if_noproto++;
601 fddi_ifattach(ifp)
602 register struct ifnet *ifp;
607 ifp->if_type = IFT_FDDI;
608 ifp->if_addrlen = 6;
609 ifp->if_hdrlen = 21;
610 ifp->if_mtu = FDDIMTU;
611 ifp->if_baudrate = 100000000;
613 ifp->if_flags |= IFF_NOTRAILERS;
616 ifa = ifnet_addrs[ifp->if_index - 1];
619 sdl->sdl_alen = ifp->if_addrlen;
620 bcopy(((struct arpcom *)ifp)->ac_enaddr, LLADDR(sdl), ifp->if_addrlen);
622 LIST_INIT(&((struct arpcom *)ifp)->ac_multiaddrs);
623 for (ifa = ifp->if_addrlist.tqh_first; ifa != NULL; ifa = ifa->ifa_list.tqe_next)
625 for (ifa = ifp->if_addrlist; ifa != NULL; ifa = ifa->ifa_next)
631 sdl->sdl_alen = ifp->if_addrlen;
632 bcopy((caddr_t)((struct arpcom *)ifp)->ac_enaddr,
633 LLADDR(sdl), ifp->if_addrlen);