Lines Matching refs:a1
1651 _common_prefix_len(const struct in6_addr *a1, const struct in6_addr *a2) in _common_prefix_len() argument
1653 const char *p1 = (const char *)a1; in _common_prefix_len()
1657 for (i = 0; i < sizeof(*a1); ++i) { in _common_prefix_len()
1671 return sizeof(*a1) * CHAR_BIT; in _common_prefix_len()
1683 const struct addrinfo_sort_elem *a1 = (const struct addrinfo_sort_elem *)ptr1; in _rfc6724_compare() local
1693 if (a1->has_src_addr != a2->has_src_addr) { in _rfc6724_compare()
1694 return a2->has_src_addr - a1->has_src_addr; in _rfc6724_compare()
1698 scope_src1 = _get_scope(&a1->src_addr.generic); in _rfc6724_compare()
1699 scope_dst1 = _get_scope(a1->ai->ai_addr); in _rfc6724_compare()
1721 label_src1 = _get_label(&a1->src_addr.generic); in _rfc6724_compare()
1722 label_dst1 = _get_label(a1->ai->ai_addr); in _rfc6724_compare()
1734 precedence1 = _get_precedence(a1->ai->ai_addr); in _rfc6724_compare()
1756 if (a1->has_src_addr && a1->ai->ai_addr->sa_family == AF_INET6 && in _rfc6724_compare()
1758 const struct sockaddr_in6 *a1_src = &a1->src_addr.in6; in _rfc6724_compare()
1759 const struct sockaddr_in6 *a1_dst = (const struct sockaddr_in6 *)a1->ai->ai_addr; in _rfc6724_compare()
1773 return a1->original_order - a2->original_order; in _rfc6724_compare()