Searched refs:qdcount (Results 1 – 11 of 11) sorted by relevance
/packages/modules/DnsResolver/ |
D | DnsTlsTransport.cpp | 80 const int qdcount = (answer[4] << 8) | answer[5]; in checkDnsResponse() local 81 if (qdcount != 1) { in checkDnsResponse() 82 return Errorf("reply query count != 1: {}", qdcount); in checkDnsResponse()
|
D | res_debug.cpp | 253 int qdcount, ancount, nscount, arcount; in res_pquery() local 263 qdcount = ns_msg_count(handle, ns_s_qd); in res_pquery() 283 fmt::format_to(out, "; {}: {}", p_section(ns_s_qd, (int)opcode), qdcount); in res_pquery()
|
D | res_send.cpp | 367 int qdcount = ntohs(((const HEADER*)(const void*)msg)->qdcount); in res_nameinquery() local 369 while (qdcount-- > 0) { in res_nameinquery() 398 int qdcount = ntohs(((const HEADER*) (const void*) buf1)->qdcount); in res_queriesmatch() local 410 if (qdcount != ntohs(((const HEADER*) (const void*) buf2)->qdcount)) return (0); in res_queriesmatch() 411 while (qdcount-- > 0) { in res_queriesmatch()
|
D | gethnamaddr.cpp | 121 int ancount, qdcount; in getanswer() local 152 qdcount = ntohs(hp->qdcount); in getanswer() 157 if (qdcount != 1) goto no_recovery; in getanswer()
|
D | res_mkquery.cpp | 145 hp->qdcount = htons(1); in res_nmkquery()
|
D | getaddrinfo.cpp | 828 int type, ancount, qdcount; in getanswer() local 856 qdcount = ntohs(hp->qdcount); in getanswer() 861 if (qdcount != 1) { in getanswer()
|
/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_responder.cpp | 352 unsigned qdcount; in read() local 356 const char* cur = readHeader(buffer, buffer_end, &qdcount, &ancount, &nscount, &arcount); in read() 361 if (qdcount) { in read() 362 questions.resize(qdcount); in read() 363 for (unsigned i = 0; i < qdcount; ++i) { in read() 420 header.qdcount = htons(questions.size()); in write() 458 const char* DNSHeader::readHeader(const char* buffer, const char* buffer_end, unsigned* qdcount, in readHeader() argument 475 *qdcount = ntohs(header.qdcount); in readHeader()
|
D | dns_responder.h | 109 uint16_t qdcount; member 115 const char* readHeader(const char* buffer, const char* buffer_end, unsigned* qdcount,
|
/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 148 mRecordCount[QDSECTION] = qdcount; 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 126 buffer.putShort((short) qdcount); in makeDnsResponseHeaderAsByteArray()
|
/packages/modules/DnsResolver/tests/testdata/ |
D | README.md | 139 qdcount = 1
|