Lines Matching defs:ip2
107 * compare ip addresses ip1 and ip2 (as unsigned integers)
108 * return: -1: ip1 < ip2, 0: ip1 == ip2, 1: ip1 > ip2
116 i_cmp_addr_impl(void *ip1, void *ip2, ip_addr_type_t atype, int64_t *diff)
128 IN6_V4MAPPED_TO_IPADDR((struct in6_addr *)ip2, i2);
134 a6_2 = (struct in6_addr *)ip2;
142 a2 = &((ilb_ip_addr_t *)ip2)->ia_v4;
148 a6_2 = &((ilb_ip_addr_t *)ip2)->ia_v6;
240 ilb_cmp_in6_addr(struct in6_addr *ip1, struct in6_addr *ip2, int64_t *diff)
244 res = i_cmp_addr_impl(ip1, ip2, internal, diff);
249 ilb_cmp_ipaddr(ilb_ip_addr_t *ip1, ilb_ip_addr_t *ip2, int64_t *diff)
253 res = i_cmp_addr_impl(ip1, ip2, external, diff);