Lines Matching defs:ifp
1179 struct ifnet *ifp = NULL; /* for NI_QTYPE_NODEADDR */
1366 addrs = ni6_addrs(ni6, &ifp, subj);
1457 copied = ni6_store_addrs(ni6, nni6, ifp, lenlim);
1655 struct ifnet *ifp;
1679 TAILQ_FOREACH(ifp, &ifnet_head, if_list) {
1681 ifnet_lock_shared(ifp);
1682 TAILQ_FOREACH(ifa, &ifp->if_addrlist, ifa_list)
1734 ifnet_lock_done(ifp);
1736 *ifpp = ifp;
1754 struct ifnet *ifp = ifp0;
1772 if (ifp == NULL) ifp = TAILQ_FIRST(&ifnet_head);
1774 for (; ifp; ifp = TAILQ_NEXT(ifp, if_list)) {
1775 ifnet_lock_shared(ifp);
1776 for (ifa = ifp->if_addrlist.tqh_first; ifa;
1792 ifp_dep = ifp;
1839 ifnet_lock_done(ifp);
1884 ifnet_lock_done(ifp);
1891 ifp = ifp_dep;
2228 struct ifnet *ifp = m->m_pkthdr.rcvif;
2244 if (!m || !ifp)
2267 redtgt6.s6_addr16[1] = htons(ifp->if_index);
2269 reddst6.s6_addr16[1] = htons(ifp->if_index);
2369 if (lladdr && ((ifp->if_addrlen + 2 + 7) & ~7) != lladdrlen) {
2373 ip6_sprintf(&redtgt6), ifp->if_addrlen, lladdrlen - 2,
2379 nd6_cache_lladdr(ifp, &redtgt6, lladdr, lladdrlen, ND_REDIRECT,
2397 rtredirect(ifp, (struct sockaddr *)&sdst,
2438 struct ifnet *ifp; /* my outgoing interface */
2453 if (!m0 || !rt || !(rt->rt_flags & RTF_UP) || !(ifp = rt->rt_ifp))
2457 if (!ip6_forwarding || ip6_accept_rtadv || (ifp->if_eflags & IFEF_ACCEPT_RTADVD))
2472 src_sa.sin6_scope_id = in6_addr2scopeid(ifp, &sip6->ip6_src);
2473 if (nd6_is_addr_neighbor(&src_sa, ifp, 0) == 0)
2501 ((sizeof(struct nd_opt_hdr) + ifp->if_addrlen + 7) & ~7)) {
2506 /* get ip6 linklocal address for ifp(my outgoing interface). */
2508 if ((ia = in6ifa_ifpforlinklocal(ifp,
2575 rt_router = nd6_lookup(router_ll6, 0, ifp, 0);
2578 len = sizeof(*nd_opt) + ifp->if_addrlen;
2592 bcopy(LLADDR(sdl), lladdr, ifp->if_addrlen);