Lines Matching refs:ifp
100 struct ifnet *ifp = m->m_pkthdr.rcvif;
132 ip6_sprintf(&ip6->ip6_dst), if_name(ifp)));
157 taddr6.s6_addr16[1] = htons(ifp->if_index);
190 ifa = (struct ifaddr *)in6ifa_ifpwithaddr(ifp, &daddr6);
207 ifa = (struct ifaddr *)in6ifa_ifpwithaddr(ifp, &taddr6);
225 ifa = (struct ifaddr *)in6ifa_ifpforlinklocal(ifp,
249 if (lladdr && ((ifp->if_addrlen + 2 + 7) & ~7) != lladdrlen) {
253 ip6_sprintf(&taddr6), ifp->if_addrlen, lladdrlen - 2));
300 saddr6.s6_addr16[1] = htons(ifp->if_index);
301 nd6_na_output(ifp, &saddr6, &taddr6,
309 nd6_cache_lladdr(ifp, &saddr6, lladdr, lladdrlen, ND_NEIGHBOR_SOLICIT, 0);
311 nd6_na_output(ifp, &saddr6, &taddr6,
339 struct ifnet *ifp,
361 maxlen += (sizeof(struct nd_opt_hdr) + ifp->if_addrlen + 7) & ~7;
384 im6o.im6o_multicast_ifp = ifp;
405 ip6->ip6_dst.s6_addr16[1] = htons(ifp->if_index);
419 ia = in6_ifawithifp(ifp, &ip6->ip6_dst);
453 if (saddr6 && in6ifa_ifpwithaddr(ifp, saddr6))
456 ia = in6_ifawithifp(ifp, &ip6->ip6_dst);
495 if (!dad && (mac = nd6_ifptomac(ifp))) {
496 int optlen = sizeof(struct nd_opt_hdr) + ifp->if_addrlen;
507 bcopy(mac, (caddr_t)(nd_opt + 1), ifp->if_addrlen);
544 struct ifnet *ifp = m->m_pkthdr.rcvif;
569 ip6_sprintf(&ip6->ip6_dst), if_name(ifp)));
590 taddr6.s6_addr16[1] = htons(ifp->if_index);
619 ifa = (struct ifaddr *)in6ifa_ifpwithaddr(ifp, &taddr6);
644 if (lladdr && ((ifp->if_addrlen + 2 + 7) & ~7) != lladdrlen) {
648 ip6_sprintf(&taddr6), ifp->if_addrlen, lladdrlen - 2));
655 rt = nd6_lookup(&taddr6, 0, ifp, 0);
667 if (ifp->if_addrlen && !lladdr)
673 sdl->sdl_alen = ifp->if_addrlen;
674 bcopy(lladdr, LLADDR(sdl), ifp->if_addrlen);
703 if (bcmp(lladdr, LLADDR(sdl), ifp->if_addrlen))
747 sdl->sdl_alen = ifp->if_addrlen;
748 bcopy(lladdr, LLADDR(sdl), ifp->if_addrlen);
761 nd_ifinfo[ifp->if_index].reachable;
814 * we assume ifp is not a loopback here, so just set the 2nd
817 nd6_output(ifp, ifp, ln->ln_hold,
842 struct ifnet *ifp,
861 maxlen += (sizeof(struct nd_opt_hdr) + ifp->if_addrlen + 7) & ~7;
884 im6o.im6o_multicast_ifp = ifp;
903 ip6->ip6_dst.s6_addr16[1] = htons(ifp->if_index);
914 ia = in6_ifawithifp(ifp, &ip6->ip6_dst);
940 mac = nd6_ifptomac(ifp);
944 if (sdl->sdl_alen == ifp->if_addrlen)
949 int optlen = sizeof(struct nd_opt_hdr) + ifp->if_addrlen;
961 bcopy(mac, (caddr_t)(nd_opt + 1), ifp->if_addrlen);
986 struct ifnet *ifp)
988 return ((caddr_t)ifnet_lladdr(ifp));
1343 struct ifnet *ifp = ifa->ifa_ifp;
1346 if ((ifp->if_flags & IFF_UP) == 0) {
1348 printf("%s: interface down?\n", if_name(ifp));
1352 if ((ifp->if_flags & IFF_RUNNING) == 0) {
1354 printf("%s: interface not running?\n", if_name(ifp));
1360 nd6_ns_output(ifp, NULL, &ia->ia_addr.sin6_addr, NULL, 1, 0);