Home | History | Annotate | Download | only in tests

Lines Matching refs:question

468     for (const DNSQuestion& question : questions) {
469 buffer_cur = question.write(buffer_cur, buffer_end);
755 for (const DNSQuestion& question : header.questions) {
756 queries_.push_back(make_pair(question.qname.name,
757 ns_type(question.qtype)));
769 for (const DNSQuestion& question : header.questions) {
770 if (question.qclass != ns_class::ns_c_in &&
771 question.qclass != ns_class::ns_c_any) {
772 ALOGI("unsupported question class %u", question.qclass);
776 if (!addAnswerRecords(question, &header.answers)) {
790 bool DNSResponder::addAnswerRecords(const DNSQuestion& question,
792 auto it = mappings_.find(QueryKey(question.qname.name, question.qtype));
796 question.qname.name.c_str(), dnstype2str(question.qtype));
799 ALOGI("mapping found for %s %s: %s", question.qname.name.c_str(),
800 dnstype2str(question.qtype), it->second.c_str());
802 record.name = question.qname;
803 record.rtype = question.qtype;
806 if (question.qtype == ns_type::ns_t_a) {
812 } else if (question.qtype == ns_type::ns_t_aaaa) {
819 ALOGI("unhandled qtype %s", dnstype2str(question.qtype));