Lines Matching refs:a2
286 static int address_kernel_compare_func(const Address *a1, const Address *a2) { in address_kernel_compare_func() argument
289 r = CMP(a1->family, a2->family); in address_kernel_compare_func()
296 r = CMP(a1->prefixlen, a2->prefixlen); in address_kernel_compare_func()
300 r = CMP(address_prefix(a1), address_prefix(a2)); in address_kernel_compare_func()
307 return memcmp(&a1->in_addr, &a2->in_addr, FAMILY_ADDRESS_SIZE(a1->family)); in address_kernel_compare_func()
343 int address_compare_func(const Address *a1, const Address *a2) { in address_compare_func() argument
346 r = CMP(a1->family, a2->family); in address_compare_func()
353 r = CMP(a1->prefixlen, a2->prefixlen); in address_compare_func()
357 r = memcmp(&a1->in_addr, &a2->in_addr, FAMILY_ADDRESS_SIZE(a1->family)); in address_compare_func()
361 r = memcmp(&a1->in_addr_peer, &a2->in_addr_peer, FAMILY_ADDRESS_SIZE(a1->family)); in address_compare_func()
366 r = strcmp_ptr(a1->label, a2->label); in address_compare_func()
370 r = CMP(a1->broadcast.s_addr, a2->broadcast.s_addr); in address_compare_func()