Lines Matching defs:ip1
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)
125 af = GET_AF((struct in6_addr *)ip1);
127 IN6_V4MAPPED_TO_IPADDR((struct in6_addr *)ip1, i1);
133 a6_1 = (struct in6_addr *)ip1;
137 af = ((ilb_ip_addr_t *)ip1)->ia_af;
141 a1 = &((ilb_ip_addr_t *)ip1)->ia_v4;
147 a6_1 = &((ilb_ip_addr_t *)ip1)->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);