Home
last modified time | relevance | path

Searched refs:best_scope (Results 1 – 2 of 2) sorted by relevance

/xnu-8792.61.2/bsd/netinet6/
H A Din6_src.c295 int dst_scope = -1, best_scope = -1, best_matchlen = -1; in in6_selectsrc_core() local
433 if (IN6_ARE_SCOPE_CMP(best_scope, new_scope) < 0) { in in6_selectsrc_core()
434 if (IN6_ARE_SCOPE_CMP(best_scope, dst_scope) < 0) { in in6_selectsrc_core()
438 } else if (IN6_ARE_SCOPE_CMP(new_scope, best_scope) < 0) { in in6_selectsrc_core()
657 best_scope = (new_scope >= 0 ? new_scope : in in6_selectsrc_core()
664 s_src, ifp1->if_xname, best_scope, new_scope, dst_scope); in in6_selectsrc_core()
723 __func__, s_src, s_dst, dst_scope, best_scope); in in6_selectsrc_core()
H A Din6.c3428 int dst_scope = in6_addrscope(dst), src_scope, best_scope = 0; in in6_ifawithscope() local
3512 if (IN6_ARE_SCOPE_CMP(best_scope, dst_scope) < 0 && in in6_ifawithscope()
3517 IN6_ARE_SCOPE_CMP(best_scope, dst_scope) >= 0) { in in6_ifawithscope()
3643 bscopecmp = IN6_ARE_SCOPE_CMP(src_scope, best_scope); in in6_ifawithscope()
3694 best_scope = in in6_ifawithscope()
3712 ip6stat.ip6s_sources_sameif[best_scope]++; in in6_ifawithscope()
3714 ip6stat.ip6s_sources_otherif[best_scope]++; in in6_ifawithscope()
3717 if (best_scope == dst_scope) { in in6_ifawithscope()
3718 ip6stat.ip6s_sources_samescope[best_scope]++; in in6_ifawithscope()
3720 ip6stat.ip6s_sources_otherscope[best_scope]++; in in6_ifawithscope()
[all …]