Lines Matching defs:question

1705 // Checks whether the RRSIG or NSEC record answers the question "q".
1717 // records as it answers any question type.
1727 debugf("DNSSECRecordAnswersQuestion: %d type resource record matched question %##s (%s), ignoring", rr->rrtype,
1736 // the response to the question. The RRSIG type won't match the q->qtype and hence
1746 debugf("DNSSECRecordAnswersQuestion: RRSIG did not match question %##s (%s)", q->qname.c,
1750 LogInfo("DNSSECRecordAnswersQuestion: RRSIG matched question %##s (%s)", q->qname.c,
1755 // If the NSEC record asserts the non-existence of a name looked up by the question, we would
1757 // to prove the non-existence as required by ValidatingResponse and ValidationRequired question,
1769 // ResourceRecordAnswersQuestion returns mDNStrue if the given resource record is a valid answer to the given question.
1803 // If ResourceRecord received via multicast, but question was unicast, then shouldn't use record to answer this question
1806 // CNAME answers question of any type and a negative cache record should not prevent us from querying other
1867 // may have a scope e.g., fe80::1%en0. The question may be scoped or not: the InterfaceID may be set
1870 // 1) Question: Any, LocalOnly Record: no scope. This question should be answered with this record.
1872 // 2) Question: Any, LocalOnly Record: scoped. This question should be answered with the record because
1877 // If we register a LocalOnly record, we need to answer a LocalOnly question. If the /etc/hosts has a
1878 // non scoped entry, it may not make sense to answer a scoped question. But we can't tell these two
1879 // cases apart. As we currently answer LocalOnly question with LocalOnly record, we continue to do so.
1886 // against the question.
1888 // For P2P, InterfaceIDs of the question and the record should match.
1890 // If ResourceRecord received via multicast, but question was unicast, then shouldn't use record to answer this question.
1897 // a question to match its names, it also has to end in .local and that question can't be a unicast question (See
1936 // If ResourceRecord received via multicast, but question was unicast, then shouldn't use record to answer this question
1947 // This is called with both unicast resource record and multicast resource record. The question that
1950 // question and the resource record because the resource record is not completely initialized in
1963 // If ResourceRecord received via multicast, but question was unicast, then shouldn't use record to answer this question.
3530 if (!ptr) { debugf("skipQuestion: Malformed domain name in DNS question section"); return(mDNSNULL); }
3531 if (ptr+4 > end) { debugf("skipQuestion: Malformed DNS question section -- no query type and class!"); return(mDNSNULL); }
3536 DNSQuestion *question)
3538 mDNSPlatformMemZero(question, sizeof(*question));
3539 question->InterfaceID = InterfaceID;
3540 if (!InterfaceID) question->TargetQID = onesID; // In DNSQuestions we use TargetQID as the indicator of whether it's unicast or multicast
3541 ptr = getDomainName(msg, ptr, end, &question->qname);
3542 if (!ptr) { debugf("Malformed domain name in DNS question section"); return(mDNSNULL); }
3543 if (ptr+4 > end) { debugf("Malformed DNS question section -- no query type and class!"); return(mDNSNULL); }
3545 question->qnamehash = DomainNameHashValue(&question->qname);
3546 question->qtype = (mDNSu16)((mDNSu16)ptr[0] << 8 | ptr[1]); // Get type
3547 question->qclass = (mDNSu16)((mDNSu16)ptr[2] << 8 | ptr[3]); // and class