Lines Matching defs:question
1704 // Checks whether the RRSIG or NSEC record answers the question "q".
1716 // records as it answers any question type.
1726 debugf("DNSSECRecordAnswersQuestion: %d type resource record matched question %##s (%s), ignoring", rr->rrtype,
1735 // the response to the question. The RRSIG type won't match the q->qtype and hence
1745 debugf("DNSSECRecordAnswersQuestion: RRSIG did not match question %##s (%s)", q->qname.c,
1749 LogInfo("DNSSECRecordAnswersQuestion: RRSIG matched question %##s (%s)", q->qname.c,
1754 // If the NSEC record asserts the non-existence of a name looked up by the question, we would
1756 // to prove the non-existence as required by ValidatingResponse and ValidationRequired question,
1768 // ResourceRecordAnswersQuestion returns mDNStrue if the given resource record is a valid answer to the given question.
1802 // If ResourceRecord received via multicast, but question was unicast, then shouldn't use record to answer this question
1805 // CNAME answers question of any type and a negative cache record should not prevent us from querying other
1866 // may have a scope e.g., fe80::1%en0. The question may be scoped or not: the InterfaceID may be set
1869 // 1) Question: Any, LocalOnly Record: no scope. This question should be answered with this record.
1871 // 2) Question: Any, LocalOnly Record: scoped. This question should be answered with the record because
1876 // If we register a LocalOnly record, we need to answer a LocalOnly question. If the /etc/hosts has a
1877 // non scoped entry, it may not make sense to answer a scoped question. But we can't tell these two
1878 // cases apart. As we currently answer LocalOnly question with LocalOnly record, we continue to do so.
1885 // against the question.
1887 // For P2P, InterfaceIDs of the question and the record should match.
1889 // If ResourceRecord received via multicast, but question was unicast, then shouldn't use record to answer this question.
1896 // a question to match its names, it also has to end in .local and that question can't be a unicast question (See
1935 // If ResourceRecord received via multicast, but question was unicast, then shouldn't use record to answer this question
1946 // This is called with both unicast resource record and multicast resource record. The question that
1949 // question and the resource record because the resource record is not completely initialized in
1962 // If ResourceRecord received via multicast, but question was unicast, then shouldn't use record to answer this question.
3538 if (!ptr) { debugf("skipQuestion: Malformed domain name in DNS question section"); return(mDNSNULL); }
3539 if (ptr+4 > end) { debugf("skipQuestion: Malformed DNS question section -- no query type and class!"); return(mDNSNULL); }
3544 DNSQuestion *question)
3546 mDNSPlatformMemZero(question, sizeof(*question));
3547 question->InterfaceID = InterfaceID;
3548 if (!InterfaceID) question->TargetQID = onesID; // In DNSQuestions we use TargetQID as the indicator of whether it's unicast or multicast
3549 ptr = getDomainName(msg, ptr, end, &question->qname);
3550 if (!ptr) { debugf("Malformed domain name in DNS question section"); return(mDNSNULL); }
3551 if (ptr+4 > end) { debugf("Malformed DNS question section -- no query type and class!"); return(mDNSNULL); }
3553 question->qnamehash = DomainNameHashValue(&question->qname);
3554 question->qtype = (mDNSu16)((mDNSu16)ptr[0] << 8 | ptr[1]); // Get type
3555 question->qclass = (mDNSu16)((mDNSu16)ptr[2] << 8 | ptr[3]); // and class