Lines Matching defs:ip1
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)
124 af = GET_AF((struct in6_addr *)ip1);
126 IN6_V4MAPPED_TO_IPADDR((struct in6_addr *)ip1, i1);
132 a6_1 = (struct in6_addr *)ip1;
136 af = ((ilb_ip_addr_t *)ip1)->ia_af;
140 a1 = &((ilb_ip_addr_t *)ip1)->ia_v4;
146 a6_1 = &((ilb_ip_addr_t *)ip1)->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);