Home
last modified time | relevance | path

Searched refs:ancount (Results 1 - 15 of 15) sorted by relevance

/third_party/node/deps/cares/src/lib/
H A Dares_parse_ptr_reply.c51 size_t ancount; in ares_parse_ptr_reply() local
73 ancount = ares_dns_record_rr_cnt(dnsrec, ARES_SECTION_ANSWER); in ares_parse_ptr_reply()
74 if (ancount == 0) { in ares_parse_ptr_reply()
106 hostent->h_aliases = ares_malloc((ancount + 1) * sizeof(*hostent->h_aliases)); in ares_parse_ptr_reply()
111 memset(hostent->h_aliases, 0, (ancount + 1) * sizeof(*hostent->h_aliases)); in ares_parse_ptr_reply()
115 for (i = 0; i < ancount; i++) { in ares_parse_ptr_reply()
H A Dares_parse_ns_reply.c52 size_t ancount; in ares_parse_ns_reply() local
67 ancount = ares_dns_record_rr_cnt(dnsrec, ARES_SECTION_ANSWER); in ares_parse_ns_reply()
68 if (ancount == 0) { in ares_parse_ns_reply()
103 hostent->h_aliases = ares_malloc((ancount + 1) * sizeof(*hostent->h_aliases)); in ares_parse_ns_reply()
108 memset(hostent->h_aliases, 0, (ancount + 1) * sizeof(*hostent->h_aliases)); in ares_parse_ns_reply()
110 for (i = 0; i < ancount; i++) { in ares_parse_ns_reply()
H A Dares__parse_into_addrinfo.c58 size_t ancount; in ares__parse_into_addrinfo() local
77 ancount = ares_dns_record_rr_cnt(dnsrec, ARES_SECTION_ANSWER); in ares__parse_into_addrinfo()
78 if (ancount == 0) { in ares__parse_into_addrinfo()
83 for (i = 0; i < ancount; i++) { in ares__parse_into_addrinfo()
H A Dares_query.c103 size_t ancount; in qcallback() local
111 ancount = DNS_HEADER_ANCOUNT(abuf); in qcallback()
116 status = (ancount > 0) ? ARES_SUCCESS : ARES_ENODATA; in qcallback()
H A Dares_dns_parse.c724 unsigned short *ancount, in ares_dns_parse_header()
737 if (buf == NULL || dnsrec == NULL || qdcount == NULL || ancount == NULL || in ares_dns_parse_header()
826 status = ares__buf_fetch_be16(buf, ancount); in ares_dns_parse_header()
851 if (*ancount > 0) { in ares_dns_parse_header()
853 ares_dns_record_rr_prealloc(*dnsrec, ARES_SECTION_ANSWER, *ancount); in ares_dns_parse_header()
881 *ancount = 0; in ares_dns_parse_header()
1138 unsigned short ancount; in ares_dns_parse_buf() local
1170 status = ares_dns_parse_header(buf, flags, dnsrec, &qdcount, &ancount, in ares_dns_parse_buf()
1198 for (i = 0; i < ancount; i++) { in ares_dns_parse_buf()
721 ares_dns_parse_header(ares__buf_t *buf, unsigned int flags, ares_dns_record_t **dnsrec, unsigned short *qdcount, unsigned short *ancount, unsigned short *nscount, unsigned short *arcount) ares_dns_parse_header() argument
H A Dares_dns_private.h224 size_t ancount; member
H A Dares_dns_record.c210 for (i = 0; i < dnsrec->ancount; i++) { in ares_dns_record_destroy()
312 return dnsrec->ancount; in ares_dns_record_rr_cnt()
391 rr_len = &dnsrec->ancount; in ares_dns_record_rr_add()
442 rr_len = &dnsrec->ancount; in ares_dns_record_rr_del()
483 rr_len = dnsrec->ancount; in ares_dns_record_rr_get()
H A Dares_dns_write.c116 status = ares__buf_append_be16(buf, (unsigned short)dnsrec->ancount); in ares_dns_write_header()
/third_party/musl/src/network/
H A Ddns_parse.c6 int qdcount, ancount; in __dns_parse() local
14 ancount = r[6]*256 + r[7]; in __dns_parse()
21 while (ancount--) { in __dns_parse()
/third_party/curl/lib/
H A Ddoh.c608 unsigned short ancount; in doh_decode() local
635 ancount = get16bit(doh, 6); in doh_decode()
636 while(ancount) { in doh_decode()
682 ancount--; in doh_decode()
/third_party/musl/porting/liteos_m/kernel/include/arpa/
H A Dnameser.h350 unsigned ancount :16; member
/third_party/musl/porting/liteos_m_iccarm/kernel/include/arpa/
H A Dnameser.h350 unsigned ancount :16; member
/third_party/musl/porting/uniproton/kernel/include/arpa/
H A Dnameser.h350 unsigned ancount :16; member
/third_party/musl/include/arpa/
H A Dnameser.h385 unsigned ancount :16; member
/third_party/node/src/
H A Dcares_wrap.cc528 const unsigned int ancount = cares_get_16bit(buf + 6); in ParseSoaReply() local
545 for (unsigned int i = 0; i < ancount; i++) { in ParseSoaReply()

Completed in 17 milliseconds