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