Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/
Dgetaddrinfo.cpp828 int type, ancount, qdcount; in getanswer() local
855 ancount = ntohs(hp->ancount); in getanswer()
888 while (ancount-- > 0 && cp < eom && !had_error) { in getanswer()
1595 int ancount; member
1628 .ancount = 0, in doQuery()
1641 if (n < 0 || hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in doQuery()
1654 LOG(INFO) << __func__ << ": rcode=" << rcode << ", ancount=" << ntohs(hp->ancount) in doQuery()
1659 .ancount = ntohs(hp->ancount), in doQuery()
1686 int ancount = 0; in res_queryN_parallel() local
1696 ancount += r.ancount; in res_queryN_parallel()
[all …]
Dres_query.cpp168 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_nquery()
170 << "), counts = an:" << ntohs(hp->ancount) << " ns:" << ntohs(hp->nscount) in res_nquery()
Dres_debug.cpp253 int qdcount, ancount, nscount, arcount; in res_pquery() local
264 ancount = ns_msg_count(handle, ns_s_an); in res_pquery()
284 fmt::format_to(out, ", {}: {}", p_section(ns_s_an, (int)opcode), ancount); in res_pquery()
Dgethnamaddr.cpp121 int ancount, qdcount; in getanswer() local
151 ancount = ntohs(hp->ancount); in getanswer()
179 while (ancount-- > 0 && cp < eom && !had_error) { in getanswer()
DDnsTlsTransport.cpp85 const int ancount = (answer[6] << 8) | answer[7]; in checkDnsResponse() local
86 LOG(DEBUG) << "answer count: " << ancount; in checkDnsResponse()
Dres_mkquery.cpp183 hp->ancount = htons(1); in res_nmkquery()
Dres_cache.cpp777 int ancount, n; in answer_getTTL() local
784 ancount = ns_msg_count(handle, ns_s_an); in answer_getTTL()
786 if (ancount == 0) { in answer_getTTL()
790 for (n = 0; n < ancount; n++) { in answer_getTTL()
DDnsProxyListener.cpp169 int ancount = ns_msg_count(handle, ns_s_an); in extractResNsendAnswers() local
171 for (int i = 0; i < ancount; i++) { in extractResNsendAnswers()
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.cpp353 unsigned ancount; in read() local
356 const char* cur = readHeader(buffer, buffer_end, &qdcount, &ancount, &nscount, &arcount); in read()
371 if (ancount) { in read()
372 answers.resize(ancount); in read()
373 for (unsigned i = 0; i < ancount; ++i) { in read()
421 header.ancount = htons(answers.size()); in write()
459 unsigned* ancount, unsigned* nscount, unsigned* arcount) { in readHeader() argument
476 *ancount = ntohs(header.ancount); in readHeader()
Ddns_responder.h110 uint16_t ancount; member
116 unsigned* ancount, unsigned* nscount, unsigned* arcount);
/packages/modules/Connectivity/tests/cts/net/native/dns/
DNativeDnsAsyncTest.cpp63 const int ancount = ns_msg_count(handle, ns_s_an); in extractIpAddressAnswers() local
66 for (int i = 0; i < ancount; i++) { in extractIpAddressAnswers()
/packages/modules/Connectivity/tests/cts/net/jni/
DNativeMultinetworkJni.cpp112 const int ancount = ns_msg_count(handle, ns_s_an); in extractIpAddressAnswers() local
114 if (!ancount) { in extractIpAddressAnswers()
119 for (int i = 0; i < ancount; i++) { in extractIpAddressAnswers()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DDnsPacket.java144 public DnsHeader(int id, int flags, int qdcount, int ancount) { in DnsHeader() argument
149 mRecordCount[ANSECTION] = ancount; in DnsHeader()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DDnsSvcbPacketTest.java121 private static byte[] makeDnsResponseHeaderAsByteArray(int qdcount, int ancount, int nscount, in makeDnsResponseHeaderAsByteArray() argument
127 buffer.putShort((short) ancount); in makeDnsResponseHeaderAsByteArray()
/packages/modules/DnsResolver/tests/testdata/
DREADME.md140 ancount = 0