Home
last modified time | relevance | path

Searched refs:qtype (Results 1 – 13 of 13) sorted by relevance

/aosp12/packages/modules/DnsResolver/
H A Dgetaddrinfo.cpp866 switch (qtype) { in getanswer()
895 if (qtype == T_A || qtype == T_AAAA || qtype == T_ANY) { in getanswer()
932 if ((qtype == T_A || qtype == T_AAAA || qtype == T_ANY) && type == T_CNAME) { in getanswer()
950 if (qtype == T_ANY) { in getanswer()
955 } else if (type != qtype) { in getanswer()
1410 q.qtype = T_AAAA; in dns_getaddrinfo()
1418 q.qtype = T_A; in dns_getaddrinfo()
1427 q.qtype = T_A; in dns_getaddrinfo()
1432 q.qtype = T_AAAA; in dns_getaddrinfo()
1617 const int type = t->qtype; in doQuery()
[all …]
H A Dgethnamaddr.cpp128 static struct hostent* getanswer(const querybuf* answer, int anslen, const char* qname, int qtype, in getanswer() argument
152 switch (qtype) { in getanswer()
181 if (qtype == T_A || qtype == T_AAAA) { in getanswer()
218 if ((qtype == T_A || qtype == T_AAAA) && type == T_CNAME) { in getanswer()
245 if (qtype == T_PTR && type == T_CNAME) { in getanswer()
264 if (type != qtype) { in getanswer()
267 << p_type(qtype) << "\", got type \"" << p_type(type) << "\""; in getanswer()
/aosp12/bionic/libc/dns/net/
H A Dgetaddrinfo.c1337 switch (qtype) { in getanswer()
1366 if (qtype == T_A || qtype == T_AAAA || qtype == T_ANY) { in getanswer()
1403 if ((qtype == T_A || qtype == T_AAAA || qtype == T_ANY) && in getanswer()
1422 if (qtype == T_ANY) { in getanswer()
1427 } else if (type != qtype) { in getanswer()
1940 q.qtype = T_AAAA; in _dns_getaddrinfo()
1945 q2.qtype = T_A; in _dns_getaddrinfo()
1950 q.qtype = T_A; in _dns_getaddrinfo()
1960 q.qtype = T_A; in _dns_getaddrinfo()
1967 q.qtype = T_AAAA; in _dns_getaddrinfo()
[all …]
H A Dgethnamaddr.c216 getanswer(const querybuf *answer, int anslen, const char *qname, int qtype, in getanswer() argument
241 switch (qtype) { in getanswer()
273 if (qtype == T_A || qtype == T_AAAA) { in getanswer()
313 if ((qtype == T_A || qtype == T_AAAA) && type == T_CNAME) { in getanswer()
342 if (qtype == T_PTR && type == T_CNAME) { in getanswer()
363 if (type != qtype) { in getanswer()
367 qname, p_class(C_IN), p_type(qtype), in getanswer()
479 if (res->nsort && haveanswer > 1 && qtype == T_A) in getanswer()
/aosp12/packages/modules/DnsResolver/tests/dns_responder/
H A Ddns_responder.cpp267 qtype = ntohs(*reinterpret_cast<const uint16_t*>(cur)); in read()
279 *reinterpret_cast<uint16_t*>(buffer_cur) = htons(qtype); in write()
287 dnstype2str(qtype), dnsclass2str(qclass)); in toString()
776 queries_.push_back({question.qname.name, ns_type(question.qtype), protocol}); in handleDNSRequest()
803 if (question.qtype == ns_type::ns_t_a || question.qtype == ns_type::ns_t_aaaa || in addAnswerRecords()
804 question.qtype == ns_type::ns_t_ptr) in addAnswerRecords()
806 rtypes.push_back(question.qtype); in addAnswerRecords()
837 << dnstype2str(question.qtype) << ", lazily refusing to add an answer"; in addAnswerRecords()
1009 const int qtype = questions[0].qtype; in makeResponseFromDnsHeader() local
1010 const auto it = dnsheader_mappings_.find(QueryKey(name, qtype)); in makeResponseFromDnsHeader()
[all …]
H A Ddns_responder.h54 unsigned qtype; member
/aosp12/packages/modules/DnsResolver/tests/
H A Dresolv_cache_unit_test.cpp71 std::vector<char> makeQuery(int op, const char* qname, int qclass, int qtype) { in makeQuery() argument
73 const int len = res_nmkquery(op, qname, qclass, qtype, /*data=*/nullptr, /*datalen=*/0, buf, in makeQuery()
88 .rtype = question.qtype, in makeAnswer()
255 CacheEntry makeCacheEntry(int op, const char* qname, int qclass, int qtype, const char* rdata, in makeCacheEntry() argument
258 ce.query = makeQuery(op, qname, qclass, qtype); in makeCacheEntry()
H A Dresolv_unit_test.cpp81 DnsMessage MakeDnsMessage(const std::string& qname, ns_type qtype, in MakeDnsMessage() argument
104 .qtype = qtype, in MakeDnsMessage()
111 test::DNSRecord record = MakeAnswerRecord(qname, qclass, qtype, r); in MakeDnsMessage()
115 return {qname, qtype, header}; in MakeDnsMessage()
H A Dresolv_integration_test.cpp5549 .qtype = ns_type::ns_t_a, in TEST_P()
/aosp12/packages/modules/Connectivity/tests/cts/net/jni/
H A DNativeMultinetworkJni.cpp76 int makeQuery(const char* name, int qtype, uint8_t* buf, size_t buflen) { in makeQuery() argument
77 return res_mkquery(ns_o_query, name, ns_c_in, qtype, NULL, 0, NULL, buf, buflen); in makeQuery()
/aosp12/packages/modules/DnsResolver/tests/testdata/
H A DREADME.md146 | qtype = AAAA
/aosp12/packages/apps/TV/libs/m2/
H A Djavac-shaded-9-dev-r4023-3.jarorg/openjdk/tools/sjavac/server/log/LoggingOutputStream.class LoggingOutputStream.java package ...
/aosp12/packages/apps/TV/libs/
H A Dgoogle-java-format-1.7-all-deps.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...