Lines Matching refs:question
486 for (const DNSQuestion& question : questions) { in write() local
487 buffer_cur = question.write(buffer_cur, buffer_end); in write()
766 for (const DNSQuestion& question : header.questions) { in handleDNSRequest() local
767 queries_.push_back(make_pair(question.qname.name, in handleDNSRequest()
768 ns_type(question.qtype))); in handleDNSRequest()
785 for (const DNSQuestion& question : header.questions) { in handleDNSRequest() local
786 if (question.qclass != ns_class::ns_c_in && in handleDNSRequest()
787 question.qclass != ns_class::ns_c_any) { in handleDNSRequest()
788 ALOGI("unsupported question class %u", question.qclass); in handleDNSRequest()
793 if (!addAnswerRecords(question, &header.answers)) { in handleDNSRequest()
807 bool DNSResponder::addAnswerRecords(const DNSQuestion& question, in addAnswerRecords() argument
810 std::string rname = question.qname.name; in addAnswerRecords()
813 if (question.qtype == ns_type::ns_t_a || question.qtype == ns_type::ns_t_aaaa) in addAnswerRecords()
815 rtypes.push_back(question.qtype); in addAnswerRecords()
846 question.qname.name.c_str(), dnstype2str(question.qtype)); in addAnswerRecords()