Lines Matching defs:a1
142 const Address *a1 = c1, *a2 = c2;
144 if (a1->family < a2->family)
146 if (a1->family > a2->family)
149 switch (a1->family) {
152 if (a1->prefixlen < a2->prefixlen)
154 if (a1->prefixlen > a2->prefixlen)
158 if (a1->prefixlen != 0) {
163 if (a1->in_addr_peer.in.s_addr != 0)
164 b1 = be32toh(a1->in_addr_peer.in.s_addr) >> (32 - a1->prefixlen);
166 b1 = be32toh(a1->in_addr.in.s_addr) >> (32 - a1->prefixlen);
169 b2 = be32toh(a2->in_addr_peer.in.s_addr) >> (32 - a1->prefixlen);
171 b2 = be32toh(a2->in_addr.in.s_addr) >> (32 - a1->prefixlen);
181 return memcmp(&a1->in_addr, &a2->in_addr, FAMILY_ADDRESS_SIZE(a1->family));
193 bool address_equal(Address *a1, Address *a2) {
194 if (a1 == a2)
197 if (!a1 || !a2)
200 return address_compare_func(a1, a2) == 0;