Lines Matching refs:a2
1162 static int _common_prefix_len(const struct in6_addr* a1, const struct in6_addr* a2) { in _common_prefix_len() argument
1164 const char* p2 = (const char*) a2; in _common_prefix_len()
1191 const struct addrinfo_sort_elem* a2 = (const struct addrinfo_sort_elem*) ptr2; in _rfc6724_compare() local
1200 if (a1->has_src_addr != a2->has_src_addr) { in _rfc6724_compare()
1201 return a2->has_src_addr - a1->has_src_addr; in _rfc6724_compare()
1209 scope_src2 = _get_scope(&a2->src_addr.sa); in _rfc6724_compare()
1210 scope_dst2 = _get_scope(a2->ai->ai_addr); in _rfc6724_compare()
1232 label_src2 = _get_label(&a2->src_addr.sa); in _rfc6724_compare()
1233 label_dst2 = _get_label(a2->ai->ai_addr); in _rfc6724_compare()
1242 precedence2 = _get_precedence(a2->ai->ai_addr); in _rfc6724_compare()
1263 if (a1->has_src_addr && a1->ai->ai_addr->sa_family == AF_INET6 && a2->has_src_addr && in _rfc6724_compare()
1264 a2->ai->ai_addr->sa_family == AF_INET6) { in _rfc6724_compare()
1267 const struct sockaddr_in6* a2_src = &a2->src_addr.sin6; in _rfc6724_compare()
1268 const struct sockaddr_in6* a2_dst = (const struct sockaddr_in6*) a2->ai->ai_addr; in _rfc6724_compare()
1280 return a1->original_order - a2->original_order; in _rfc6724_compare()