Lines Matching refs:de
683 UNITTEST void de_init(struct dohentry *de) in de_init() argument
686 memset(de, 0, sizeof(*de)); in de_init()
687 de->ttl = INT_MAX; in de_init()
689 Curl_dyn_init(&de->cname[i], DYN_DOH_CNAME); in de_init()
896 static CURLcode doh2ai(const struct dohentry *de, const char *hostname, in doh2ai() argument
910 DEBUGASSERT(de); in doh2ai()
912 if(!de->numaddr) in doh2ai()
915 for(i = 0; i < de->numaddr; i++) { in doh2ai()
918 if(de->addr[i].type == DNS_TYPE_AAAA) { in doh2ai()
962 DEBUGASSERT(sizeof(struct in_addr) == sizeof(de->addr[i].ip.v4)); in doh2ai()
963 memcpy(&addr->sin_addr, &de->addr[i].ip.v4, sizeof(struct in_addr)); in doh2ai()
975 DEBUGASSERT(sizeof(struct in6_addr) == sizeof(de->addr[i].ip.v6)); in doh2ai()
976 memcpy(&addr6->sin6_addr, &de->addr[i].ip.v6, sizeof(struct in6_addr)); in doh2ai()
1311 struct dohentry de; in Curl_doh_is_resolved() local
1318 de_init(&de); in Curl_doh_is_resolved()
1325 p->dnstype, &de); in Curl_doh_is_resolved()
1344 doh_show(data, &de); in Curl_doh_is_resolved()
1347 result = doh2ai(&de, dohp->host, dohp->port, &ai); in Curl_doh_is_resolved()
1349 de_cleanup(&de); in Curl_doh_is_resolved()
1375 if(de.numhttps_rrs > 0 && result == CURLE_OK && *dnsp) { in Curl_doh_is_resolved()
1377 result = doh_resp_decode_httpsrr(de.https_rrs->val, de.https_rrs->len, in Curl_doh_is_resolved()
1392 de_cleanup(&de); in Curl_doh_is_resolved()