Lines Matching refs:ia_best
208 struct in6_ifaddr *ia = NULL, *ia_best = NULL;
364 if (ia_best == NULL)
385 if (!IFA6_IS_DEPRECATED(ia_best) && IFA6_IS_DEPRECATED(ia))
387 if (IFA6_IS_DEPRECATED(ia_best) && !IFA6_IS_DEPRECATED(ia))
394 if ((ia_best->ia6_flags & IN6_IFF_OPTIMISTIC) == 0 &&
397 if ((ia_best->ia6_flags & IN6_IFF_OPTIMISTIC) != 0 &&
408 if (ia_best->ia_ifp == ifp && ia->ia_ifp != ifp)
410 if (ia_best->ia_ifp != ifp && ia->ia_ifp == ifp)
438 in6_matchlen(&ia_best->ia_addr.sin6_addr, &dst) >=
439 in6_mask2len(&ia_best->ia_prefixmask.sin6_addr, NULL))
449 if (!(ia_best->ia6_flags & IN6_IFF_TEMPORARY) &&
456 if ((ia_best->ia6_flags & IN6_IFF_TEMPORARY) &&
468 if ((ia_best->ia_ifp->if_flags & IFF_UP) &&
471 if (!(ia_best->ia_ifp->if_flags & IFF_UP) &&
505 IFA_ADDREF_LOCKED(&ia->ia_ifa); /* for ia_best */
507 if (ia_best != NULL)
508 IFA_REMREF(&ia_best->ia_ifa);
509 ia_best = ia;
517 IFA_ADDREF_LOCKED(&ia->ia_ifa); /* for ia_best */
519 if (ia_best != NULL)
520 IFA_REMREF(&ia_best->ia_ifa);
521 ia_best = ia;
527 if (ia_best != NULL &&
529 ia_best->ia_ifa.ifa_ifp->if_type == IFT_CELLULAR) {
530 IFA_REMREF(&ia_best->ia_ifa);
531 ia_best = NULL;
534 if ((ia = ia_best) == NULL) {