Home | History | Annotate | Download | only in mDNSCore

Lines Matching refs:answer

261 			//    cache entries and answer this question.
262 // 2. uDNS_CheckCurrentQuestion will create a new cache entry and answer this question
268 // Be careful not to touch the ThisQInterval here. For a normal question, when we answer the question
1462 mDNSlocal void GetZoneData_QuestionCallback(mDNS *const m, DNSQuestion *question, const ResourceRecord *const answer, QC_result AddRecord)
1466 debugf("GetZoneData_QuestionCallback: %s %s", AddRecord ? "Add" : "Rmv", RRDisplayString(m, answer));
1469 if (AddRecord == QC_addnocache && answer->rdlength == 0) return; // Don't care about transient failure indications
1470 if (answer->rrtype != question->qtype) return; // Don't care about CNAMEs
1472 if (answer->rrtype == kDNSType_SOA)
1474 debugf("GetZoneData GOT SOA %s", RRDisplayString(m, answer));
1478 if (answer->rdlength)
1480 AssignDomainName(&zd->ZoneName, answer->name);
1481 zd->ZoneClass = answer->rrclass;
1508 else if (answer->rrtype == kDNSType_SRV)
1510 debugf("GetZoneData GOT SRV %s", RRDisplayString(m, answer));
1518 if (!answer->rdlength && zd->ZonePrivate && zd->ZoneService != ZoneServiceQuery)
1526 if (answer->rdlength)
1528 AssignDomainName(&zd->Host, &answer->rdata->u.srv.target);
1529 zd->Port = answer->rdata->u.srv.port;
1543 else if (answer->rrtype == kDNSType_A)
1545 debugf("GetZoneData GOT A %s", RRDisplayString(m, answer));
1550 zd->Addr.ip.v4 = (answer->rdlength == 4) ? answer->rdata->u.ipv4 : zerov4Addr;
2206 mDNSlocal void FoundStaticHostname(mDNS *const m, DNSQuestion *question, const ResourceRecord *const answer, QC_result AddRecord)
2208 const domainname *pktname = &answer->rdata->u.name;
2214 if (answer->rdlength != 0)
2215 LogInfo("FoundStaticHostname: question %##s -> answer %##s (%s)", question->qname.c, answer->rdata->u.name.c, AddRecord ? "ADD" : "RMV");
2217 LogInfo("FoundStaticHostname: question %##s -> answer NULL (%s)", question->qname.c, AddRecord ? "ADD" : "RMV");
2219 if (AddRecord && answer->rdlength != 0 && !SameDomainName(pktname, storedname))
3388 // -- whether or not it actually says in-addr.arpa, they just make up an answer anyway.
3441 // 1. Find out if this is an answer to one of our test questions
3449 // else, if the DNS relay gave us an error or no-answer response, it passed our test
3508 "%2d Question%s %2d Answer%s %2d Authorit%s %2d Additional%s %d bytes",
4302 // but we want *all* of the questions to get answer callbacks.)
4331 // MaxQuestionInterval when we answer the question e.g., LongLived, we need to keep backing off
4358 // momentarily defer generating answer callbacks until mDNS_Execute time.
4471 // At this point we've sent three requests without an answer, we've just sent our fourth request,
4544 // matter because when the answer comes back, RecordRegistrationGotZoneData resets the interval
4699 mDNSlocal void FoundDomain(mDNS *const m, DNSQuestion *question, const ResourceRecord *const answer, QC_result AddRecord)
4705 if (answer->rrtype != kDNSType_PTR) return;
4706 if (answer->RecordType == kDNSRecordTypePacketNegative) return;
4707 if (answer->InterfaceID == mDNSInterface_LocalOnly) return;
4716 LogInfo("FoundDomain: %p %s %s Q %##s A %s", answer->InterfaceID, AddRecord ? "Add" : "Rmv", name, question->qname.c, RRDisplayString(m, answer));
4725 AssignDomainName(&arElem->ar.resrec.rdata->u.name, &answer->rdata->u.name);
4737 if (SameDomainName(&(*ptr)->ar.resrec.rdata->u.name, &answer->rdata->u.name))
4929 // If a resource record can answer A or AAAA, they need to be flushed so that we will