Lines Matching refs:ai
899 struct Curl_addrinfo *ai; in doh2ai() local
932 ai = calloc(1, sizeof(struct Curl_addrinfo) + ss_size + hostlen); in doh2ai()
933 if(!ai) { in doh2ai()
937 ai->ai_addr = (void *)((char *)ai + sizeof(struct Curl_addrinfo)); in doh2ai()
938 ai->ai_canonname = (void *)((char *)ai->ai_addr + ss_size); in doh2ai()
939 memcpy(ai->ai_canonname, hostname, hostlen); in doh2ai()
943 firstai = ai; in doh2ai()
947 prevai->ai_next = ai; in doh2ai()
949 ai->ai_family = addrtype; in doh2ai()
953 ai->ai_socktype = SOCK_STREAM; in doh2ai()
955 ai->ai_addrlen = (curl_socklen_t)ss_size; in doh2ai()
959 switch(ai->ai_family) { in doh2ai()
961 addr = (void *)ai->ai_addr; /* storage area for this info */ in doh2ai()
974 addr6 = (void *)ai->ai_addr; /* storage area for this info */ in doh2ai()
987 prevai = ai; in doh2ai()
1339 struct Curl_addrinfo *ai; in Curl_doh_is_resolved() local
1347 result = doh2ai(&de, dohp->host, dohp->port, &ai); in Curl_doh_is_resolved()
1357 dns = Curl_cache_addr(data, ai, dohp->host, 0, dohp->port, FALSE); in Curl_doh_is_resolved()
1364 Curl_freeaddrinfo(ai); in Curl_doh_is_resolved()