Lines Matching refs:addr
317 struct Curl_addrinfo *addr = dns->addr; in fetch_addr() local
324 while(addr) { in fetch_addr()
325 if(addr->ai_family == pf) { in fetch_addr()
329 addr = addr->ai_next; in fetch_addr()
380 static int num_addresses(const struct Curl_addrinfo *addr) in num_addresses() argument
383 while(addr) { in num_addresses()
384 addr = addr->ai_next; in num_addresses()
391 struct Curl_addrinfo **addr);
405 struct Curl_addrinfo **addr) in Curl_shuffle_addr() argument
408 const int num_addrs = num_addresses(*addr); in Curl_shuffle_addr()
421 nodes[0] = *addr; in Curl_shuffle_addr()
443 *addr = nodes[0]; in Curl_shuffle_addr()
469 struct Curl_addrinfo *addr, in Curl_cache_addr() argument
483 CURLcode result = Curl_shuffle_addr(data, &addr); in Curl_cache_addr()
502 dns->addr = addr; /* this is the address(es) */ in Curl_cache_addr()
727 struct Curl_addrinfo *addr = NULL; in Curl_resolv() local
760 addr = Curl_ip2addr(AF_INET, &in, hostname, port); in Curl_resolv()
761 if(!addr) in Curl_resolv()
770 addr = Curl_ip2addr(AF_INET6, &in6, hostname, port); in Curl_resolv()
771 if(!addr) in Curl_resolv()
796 if(!addr) { in Curl_resolv()
802 addr = get_localhost(port, hostname); in Curl_resolv()
805 addr = Curl_doh(data, hostname, port, &respwait); in Curl_resolv()
815 addr = Curl_getaddrinfo(data, hostname, port, &respwait); in Curl_resolv()
818 if(!addr) { in Curl_resolv()
837 dns = Curl_cache_addr(data, addr, hostname, 0, port, FALSE); in Curl_resolv()
844 Curl_freeaddrinfo(addr); in Curl_resolv()
1075 Curl_freeaddrinfo(dns->addr); in hostcache_unlink_entry()
1347 a = dns->addr; in show_resolve_info()