Lines Matching refs:ifp
245 struct ifnet *ifp)
249 if (ifp == NULL)
264 if (in6_setscope(&ip6->ip6_src, ifp, NULL) != 0)
266 if (in6_setscope(&ip6->ip6_dst, ifp, NULL) != 0)
434 struct ifnet *ifp;
441 ifp = m->m_pkthdr.rcvif;
469 IN6_LOOKUP_MULTI(&ip6->ip6_dst, ifp, inm);
1263 struct ifnet *ifp = NULL; /* for NI_QTYPE_NODEADDR */
1469 addrs = ni6_addrs(ni6, &ifp, subj);
1498 if (ifp != NULL)
1499 ifnet_release(ifp);
1565 copied = ni6_store_addrs(ni6, nni6, ifp, lenlim);
1577 if (ifp != NULL)
1578 ifnet_release(ifp);
1585 if (ifp != NULL)
1586 ifnet_release(ifp);
1767 struct ifnet *ifp;
1794 TAILQ_FOREACH(ifp, &ifnet_head, if_list) {
1796 ifnet_lock_shared(ifp);
1797 TAILQ_FOREACH(ifa, &ifp->if_addrlist, ifa_list)
1863 ifnet_lock_done(ifp);
1866 *ifpp = ifp;
1867 ifnet_reference(ifp);
1886 struct ifnet *ifp = ifp0;
1904 if (ifp == NULL)
1905 ifp = TAILQ_FIRST(&ifnet_head);
1907 for (; ifp; ifp = TAILQ_NEXT(ifp, if_list)) {
1908 ifnet_lock_shared(ifp);
1909 for (ifa = ifp->if_addrlist.tqh_first; ifa;
1927 ifp_dep = ifp;
1986 ifnet_lock_done(ifp);
2033 ifnet_lock_done(ifp);
2040 ifp = ifp_dep;
2403 struct ifnet *ifp = m->m_pkthdr.rcvif;
2419 if (!m || !ifp)
2426 if (ifp->if_eflags & IFEF_IPV6_ROUTER)
2472 rt = rtalloc1_scoped((struct sockaddr *)&sin6, 0, 0, ifp->if_index);
2552 if (lladdr && ((ifp->if_addrlen + 2 + 7) & ~7) != lladdrlen) {
2556 ip6_sprintf(&redtgt6), ifp->if_addrlen, lladdrlen - 2,
2562 nd6_cache_lladdr(ifp, &redtgt6, lladdr, lladdrlen, ND_REDIRECT,
2580 rtredirect(ifp, (struct sockaddr *)&sdst,
2621 struct ifnet *ifp; /* my outgoing interface */
2641 if (!m0 || !rt || !(rt->rt_flags & RTF_UP) || !(ifp = rt->rt_ifp))
2648 if (!ip6_forwarding || !(ifp->if_eflags & IFEF_IPV6_ROUTER))
2663 src_sa.sin6_scope_id = in6_addr2scopeid(ifp, &sip6->ip6_src);
2665 if (nd6_is_addr_neighbor(&src_sa, ifp, 0) == 0) {
2697 ((sizeof(struct nd_opt_hdr) + ifp->if_addrlen + 7) & ~7)) {
2702 /* get ip6 linklocal address for ifp(my outgoing interface). */
2704 if ((ia = in6ifa_ifpforlinklocal(ifp,
2776 rt_router = nd6_lookup(router_ll6, 0, ifp, 0);
2780 len = sizeof(*nd_opt) + ifp->if_addrlen;
2798 bcopy(LLADDR(sdl), lladdr, ifp->if_addrlen);
2907 ip6oa.ip6oa_boundif = ifp->if_index;