• Home
  • Raw
  • Download

Lines Matching refs:rr

139 	const CacheRecord *rr;  in NumCacheRecordsForInterfaceID()  local
140 FORALL_CACHERECORDS(slot, cg, rr) in NumCacheRecordsForInterfaceID()
141 if (rr->resrec.InterfaceID == id) used++; in NumCacheRecordsForInterfaceID()
174 mDNSexport char *GetRRDisplayString_rdb(const ResourceRecord *const rr, const RDataBody *const rd1,… in GetRRDisplayString_rdb() argument
179 …ength = mDNS_snprintf(buffer, MaxMsg-1, "%4d %##s %s ", rr->rdlength, rr->name->c, DNSTypeName(rr-… in GetRRDisplayString_rdb()
180 if (rr->RecordType == kDNSRecordTypePacketNegative) return(buffer); in GetRRDisplayString_rdb()
181 …if (!rr->rdlength) { mDNS_snprintf(buffer+length, RemSpc, "<< ZERO RDATA LENGTH >>"); return(buffe… in GetRRDisplayString_rdb()
183 switch (rr->rrtype) in GetRRDisplayString_rdb()
199 while (t < rd->txt.c + rr->rdlength) in GetRRDisplayString_rdb()
212 const rdataOPT *const end = (const rdataOPT *)&rd->data[rr->rdlength]; in GetRRDisplayString_rdb()
213 length += mDNS_snprintf(buffer+length, RemSpc, "Max %d", rr->rrclass); in GetRRDisplayString_rdb()
255 default: mDNS_snprintf(buffer+length, RemSpc, "RDLen %d: %s", rr->rdlength, rd->data); in GetRRDisplayString_rdb()
991 mDNSexport void mDNS_SetupResourceRecord(AuthRecord *rr, RData *RDataStorage, mDNSInterfaceID Inter… in mDNS_SetupResourceRecord() argument
1024 rr->resrec.RecordType = RecordType; in mDNS_SetupResourceRecord()
1025 rr->resrec.InterfaceID = InterfaceID; in mDNS_SetupResourceRecord()
1026 rr->resrec.name = &rr->namestorage; in mDNS_SetupResourceRecord()
1027 rr->resrec.rrtype = rrtype; in mDNS_SetupResourceRecord()
1028 rr->resrec.rrclass = kDNSClass_IN; in mDNS_SetupResourceRecord()
1029 rr->resrec.rroriginalttl = ttl; in mDNS_SetupResourceRecord()
1030 rr->resrec.rDNSServer = mDNSNULL; in mDNS_SetupResourceRecord()
1036 rr->resrec.rdata = RDataStorage; in mDNS_SetupResourceRecord()
1039 rr->resrec.rdata = &rr->rdatastorage; in mDNS_SetupResourceRecord()
1040 rr->resrec.rdata->MaxRDLength = sizeof(RDataBody); in mDNS_SetupResourceRecord()
1044 rr->Additional1 = mDNSNULL; in mDNS_SetupResourceRecord()
1045 rr->Additional2 = mDNSNULL; in mDNS_SetupResourceRecord()
1046 rr->DependentOn = mDNSNULL; in mDNS_SetupResourceRecord()
1047 rr->RRSet = mDNSNULL; in mDNS_SetupResourceRecord()
1048 rr->RecordCallback = Callback; in mDNS_SetupResourceRecord()
1049 rr->RecordContext = Context; in mDNS_SetupResourceRecord()
1051 rr->AutoTarget = Target_Manual; in mDNS_SetupResourceRecord()
1052 rr->AllowRemoteQuery = mDNSfalse; in mDNS_SetupResourceRecord()
1053 rr->ForceMCast = mDNSfalse; in mDNS_SetupResourceRecord()
1055 rr->WakeUp = zeroOwner; in mDNS_SetupResourceRecord()
1056 rr->AddressProxy = zeroAddr; in mDNS_SetupResourceRecord()
1057 rr->TimeRcvd = 0; in mDNS_SetupResourceRecord()
1058 rr->TimeExpire = 0; in mDNS_SetupResourceRecord()
1059 rr->ARType = artype; in mDNS_SetupResourceRecord()
1067 rr->state = regState_Zero; in mDNS_SetupResourceRecord()
1068 rr->uselease = 0; in mDNS_SetupResourceRecord()
1069 rr->expire = 0; in mDNS_SetupResourceRecord()
1070 rr->Private = 0; in mDNS_SetupResourceRecord()
1071 rr->updateid = zeroID; in mDNS_SetupResourceRecord()
1072 rr->zone = rr->resrec.name; in mDNS_SetupResourceRecord()
1073 rr->nta = mDNSNULL; in mDNS_SetupResourceRecord()
1074 rr->tcp = mDNSNULL; in mDNS_SetupResourceRecord()
1075 rr->OrigRData = 0; in mDNS_SetupResourceRecord()
1076 rr->OrigRDLen = 0; in mDNS_SetupResourceRecord()
1077 rr->InFlightRData = 0; in mDNS_SetupResourceRecord()
1078 rr->InFlightRDLen = 0; in mDNS_SetupResourceRecord()
1079 rr->QueuedRData = 0; in mDNS_SetupResourceRecord()
1080 rr->QueuedRDLen = 0; in mDNS_SetupResourceRecord()
1081 mDNSPlatformMemZero(&rr->NATinfo, sizeof(rr->NATinfo)); in mDNS_SetupResourceRecord()
1082 rr->SRVChanged = mDNSfalse; in mDNS_SetupResourceRecord()
1083 rr->mState = mergeState_Zero; in mDNS_SetupResourceRecord()
1085 rr->namestorage.c[0] = 0; // MUST be set by client before calling mDNS_Register() in mDNS_SetupResourceRecord()
1111 mDNSexport mDNSu32 RDataHashValue(const ResourceRecord *const rr) in RDataHashValue() argument
1113 int len = rr->rdlength; in RDataHashValue()
1114 const RDataBody2 *const rdb = (RDataBody2 *)rr->rdata->u.data; in RDataHashValue()
1115 switch(rr->rrtype) in RDataHashValue()
1217 mDNSexport mDNSBool SameNameRecordAnswersQuestion(const ResourceRecord *const rr, const DNSQuestion… in SameNameRecordAnswersQuestion() argument
1221 if ((rr->InterfaceID == mDNSInterface_LocalOnly) || (rr->InterfaceID == mDNSInterface_P2P)) in SameNameRecordAnswersQuestion()
1223 …rsQuestion: ERROR!! called with LocalOnly ResourceRecord %p, Question %p", rr->InterfaceID, q->Int… in SameNameRecordAnswersQuestion()
1226 if (rr->InterfaceID && in SameNameRecordAnswersQuestion()
1228 rr->InterfaceID != q->InterfaceID) return(mDNSfalse); in SameNameRecordAnswersQuestion()
1231 if (!rr->InterfaceID && rr->rDNSServer != q->qDNSServer) return(mDNSfalse); in SameNameRecordAnswersQuestion()
1234 if (rr->InterfaceID && !mDNSOpaque16IsZero(q->TargetQID)) return(mDNSfalse); in SameNameRecordAnswersQuestion()
1237 if (!RRTypeAnswersQuestionType(rr,q->qtype)) return(mDNSfalse); in SameNameRecordAnswersQuestion()
1238 if (rr->rrclass != q->qclass && q->qclass != kDNSQClass_ANY) return(mDNSfalse); in SameNameRecordAnswersQuestion()
1243 mDNSexport mDNSBool ResourceRecordAnswersQuestion(const ResourceRecord *const rr, const DNSQuestion… in ResourceRecordAnswersQuestion() argument
1247 if ((rr->InterfaceID == mDNSInterface_LocalOnly) || (rr->InterfaceID == mDNSInterface_P2P)) in ResourceRecordAnswersQuestion()
1249 …estion: ERROR!! called with LocalOnly/P2P ResourceRecord %p, Question %p", rr->InterfaceID, q->Int… in ResourceRecordAnswersQuestion()
1253 if (rr->InterfaceID && in ResourceRecordAnswersQuestion()
1255 rr->InterfaceID != q->InterfaceID) return(mDNSfalse); in ResourceRecordAnswersQuestion()
1258 if (!rr->InterfaceID && rr->rDNSServer != q->qDNSServer) return(mDNSfalse); in ResourceRecordAnswersQuestion()
1261 if (rr->InterfaceID && !mDNSOpaque16IsZero(q->TargetQID)) return(mDNSfalse); in ResourceRecordAnswersQuestion()
1264 if (!RRTypeAnswersQuestionType(rr,q->qtype)) return(mDNSfalse); in ResourceRecordAnswersQuestion()
1265 if (rr->rrclass != q->qclass && q->qclass != kDNSQClass_ANY) return(mDNSfalse); in ResourceRecordAnswersQuestion()
1267 return(rr->namehash == q->qnamehash && SameDomainName(rr->name, &q->qname)); in ResourceRecordAnswersQuestion()
1281 ResourceRecord *rr = &ar->resrec; in LocalOnlyRecordAnswersQuestion() local
1287 …LogMsg("LocalOnlyRecordAnswersQuestion: ERROR!! called with regular AuthRecordAny %##s", rr->name-… in LocalOnlyRecordAnswersQuestion()
1298 if (rr->InterfaceID && in LocalOnlyRecordAnswersQuestion()
1300 rr->InterfaceID != q->InterfaceID) return(mDNSfalse); in LocalOnlyRecordAnswersQuestion()
1337 …if (ar->ARType != AuthRecordLocalOnly && rr->InterfaceID && !mDNSOpaque16IsZero(q->TargetQID)) ret… in LocalOnlyRecordAnswersQuestion()
1340 if (!RRTypeAnswersQuestionType(rr,q->qtype)) return(mDNSfalse); in LocalOnlyRecordAnswersQuestion()
1341 if (rr->rrclass != q->qclass && q->qclass != kDNSQClass_ANY) return(mDNSfalse); in LocalOnlyRecordAnswersQuestion()
1343 return(rr->namehash == q->qnamehash && SameDomainName(rr->name, &q->qname)); in LocalOnlyRecordAnswersQuestion()
1346 mDNSexport mDNSBool AnyTypeRecordAnswersQuestion(const ResourceRecord *const rr, const DNSQuestion … in AnyTypeRecordAnswersQuestion() argument
1350 if ((rr->InterfaceID == mDNSInterface_LocalOnly) || (rr->InterfaceID == mDNSInterface_P2P)) in AnyTypeRecordAnswersQuestion()
1352 …rsQuestion: ERROR!! called with LocalOnly ResourceRecord %p, Question %p", rr->InterfaceID, q->Int… in AnyTypeRecordAnswersQuestion()
1355 if (rr->InterfaceID && in AnyTypeRecordAnswersQuestion()
1357 rr->InterfaceID != q->InterfaceID) return(mDNSfalse); in AnyTypeRecordAnswersQuestion()
1362 if (!rr->InterfaceID && rr->rDNSServer != q->qDNSServer) return(mDNSfalse); in AnyTypeRecordAnswersQuestion()
1365 if (rr->InterfaceID && !mDNSOpaque16IsZero(q->TargetQID)) return(mDNSfalse); in AnyTypeRecordAnswersQuestion()
1367 if (rr->rrclass != q->qclass && q->qclass != kDNSQClass_ANY) return(mDNSfalse); in AnyTypeRecordAnswersQuestion()
1369 return(rr->namehash == q->qnamehash && SameDomainName(rr->name, &q->qname)); in AnyTypeRecordAnswersQuestion()
1377 mDNSexport mDNSBool ResourceRecordAnswersUnicastResponse(const ResourceRecord *const rr, const DNSQ… in ResourceRecordAnswersUnicastResponse() argument
1380 if (rr->InterfaceID && in ResourceRecordAnswersUnicastResponse()
1381 q->InterfaceID && rr->InterfaceID != q->InterfaceID) return(mDNSfalse); in ResourceRecordAnswersUnicastResponse()
1384 if (rr->InterfaceID && !mDNSOpaque16IsZero(q->TargetQID)) return(mDNSfalse); in ResourceRecordAnswersUnicastResponse()
1387 if (!RRTypeAnswersQuestionType(rr,q->qtype)) return(mDNSfalse); in ResourceRecordAnswersUnicastResponse()
1389 if (rr->rrclass != q->qclass && q->qclass != kDNSQClass_ANY) return(mDNSfalse); in ResourceRecordAnswersUnicastResponse()
1391 return(rr->namehash == q->qnamehash && SameDomainName(rr->name, &q->qname)); in ResourceRecordAnswersUnicastResponse()
1394 mDNSexport mDNSu16 GetRDLength(const ResourceRecord *const rr, mDNSBool estimate) in GetRDLength() argument
1396 const RDataBody2 *const rd = (RDataBody2 *)rr->rdata->u.data; in GetRDLength()
1397 const domainname *const name = estimate ? rr->name : mDNSNULL; in GetRDLength()
1398 …if (rr->rrclass == kDNSQClass_ANY) return(rr->rdlength); // Used in update packets to mean "Delete… in GetRDLength()
1399 else switch (rr->rrtype) in GetRDLength()
1418 case kDNSType_DHCID:return(rr->rdlength); // Not self-describing, so have to just trust rdlength in GetRDLength()
1437 case kDNSType_OPT: return(rr->rdlength); in GetRDLength()
1448 return(mDNSu16)((estimate ? 2 : DomainNameLength(rr->name)) + (i ? (2 + i) : 0)); in GetRDLength()
1451 default: debugf("Warning! Don't know how to get length of resource type %d", rr->rrtype); in GetRDLength()
1452 return(rr->rdlength); in GetRDLength()
1647 …onst DNSMessage *const msg, mDNSu8 *ptr, const mDNSu8 *const limit, const ResourceRecord *const rr) in putRData() argument
1649 const RDataBody2 *const rdb = (RDataBody2 *)rr->rdata->u.data; in putRData()
1650 switch (rr->rrtype) in putRData()
1652 case kDNSType_A: if (rr->rdlength != 4) in putRData()
1653 { debugf("putRData: Illegal length %d for kDNSType_A", rr->rdlength); return(mDNSNULL); } in putRData()
1684 case kDNSType_DHCID:if (ptr + rr->rdlength > limit) return(mDNSNULL); in putRData()
1685 mDNSPlatformMemCopy(ptr, rdb->data, rr->rdlength); in putRData()
1686 return(ptr + rr->rdlength); in putRData()
1707 case kDNSType_AAAA: if (rr->rdlength != sizeof(rdb->ipv6)) in putRData()
1708 { debugf("putRData: Illegal length %d for kDNSType_AAAA", rr->rdlength); return(mDNSNULL); } in putRData()
1725 const rdataOPT *const end = (const rdataOPT *)&rr->rdata->u.data[rr->rdlength]; in putRData()
1726 for (opt = &rr->rdata->u.opt[0]; opt < end; opt++) len += DNSOpt_Data_Space(opt); in putRData()
1729 for (opt = &rr->rdata->u.opt[0]; opt < end; opt++) in putRData()
1776 ptr = putDomainNameAsLabels(msg, ptr, limit, rr->name); in putRData()
1788 default: debugf("putRData: Warning! Writing unknown resource type %d as raw data", rr->rrtype); in putRData()
1789 if (ptr + rr->rdlength > limit) return(mDNSNULL); in putRData()
1790 mDNSPlatformMemCopy(ptr, rdb->data, rr->rdlength); in putRData()
1791 return(ptr + rr->rdlength); in putRData()
1797 …hLimit(DNSMessage *const msg, mDNSu8 *ptr, mDNSu16 *count, ResourceRecord *rr, mDNSu32 ttl, const … in PutResourceRecordTTLWithLimit() argument
1802 …const DNSMessage *const rdatacompressionbase = (IsUnicastUpdate(msg) && rr->rrtype == kDNSType_SRV… in PutResourceRecordTTLWithLimit()
1804 if (rr->RecordType == kDNSRecordTypeUnregistered) in PutResourceRecordTTLWithLimit()
1806 …d ERROR! Attempt to put kDNSRecordTypeUnregistered %##s (%s)", rr->name->c, DNSTypeName(rr->rrtype… in PutResourceRecordTTLWithLimit()
1812 ptr = putDomainNameAsLabels(msg, ptr, limit, rr->name); in PutResourceRecordTTLWithLimit()
1814 ptr[0] = (mDNSu8)(rr->rrtype >> 8); in PutResourceRecordTTLWithLimit()
1815 ptr[1] = (mDNSu8)(rr->rrtype & 0xFF); in PutResourceRecordTTLWithLimit()
1816 ptr[2] = (mDNSu8)(rr->rrclass >> 8); in PutResourceRecordTTLWithLimit()
1817 ptr[3] = (mDNSu8)(rr->rrclass & 0xFF); in PutResourceRecordTTLWithLimit()
1824 endofrdata = putRData(rdatacompressionbase, ptr+10, limit, rr); in PutResourceRecordTTLWithLimit()
1825 …edebugf("Ran out of space in PutResourceRecord for %##s (%s)", rr->name->c, DNSTypeName(rr->rrtype… in PutResourceRecordTTLWithLimit()
1834 …rceRecordTTL: ERROR: No target count to update for %##s (%s)", rr->name->c, DNSTypeName(rr->rrtype… in PutResourceRecordTTLWithLimit()
1838 …NSMessage *const msg, mDNSu8 *ptr, const mDNSu8 *const limit, mDNSu16 *count, const AuthRecord *rr) in putEmptyResourceRecord() argument
1840 ptr = putDomainNameAsLabels(msg, ptr, limit, rr->resrec.name); in putEmptyResourceRecord()
1842 ptr[0] = (mDNSu8)(rr->resrec.rrtype >> 8); // Put type in putEmptyResourceRecord()
1843 ptr[1] = (mDNSu8)(rr->resrec.rrtype & 0xFF); in putEmptyResourceRecord()
1844 ptr[2] = (mDNSu8)(rr->resrec.rrclass >> 8); // Put class in putEmptyResourceRecord()
1845 ptr[3] = (mDNSu8)(rr->resrec.rrclass & 0xFF); in putEmptyResourceRecord()
1889 mDNSexport mDNSu8 *putDeletionRecord(DNSMessage *msg, mDNSu8 *ptr, ResourceRecord *rr) in putDeletionRecord() argument
1892 const mDNSu16 origclass = rr->rrclass; in putDeletionRecord()
1893 rr->rrclass = kDNSClass_NONE; in putDeletionRecord()
1894 ptr = PutResourceRecordTTLJumbo(msg, ptr, &msg->h.mDNS_numUpdates, rr, 0); in putDeletionRecord()
1895 rr->rrclass = origclass; in putDeletionRecord()
1900 mDNSexport mDNSu8 *putDeletionRecordWithLimit(DNSMessage *msg, mDNSu8 *ptr, ResourceRecord *rr, mDN… in putDeletionRecordWithLimit() argument
1903 const mDNSu16 origclass = rr->rrclass; in putDeletionRecordWithLimit()
1904 rr->rrclass = kDNSClass_NONE; in putDeletionRecordWithLimit()
1905 ptr = PutResourceRecordTTLWithLimit(msg, ptr, &msg->h.mDNS_numUpdates, rr, 0, limit); in putDeletionRecordWithLimit()
1906 rr->rrclass = origclass; in putDeletionRecordWithLimit()
1950 AuthRecord rr; in putUpdateLease() local
1951 …mDNS_SetupResourceRecord(&rr, mDNSNULL, mDNSInterface_Any, kDNSType_OPT, kStandardTTL, kDNSRecordT… in putUpdateLease()
1952 rr.resrec.rrclass = NormalMaxDNSMessageData; in putUpdateLease()
1953 rr.resrec.rdlength = sizeof(rdataOPT); // One option in this OPT record in putUpdateLease()
1954 rr.resrec.rdestimate = sizeof(rdataOPT); in putUpdateLease()
1955 rr.resrec.rdata->u.opt[0].opt = kDNSOpt_Lease; in putUpdateLease()
1956 rr.resrec.rdata->u.opt[0].u.updatelease = lease; in putUpdateLease()
1957 end = PutResourceRecordTTLJumbo(msg, end, &msg->h.numAdditionals, &rr.resrec, 0); in putUpdateLease()
1965 AuthRecord rr; in putUpdateLeaseWithLimit() local
1966 …mDNS_SetupResourceRecord(&rr, mDNSNULL, mDNSInterface_Any, kDNSType_OPT, kStandardTTL, kDNSRecordT… in putUpdateLeaseWithLimit()
1967 rr.resrec.rrclass = NormalMaxDNSMessageData; in putUpdateLeaseWithLimit()
1968 rr.resrec.rdlength = sizeof(rdataOPT); // One option in this OPT record in putUpdateLeaseWithLimit()
1969 rr.resrec.rdestimate = sizeof(rdataOPT); in putUpdateLeaseWithLimit()
1970 rr.resrec.rdata->u.opt[0].opt = kDNSOpt_Lease; in putUpdateLeaseWithLimit()
1971 rr.resrec.rdata->u.opt[0].u.updatelease = lease; in putUpdateLeaseWithLimit()
1972 end = PutResourceRecordTTLWithLimit(msg, end, &msg->h.numAdditionals, &rr.resrec, 0, limit); in putUpdateLeaseWithLimit()
2022 mDNSexport void SetNewRData(ResourceRecord *const rr, RData *NewRData, mDNSu16 rdlength) in SetNewRData() argument
2027 rr->rdata = NewRData; in SetNewRData()
2028 rr->rdlength = rdlength; in SetNewRData()
2031 target = GetRRDomainNameTarget(rr); in SetNewRData()
2032 rr->rdlength = GetRDLength(rr, mDNSfalse); in SetNewRData()
2033 rr->rdestimate = GetRDLength(rr, mDNStrue); in SetNewRData()
2034 rr->rdatahash = target ? DomainNameHashValue(target) : RDataHashValue(rr); in SetNewRData()
2134 CacheRecord *const rr = &largecr->r; in GetLargeResourceRecord() local
2135 RDataBody2 *const rdb = (RDataBody2 *)rr->smallrdatastorage.data; in GetLargeResourceRecord()
2146 rr->next = mDNSNULL; in GetLargeResourceRecord()
2147 rr->resrec.name = &largecr->namestorage; in GetLargeResourceRecord()
2149 rr->NextInKAList = mDNSNULL; in GetLargeResourceRecord()
2150 rr->TimeRcvd = m ? m->timenow : 0; in GetLargeResourceRecord()
2151 rr->DelayDelivery = 0; in GetLargeResourceRecord()
2152rr->NextRequiredQuery = m ? m->timenow : 0; // Will be updated to the real value when we call Set… in GetLargeResourceRecord()
2153 rr->LastUsed = m ? m->timenow : 0; in GetLargeResourceRecord()
2154 rr->CRActiveQuestion = mDNSNULL; in GetLargeResourceRecord()
2155 rr->UnansweredQueries = 0; in GetLargeResourceRecord()
2156 rr->LastUnansweredTime= 0; in GetLargeResourceRecord()
2158 rr->MPUnansweredQ = 0; in GetLargeResourceRecord()
2159 rr->MPLastUnansweredQT= 0; in GetLargeResourceRecord()
2160 rr->MPUnansweredKA = 0; in GetLargeResourceRecord()
2161 rr->MPExpectingKA = mDNSfalse; in GetLargeResourceRecord()
2163 rr->NextInCFList = mDNSNULL; in GetLargeResourceRecord()
2165 rr->resrec.InterfaceID = InterfaceID; in GetLargeResourceRecord()
2166 rr->resrec.rDNSServer = mDNSNULL; in GetLargeResourceRecord()
2170 rr->resrec.namehash = DomainNameHashValue(rr->resrec.name); in GetLargeResourceRecord()
2174 rr->resrec.rrtype = (mDNSu16) ((mDNSu16)ptr[0] << 8 | ptr[1]); in GetLargeResourceRecord()
2175 rr->resrec.rrclass = (mDNSu16)(((mDNSu16)ptr[2] << 8 | ptr[3]) & kDNSClass_Mask); in GetLargeResourceRecord()
2176rr->resrec.rroriginalttl = (mDNSu32) ((mDNSu32)ptr[4] << 24 | (mDNSu32)ptr[5] << 16 | (mDNSu32… in GetLargeResourceRecord()
2177 …if (rr->resrec.rroriginalttl > 0x70000000UL / mDNSPlatformOneSecond && (mDNSs32)rr->resrec.rrorigi… in GetLargeResourceRecord()
2178 rr->resrec.rroriginalttl = 0x70000000UL / mDNSPlatformOneSecond; in GetLargeResourceRecord()
2192 rr->resrec.rdata = (RData*)&rr->smallrdatastorage; in GetLargeResourceRecord()
2193 rr->resrec.rdata->MaxRDLength = MaximumRDSize; in GetLargeResourceRecord()
2195 if (!RecordType) LogMsg("GetLargeResourceRecord: No RecordType for %##s", rr->resrec.name->c); in GetLargeResourceRecord()
2202 …if (rr->resrec.rrclass == kDNSQClass_ANY && pktrdlength == 0) // Used in update packets to mean "D… in GetLargeResourceRecord()
2203 rr->resrec.rdlength = 0; in GetLargeResourceRecord()
2204 else switch (rr->resrec.rrtype) in GetLargeResourceRecord()
2240 case kDNSType_DHCID:if (pktrdlength > rr->resrec.rdata->MaxRDLength) in GetLargeResourceRecord()
2243 DNSTypeName(rr->resrec.rrtype), pktrdlength, rr->resrec.rdata->MaxRDLength); in GetLargeResourceRecord()
2246 rr->resrec.rdlength = pktrdlength; in GetLargeResourceRecord()
2289 rdataOPT *opt = rr->resrec.rdata->u.opt; in GetLargeResourceRecord()
2290 rr->resrec.rdlength = 0; in GetLargeResourceRecord()
2291 while (ptr < end && (mDNSu8 *)(opt+1) < &rr->resrec.rdata->u.data[MaximumRDSize]) in GetLargeResourceRecord()
2345 rr->resrec.rdlength = (mDNSu16)((mDNSu8*)opt - rr->resrec.rdata->u.data); in GetLargeResourceRecord()
2367 default: if (pktrdlength > rr->resrec.rdata->MaxRDLength) in GetLargeResourceRecord()
2370rr->resrec.rrtype, DNSTypeName(rr->resrec.rrtype), pktrdlength, rr->resrec.rdata->MaxRDLength); in GetLargeResourceRecord()
2374 rr->resrec.rrtype, DNSTypeName(rr->resrec.rrtype)); in GetLargeResourceRecord()
2380 rr->resrec.rdlength = pktrdlength; in GetLargeResourceRecord()
2385 SetNewRData(&rr->resrec, mDNSNULL, 0); // Sets rdlength, rdestimate, rdatahash for us in GetLargeResourceRecord()
2388 rr->resrec.RecordType = RecordType; in GetLargeResourceRecord()
2394 rr->resrec.RecordType = kDNSRecordTypePacketNegative; in GetLargeResourceRecord()
2395 rr->resrec.rdlength = 0; in GetLargeResourceRecord()
2396 rr->resrec.rdestimate = 0; in GetLargeResourceRecord()
2397 rr->resrec.rdatahash = 0; in GetLargeResourceRecord()
2711 AuthRecord *rr; in AnyLocalRecordReady() local
2712 for (rr = m->NewLocalRecords; rr; rr = rr->next) in AnyLocalRecordReady()
2713 if (LocalRecordReady(rr)) return rr; in AnyLocalRecordReady()
2760 AuthRecord *rr; in ShowTaskSchedulingError() local
2777 rr = AnyLocalRecordReady(m); in ShowTaskSchedulingError()
2778 if (rr) LogMsg("Task Scheduling Error: NewLocalRecords %s", ARDisplayString(m, rr)); in ShowTaskSchedulingError()