Lines Matching defs:ip2
106 * compare ip addresses ip1 and ip2 (as unsigned integers)
107 * return: -1: ip1 < ip2, 0: ip1 == ip2, 1: ip1 > ip2
115 i_cmp_addr_impl(void *ip1, void *ip2, ip_addr_type_t atype, int64_t *diff)
127 IN6_V4MAPPED_TO_IPADDR((struct in6_addr *)ip2, i2);
133 a6_2 = (struct in6_addr *)ip2;
141 a2 = &((ilb_ip_addr_t *)ip2)->ia_v4;
147 a6_2 = &((ilb_ip_addr_t *)ip2)->ia_v6;
239 ilb_cmp_in6_addr(struct in6_addr *ip1, struct in6_addr *ip2, int64_t *diff)
243 res = i_cmp_addr_impl(ip1, ip2, internal, diff);
248 ilb_cmp_ipaddr(ilb_ip_addr_t *ip1, ilb_ip_addr_t *ip2, int64_t *diff)
252 res = i_cmp_addr_impl(ip1, ip2, external, diff);