Lines Matching refs:Curl_addrinfo
134 void Curl_printable_address(const struct Curl_addrinfo *ai, char *buf,
321 struct Curl_addrinfo *addr = dns->addr;
382 * Return # of addresses in a Curl_addrinfo struct
384 static int num_addresses(const struct Curl_addrinfo *addr)
395 struct Curl_addrinfo **addr);
397 * Curl_shuffle_addr() shuffles the order of addresses in a 'Curl_addrinfo'
401 * `Curl_addrinfo` list and it will be modified to point to the new head after
409 struct Curl_addrinfo **addr)
415 struct Curl_addrinfo **nodes;
424 /* build a plain array of Curl_addrinfo pointers */
434 struct Curl_addrinfo *swap_tmp;
463 * Curl_cache_addr() stores a 'Curl_addrinfo' struct in the DNS cache.
473 struct Curl_addrinfo *addr,
528 static struct Curl_addrinfo *get_localhost6(int port, const char *name)
530 struct Curl_addrinfo *ca;
536 ca = calloc(1, sizeof(struct Curl_addrinfo) + ss_size + hostlen + 1);
554 ca->ai_addr = (void *)((char *)ca + sizeof(struct Curl_addrinfo));
565 static struct Curl_addrinfo *get_localhost(int port, const char *name)
567 struct Curl_addrinfo *ca;
568 struct Curl_addrinfo *ca6;
583 ca = calloc(1, sizeof(struct Curl_addrinfo) + ss_size + hostlen + 1);
591 ca->ai_addr = (void *)((char *)ca + sizeof(struct Curl_addrinfo));
726 struct Curl_addrinfo *addr = NULL;
1149 struct Curl_addrinfo *head = NULL, *tail = NULL;
1187 struct Curl_addrinfo *ai;
1314 struct Curl_addrinfo *a;