/packages/modules/DnsResolver/ |
D | getaddrinfo.cpp | 828 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 …]
|
D | res_query.cpp | 168 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_nquery() 170 << "), counts = an:" << ntohs(hp->ancount) << " ns:" << ntohs(hp->nscount) in res_nquery()
|
D | res_debug.cpp | 253 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()
|
D | gethnamaddr.cpp | 121 int ancount, qdcount; in getanswer() local 151 ancount = ntohs(hp->ancount); in getanswer() 179 while (ancount-- > 0 && cp < eom && !had_error) { in getanswer()
|
D | DnsTlsTransport.cpp | 85 const int ancount = (answer[6] << 8) | answer[7]; in checkDnsResponse() local 86 LOG(DEBUG) << "answer count: " << ancount; in checkDnsResponse()
|
D | res_mkquery.cpp | 183 hp->ancount = htons(1); in res_nmkquery()
|
D | res_cache.cpp | 777 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()
|
D | DnsProxyListener.cpp | 169 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/ |
D | dns_responder.cpp | 353 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()
|
D | dns_responder.h | 110 uint16_t ancount; member 116 unsigned* ancount, unsigned* nscount, unsigned* arcount);
|
/packages/modules/Connectivity/tests/cts/net/native/dns/ |
D | NativeDnsAsyncTest.cpp | 63 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/ |
D | NativeMultinetworkJni.cpp | 112 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/ |
D | DnsPacket.java | 144 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/ |
D | DnsSvcbPacketTest.java | 121 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/ |
D | README.md | 140 ancount = 0
|