Lines Matching refs:resrec
570 …if ( lcr.r.resrec.rrtype == kDNSType_OPT && lcr.r.resrec.rdlength >= DNSOpt_LLQData_Space && lcr.r… in IsLLQRequest()
789 if (orig->resrec.rdlength > InlineCacheRDSize) size += orig->resrec.rdlength - InlineCacheRDSize; in CopyCacheRecord()
793 cr->resrec.rdata = (RData*)&cr->smallrdatastorage; in CopyCacheRecord()
794 cr->resrec.name = name; in CopyCacheRecord()
821 bucket = ptr->rr.resrec.namehash % newnbuckets; in RehashTable()
854 GetRRDisplayString_rdb(&ptr->rr.resrec, &ptr->rr.resrec.rdata->u, rrbuf)); in PrintLeaseTable()
889 rr.resrec.rrclass = kDNSClass_IN; in PutUpdateSRV()
890 rr.resrec.rdata->u.srv.priority = 0; in PutUpdateSRV()
891 rr.resrec.rdata->u.srv.weight = 0; in PutUpdateSRV()
892 rr.resrec.rdata->u.srv.port = port; in PutUpdateSRV()
893 …if (gethostname(hostname, 1024) < 0 || !MakeDomainNameFromDNSNameString(&rr.resrec.rdata->u.srv.ta… in PutUpdateSRV()
894 rr.resrec.rdata->u.srv.target.c[0] = '\0'; in PutUpdateSRV()
899 GetRRDisplayString_rdb(&rr.resrec, &rr.resrec.rdata->u, buf)); in PutUpdateSRV()
900 if (registration) ptr = PutResourceRecord(&pkt->msg, ptr, &pkt->msg.h.mDNS_numUpdates, &rr.resrec); in PutUpdateSRV()
901 else ptr = putRRSetDeletion(&pkt->msg, ptr, end, &rr.resrec); in PutUpdateSRV()
1302 VLog("Expiring record %s", GetRRDisplayString_rdb(&rr->resrec, &rr->resrec.rdata->u, buf)); in DeleteOneRecord()
1306 ptr = putZone(&pkt.msg, ptr, end, zname, mDNSOpaque16fromIntVal(rr->resrec.rrclass)); in DeleteOneRecord()
1308 ptr = putDeletionRecord(&pkt.msg, ptr, &rr->resrec); in DeleteOneRecord()
1379 ResourceRecord *rr = &lcr.r.resrec; in UpdateLeaseTable()
1399 …if (!ptr || lcr.r.resrec.RecordType == kDNSRecordTypePacketNegative) { Log("UpdateLeaseTable: GetL… in UpdateLeaseTable()
1415 if (SameDomainName((*rptr)->rr.resrec.name, rr->name) && in UpdateLeaseTable()
1417 (DeleteOneRRSet && (*rptr)->rr.resrec.rrtype == rr->rrtype) || in UpdateLeaseTable()
1418 (DeleteOneRR && IdenticalResourceRecord(&(*rptr)->rr.resrec, rr)))) in UpdateLeaseTable()
1421 …eceived deletion update for %s", GetRRDisplayString_rdb(&tmp->rr.resrec, &tmp->rr.resrec.rdata->u,… in UpdateLeaseTable()
1432 while (*rptr && !IdenticalResourceRecord(&(*rptr)->rr.resrec, rr)) rptr = &(*rptr)->next; in UpdateLeaseTable()
1438 …VLog("Refreshing lease for %s", GetRRDisplayString_rdb(&lcr.r.resrec, &lcr.r.resrec.rdata->u, buf)… in UpdateLeaseTable()
1455 tmp->rr.resrec.rdata = (RData *)&tmp->rr.smallrdatastorage; in UpdateLeaseTable()
1457 tmp->rr.resrec.name = &tmp->name; in UpdateLeaseTable()
1464 …VLog("Adding update for %s to lease table", GetRRDisplayString_rdb(&lcr.r.resrec, &lcr.r.resrec.rd… in UpdateLeaseTable()
1528 …if (lcr.r.resrec.RecordType != kDNSRecordTypePacketNegative && lcr.r.resrec.rroriginalttl) adds++;… in HandleRequest()
1649 opt->resrec.rrclass = NormalMaxDNSMessageData; in FormatLLQOpt()
1650 opt->resrec.rdlength = sizeof(rdataOPT); // One option in this OPT record in FormatLLQOpt()
1651 opt->resrec.rdestimate = sizeof(rdataOPT); in FormatLLQOpt()
1652 opt->resrec.rdata->u.opt[0].opt = kDNSOpt_LLQ; in FormatLLQOpt()
1653 opt->resrec.rdata->u.opt[0].u.llq.vers = kLLQ_Vers; in FormatLLQOpt()
1654 opt->resrec.rdata->u.opt[0].u.llq.llqOp = opcode; in FormatLLQOpt()
1655 opt->resrec.rdata->u.opt[0].u.llq.err = LLQErr_NoError; in FormatLLQOpt()
1656 opt->resrec.rdata->u.opt[0].u.llq.id = *id; in FormatLLQOpt()
1657 opt->resrec.rdata->u.opt[0].u.llq.llqlease = lease; in FormatLLQOpt()
1799 if (lcr.r.resrec.RecordType != kDNSRecordTypePacketNegative) in AnswerQuestion()
1801 …if (lcr.r.resrec.rrtype != e->type || lcr.r.resrec.rrclass != kDNSClass_IN || !SameDomainName(lcr.… in AnswerQuestion()
1804 lcr.r.resrec.name->c, lcr.r.resrec.rrtype, e->name.c, e->type); in AnswerQuestion()
1836 (*ka)->resrec.rroriginalttl = (unsigned)-1; // -1 means delete in UpdateAnswerList()
1843 if (IdenticalResourceRecord(&(*ka)->resrec, &(*na)->resrec)) in UpdateAnswerList()
1844 { (*ka)->resrec.rroriginalttl = 0; break; } // 0 means no change in UpdateAnswerList()
1853 if (IdenticalResourceRecord(&(*ka)->resrec, &(*na)->resrec)) break; in UpdateAnswerList()
1861 cr->resrec.rroriginalttl = 1; // 1 means add in UpdateAnswerList()
1870 if ((*ka)->resrec.rroriginalttl == (unsigned)-1) in UpdateAnswerList()
1910 if (verbose) GetRRDisplayString_rdb(&cr->resrec, &cr->resrec.rdata->u, rrbuf); in SendEvents()
1911 VLog("%s (%s): %s", addrbuf, (mDNSs32)cr->resrec.rroriginalttl < 0 ? "Remove": "Add", rrbuf); in SendEvents()
1912 …ecordTTLJumbo(&response.msg, end, &response.msg.h.numAnswers, &cr->resrec, cr->resrec.rroriginaltt… in SendEvents()
1917 …end = PutResourceRecordTTLJumbo(&response.msg, end, &response.msg.h.numAdditionals, &opt.resrec, 0… in SendEvents()
1940 …nswers; rr; rr = rr->next) Log("\t%s", GetRRDisplayString_rdb(&rr->resrec, &rr->resrec.rdata->u, r… in PrintLLQAnswers()
2043 if ((signed)tmp->resrec.rroriginalttl < 0) free(tmp); in GenLLQEvents()
2048 tmp->resrec.rroriginalttl = 0; in GenLLQEvents()
2144 end = PutResourceRecordTTLJumbo(&ack.msg, end, &ack.msg.h.numAdditionals, &opt.resrec, 0); in LLQRefresh()
2191 if (verbose) GetRRDisplayString_rdb(&ptr->resrec, &ptr->resrec.rdata->u, rrbuf); in LLQCompleteHandshake()
2193 end = PutResourceRecordTTLJumbo(&ack.msg, end, &ack.msg.h.numAnswers, &ptr->resrec, 1); in LLQCompleteHandshake()
2198 end = PutResourceRecordTTLJumbo(&ack.msg, end, &ack.msg.h.numAdditionals, &opt.resrec, 0); in LLQCompleteHandshake()
2232 …end = PutResourceRecordTTLJumbo(&challenge.msg, end, &challenge.msg.h.numAdditionals, &opt.resrec,… in LLQSetupChallenge()
2353 …if (opt.r.resrec.RecordType != kDNSRecordTypePacketNegative && opt.r.resrec.rrtype == kDNSType_OPT… in RecvLLQ()
2357 …if (opt.r.resrec.rrtype != kDNSType_OPT) { Log("Malformatted LLQ from %s: last Additional not an O… in RecvLLQ()
2358 …resrec.rdlength < pkt->msg.h.numQuestions * DNSOpt_LLQData_Space) { Log("Malformatted LLQ from %s:… in RecvLLQ()
2365 llq = (LLQOptData *)&opt.r.resrec.rdata->u.opt[0].u.llq + i; // point into OptData at index i in RecvLLQ()
2422 …hasTSIG = ( ptr && lcr.r.resrec.RecordType != kDNSRecordTypePacketNegative && lcr.r.resrec.rrtype … in IsAuthorized()
2466 Log( "Invalid TSIG spec %##s for zone %##s", lcr.r.resrec.name->c, pkt->zone->name.c ); in IsAuthorized()
2478 if ( SameDomainName( lcr.r.resrec.name, &(*key)->keyname ) ) in IsAuthorized()
2486 Log( "Invalid TSIG name %##s for zone %##s", lcr.r.resrec.name->c, pkt->zone->name.c ); in IsAuthorized()