Lines Matching refs:ifp
143 struct ifnet *ifp = m->m_pkthdr.rcvif;
161 if (ip6_accept_rtadv != 0 || (ifp->if_eflags & IFEF_ACCEPT_RTADVD) || ip6_forwarding != 1)
169 ip6_sprintf(&ip6->ip6_dst), if_name(ifp)));
205 if (lladdr && ((ifp->if_addrlen + 2 + 7) & ~7) != lladdrlen) {
209 ip6_sprintf(&saddr6), ifp->if_addrlen, lladdrlen - 2));
213 nd6_cache_lladdr(ifp, &saddr6, lladdr, lladdrlen, ND_ROUTER_SOLICIT, 0);
237 struct ifnet *ifp = m->m_pkthdr.rcvif;
238 struct nd_ifinfo *ndi = &nd_ifinfo[ifp->if_index];
254 if (ip6_accept_rtadv == 0 && ((ifp->if_eflags & IFEF_ACCEPT_RTADVD) == 0))
261 ip6_sprintf(&ip6->ip6_dst), if_name(ifp)));
300 dr0.ifp = ifp;
446 if (lladdr && ((ifp->if_addrlen + 2 + 7) & ~7) != lladdrlen) {
450 ip6_sprintf(&saddr6), ifp->if_addrlen, lladdrlen - 2));
454 nd6_cache_lladdr(ifp, &saddr6, lladdr, lladdrlen, ND_ROUTER_ADVERT, 0);
529 struct ifnet *ifp)
547 if ((ifa = ifaof_ifpforaddr((struct sockaddr *)&def, ifp)) == NULL) {
551 if_name(ifp)));
563 if_name(ifp), error));
572 in6_post_msg(ifp, KEV_INET6_DEFROUTER, (struct in6_ifaddr *)ifa);
581 struct ifnet *ifp)
590 if (dr->ifp == ifp && IN6_ARE_ADDR_EQUAL(addr, &dr->rtaddr))
634 struct nd_ifinfo *ndi = &nd_ifinfo[dr->ifp->if_index];
641 if (!ip6_forwarding && (ip6_accept_rtadv || (dr->ifp->if_eflags & IFEF_ACCEPT_RTADVD))) {
643 rt6_flush(&dr->rtaddr, dr->ifp);
674 if_name(dr->ifp));
707 if ((rt = nd6_lookup(&dr->rtaddr, 0, dr->ifp, 0)) &&
770 struct nd_ifinfo *ndi = &nd_ifinfo[new->ifp->if_index];
773 if ((dr = defrouter_lookup(&new->rtaddr, new->ifp)) != NULL) {
925 purge_detached(struct ifnet *ifp)
935 if (pr->ndpr_ifp != ifp ||
941 for (ifa = ifp->if_addrlist.tqh_first; ifa; ifa = ifa_next) {
1088 struct ifnet *ifp = new->ndpr_ifp;
1216 ifnet_lock_exclusive(ifp);
1217 TAILQ_FOREACH(ifa, &ifp->if_addrlist, ifa_list)
1313 ifnet_lock_done(ifp);
1394 pfxrtr->router->ifp, 0)) &&
1569 struct ifnet *ifp = pr->ndpr_ifp;
1618 ifa = (struct ifaddr *)in6ifa_ifpforlinklocal(ifp,
1623 ifnet_lock_exclusive(ifp);
1624 TAILQ_FOREACH(ifa, &ifp->if_addrlist, ifa_list)
1629 ifnet_lock_done(ifp);
1643 pr->ndpr_plen, if_name(ifp)));
1659 if (nd6_need_cache(ifp)) {
1681 pr->ndpr_plen, if_name(ifp),
1699 struct ifnet *ifp = pr->ndpr_ifp;
1765 opr->ndpr_plen, if_name(ifp),
1776 ip6_sprintf(&sa6.sin6_addr), pr->ndpr_plen, if_name(ifp),
1793 struct ifnet *ifp = pr->ndpr_ifp;
1827 ifa = (struct ifaddr *)in6ifa_ifpforlinklocal(ifp, 0);/* 0 is OK? */
1846 if_name(ifp), prefixlen, 128 - plen0));
1857 strncpy(ifra.ifra_name, if_name(ifp), sizeof(ifra.ifra_name));
1912 if ((error = in6_update_ifa(ifp, &ifra, NULL)) != 0) {
1915 ip6_sprintf(&ifra.ifra_addr.sin6_addr), if_name(ifp),
1920 ia = in6ifa_ifpwithaddr(ifp, &ifra.ifra_addr.sin6_addr);
1922 in6_post_msg(ifp, KEV_INET6_NEW_RTADV_ADDR, ia);
1932 struct ifnet *ifp = ia0->ia_ifa.ifa_ifp;
1944 strncpy(ifra.ifra_name, if_name(ifp), sizeof(ifra.ifra_name));
1955 in6_get_tmpifid(ifp, (u_int8_t *)randid,
1969 if (in6ifa_ifpwithaddr(ifp, &ifra.ifra_addr.sin6_addr) != NULL) {
2017 if ((error = in6_update_ifa(ifp, &ifra, NULL)) != 0)
2020 newia = in6ifa_ifpwithaddr(ifp, &ifra.ifra_addr.sin6_addr);
2102 struct ifnet *ifp)
2112 gateway->s6_addr16[1] = htons(ifp->if_index);