Home | History | Annotate | Download | only in mDNSCore

Lines Matching refs:question

1210 // ResourceRecordAnswersQuestion returns mDNStrue if the given resource record is a valid answer to the given question.
1223 LogMsg("SameNameRecordAnswersQuestion: ERROR!! called with LocalOnly ResourceRecord %p, Question %p", rr->InterfaceID, q->InterfaceID);
1233 // If ResourceRecord received via multicast, but question was unicast, then shouldn't use record to answer this question
1249 LogMsg("ResourceRecordAnswersQuestion: ERROR!! called with LocalOnly/P2P ResourceRecord %p, Question %p", rr->InterfaceID, q->InterfaceID);
1260 // If ResourceRecord received via multicast, but question was unicast, then shouldn't use record to answer this question.
1303 // may have a scope e.g., fe80::1%en0. The question may be scoped or not: the InterfaceID may be set
1306 // 1) Question: Any, LocalOnly Record: no scope. This question should be answered with this record.
1308 // 2) Question: Any, LocalOnly Record: scoped. This question should be answered with the record because
1312 // 3) Question: Scoped (LocalOnly or InterfaceID), LocalOnly Record: no scope. This is the inverse of (2).
1313 // If we register a LocalOnly record, we need to answer a LocalOnly question. If the /etc/hosts has a
1314 // non scoped entry, it may not make sense to answer a scoped question. But we can't tell these two
1315 // cases apart. As we currently answer LocalOnly question with LocalOnly record, we continue to do so.
1317 // 4) Question: Scoped (LocalOnly or InterfaceID), LocalOnly Record: scoped. LocalOnly questions should be
1322 // against the question.
1324 // For P2P, InterfaceIDs of the question and the record should match.
1326 // If ResourceRecord received via multicast, but question was unicast, then shouldn't use record to answer this question.
1333 // a question to match its names, it also has to end in .local and that question can't be a unicast question (See
1352 LogMsg("AnyTypeRecordAnswersQuestion: ERROR!! called with LocalOnly ResourceRecord %p, Question %p", rr->InterfaceID, q->InterfaceID);
1364 // If ResourceRecord received via multicast, but question was unicast, then shouldn't use record to answer this question
1372 // This is called with both unicast resource record and multicast resource record. The question that
1375 // question and the resource record because the resource record is not completely initialized in
1383 // If ResourceRecord received via multicast, but question was unicast, then shouldn't use record to answer this question.
2404 if (!ptr) { debugf("skipQuestion: Malformed domain name in DNS question section"); return(mDNSNULL); }
2405 if (ptr+4 > end) { debugf("skipQuestion: Malformed DNS question section -- no query type and class!"); return(mDNSNULL); }
2410 DNSQuestion *question)
2412 mDNSPlatformMemZero(question, sizeof(*question));
2413 question->InterfaceID = InterfaceID;
2414 if (!InterfaceID) question->TargetQID = onesID; // In DNSQuestions we use TargetQID as the indicator of whether it's unicast or multicast
2415 ptr = getDomainName(msg, ptr, end, &question->qname);
2416 if (!ptr) { debugf("Malformed domain name in DNS question section"); return(mDNSNULL); }
2417 if (ptr+4 > end) { debugf("Malformed DNS question section -- no query type and class!"); return(mDNSNULL); }
2419 question->qnamehash = DomainNameHashValue(&question->qname);
2420 question->qtype = (mDNSu16)((mDNSu16)ptr[0] << 8 | ptr[1]); // Get type
2421 question->qclass = (mDNSu16)((mDNSu16)ptr[2] << 8 | ptr[3]); // and class