Lines Matching defs:answer
310 // Be careful not to touch the ThisQInterval here. For a normal question, when we answer the question
1755 mDNSlocal void GetZoneData_QuestionCallback(mDNS *const m, DNSQuestion *question, const ResourceRecord *const answer, QC_result AddRecord)
1759 debugf("GetZoneData_QuestionCallback: %s %s", AddRecord ? "Add" : "Rmv", RRDisplayString(m, answer));
1762 if (AddRecord == QC_addnocache && answer->rdlength == 0) return; // Don't care about transient failure indications
1763 if (answer->rrtype != question->qtype) return; // Don't care about CNAMEs
1765 if (answer->rrtype == kDNSType_SOA)
1767 debugf("GetZoneData GOT SOA %s", RRDisplayString(m, answer));
1771 if (answer->rdlength)
1773 AssignDomainName(&zd->ZoneName, answer->name);
1774 zd->ZoneClass = answer->rrclass;
1801 else if (answer->rrtype == kDNSType_SRV)
1803 debugf("GetZoneData GOT SRV %s", RRDisplayString(m, answer));
1811 if (!answer->rdlength && zd->ZonePrivate && zd->ZoneService != ZoneServiceQuery)
1819 if (answer->rdlength)
1821 AssignDomainName(&zd->Host, &answer->rdata->u.srv.target);
1822 zd->Port = answer->rdata->u.srv.port;
1836 else if (answer->rrtype == kDNSType_A)
1838 debugf("GetZoneData GOT A %s", RRDisplayString(m, answer));
1843 if (answer->rdlength == 4)
1844 zd->Addr.ip.v4 = answer->rdata->u.ipv4;
2510 mDNSlocal void FoundStaticHostname(mDNS *const m, DNSQuestion *question, const ResourceRecord *const answer, QC_result AddRecord)
2512 const domainname *pktname = &answer->rdata->u.name;
2518 if (answer->rdlength != 0)
2519 LogInfo("FoundStaticHostname: question %##s -> answer %##s (%s)", question->qname.c, answer->rdata->u.name.c, AddRecord ? "ADD" : "RMV");
2521 LogInfo("FoundStaticHostname: question %##s -> answer NULL (%s)", question->qname.c, AddRecord ? "ADD" : "RMV");
2523 if (AddRecord && answer->rdlength != 0 && !SameDomainName(pktname, storedname))
3877 // -- whether or not it actually says in-addr.arpa, they just make up an answer anyway.
3930 // 1. Find out if this is an answer to one of our test questions
3938 // else, if the DNS relay gave us an error or no-answer response, it passed our test
4852 // but we want *all* of the questions to get answer callbacks.)
4877 // MaxQuestionInterval when we answer the question e.g., LongLived, we need to keep backing off
4920 // momentarily defer generating answer callbacks until mDNS_Execute time.
5020 // At this point we've sent three requests without an answer, we've just sent our fourth request,
5102 // matter because when the answer comes back, RecordRegistrationGotZoneData resets the interval
5257 mDNSlocal void FoundDomain(mDNS *const m, DNSQuestion *question, const ResourceRecord *const answer, QC_result AddRecord)
5263 if (answer->rrtype != kDNSType_PTR) return;
5264 if (answer->RecordType == kDNSRecordTypePacketNegative) return;
5265 if (answer->InterfaceID == mDNSInterface_LocalOnly) return;
5274 LogInfo("FoundDomain: %p %s %s Q %##s A %s", answer->InterfaceID, AddRecord ? "Add" : "Rmv", name, question->qname.c, RRDisplayString(m, answer));
5283 AssignDomainName(&arElem->ar.resrec.rdata->u.name, &answer->rdata->u.name);
5295 if (SameDomainName(&(*ptr)->ar.resrec.rdata->u.name, &answer->rdata->u.name))
5736 // If a resource record can answer A or AAAA, they need to be flushed so that we will