Lines Matching refs:addr
55 static size_t get_address_index(const struct in_addr *addr,
57 static size_t get6_address_index(const struct ares_in6_addr *addr,
158 /* Find the first entry in sortlist which matches addr. Return nsort
161 static size_t get_address_index(const struct in_addr *addr,
169 memcpy(&aaddr.addr.addr4, addr, 4);
172 if (sortlist[i].addr.family != AF_INET) {
176 if (ares__subnet_match(&aaddr, &sortlist[i].addr, sortlist[i].mask)) {
214 /* Find the first entry in sortlist which matches addr. Return nsort
217 static size_t get6_address_index(const struct ares_in6_addr *addr,
225 memcpy(&aaddr.addr.addr6, addr, 16);
228 if (sortlist[i].addr.family != AF_INET6) {
232 if (ares__subnet_match(&aaddr, &sortlist[i].addr, sortlist[i].mask)) {