Lines Matching refs:ifa_best
2254 struct in6_ifaddr *ifa_best = NULL;
2308 if (ifa_best == NULL)
2312 * ifa_best is never NULL beyond this line except
2317 * If ifa_best has a smaller scope than dst and
2319 * (or equal to) dst, always replace ifa_best.
2321 * than dst, ignore it unless ifa_best also has a
2357 if ((ifa_best->ia6_flags & IN6_IFF_DEPRECATED)
2368 if ((ifa_best->ia6_flags & IN6_IFF_DEPRECATED) &&
2386 if ((ifa_best->ia6_flags &
2394 if ((ifa_best->ia6_flags &
2407 * and ifa_best is also non-deprecated.
2409 * and ifa_best is also deprecated.
2419 * ifa_best (bscopecmp)
2420 * - if the address match dst longer than ifa_best
2458 struct ifnet *bifp = ifa_best->ia_ifp;
2495 if (ifa_best)
2496 ifafree(&ifa_best->ia_ifa);
2497 ifa_best = (struct in6_ifaddr *)ifa;
2500 best_scope = in6_addrscope(&ifa_best->ia_addr.sin6_addr);
2507 if (ifa_best == NULL)
2510 if (oifp == ifa_best->ia_ifp)
2520 if ((ifa_best->ia6_flags & IN6_IFF_DEPRECATED) != 0)
2524 return(ifa_best);