Lines Matching refs:rdlength

953         SetNewRData(&rr->resrec, mDNSNULL, 0);      // Update rdlength, rdestimate, rdatahash
1384 if (rr->resrec.rrtype == kDNSType_TXT && rr->resrec.rdlength == 0) { rr->resrec.rdlength = 1; rr->resrec.rdata->u.txt.c[0] = 0; }
1388 SetTargetToHostName(m, rr); // Also sets rdlength and rdestimate for us, and calls InitializeLastAPTime();
1403 rr->resrec.rdlength = GetRDLength(&rr->resrec, mDNSfalse);
1410 // Don't do this until *after* we've set rr->resrec.rdlength
1411 if (!ValidateRData(rr->resrec.rrtype, rr->resrec.rdlength, rr->resrec.rdata))
1560 mDNSu16 OldRDLen = rr->resrec.rdlength;
1898 // 2 bytes for compressed name + type (2) class (2) TTL (4) rdlength (2) rdata (n)
1899 return (2 + 10 + rr->rdlength);
2599 mDNSu16 oldrdlength = rr->resrec.rdlength;
2753 nsec.resrec.rdlength = len + 2 + NSEC_MCAST_WINDOW_SIZE;
2754 if (nsec.resrec.rdlength <= StandardAuthRDSize)
2756 mDNSPlatformMemZero(ptr, nsec.resrec.rdlength);
2774 else LogMsg("SendResponses: not enough space (%d) in authrecord for nsec", nsec.resrec.rdlength);
2797 opt.resrec.rdlength = sizeof(rdataOPT);
2801 opt.resrec.rdlength += sizeof(rdataOPT); // Two options in this OPT record
3003 rr->resrec.rdlength <= SmallRecordLimit && // which is small enough to sensibly fit in the packet
3016 // We forecast: compressed name (2) type (2) class (2) TTL (4) rdlength (2) rdata (n)
3102 if (cr->resrec.rrtype == kDNSType_PTR && cr->resrec.rdlength >= 6) // If record is PTR type, with long enough name,
3274 if (rr->resrec.rdlength <= SmallRecordLimit && // which is small enough to sensibly fit in the packet
3279 // We forecast: compressed name (2) type (2) class (2) TTL (4) rdlength (2) rdata (n)
3656 // We forecast: compressed name (2) type (2) class (2) TTL (4) rdlength (2) rdata (n)
3734 opt.resrec.rdlength = sizeof(rdataOPT);
3738 opt.resrec.rdlength += sizeof(rdataOPT); // Two options in this OPT record
4184 if (rr->resrec.rdlength > SmallRecordLimit) q->LargeAnswers++;
4286 if (rr->resrec.rdlength > SmallRecordLimit) q->LargeAnswers--;
4364 m->rrcache_totalused_unicast -= rr->resrec.rdlength;
4366 BumpDNSSECStats(m, kStatsActionDecrement, kStatsTypeMemoryUsage, rr->resrec.rdlength);
4407 m->rrcache_totalused_unicast -= r->resrec.rdlength;
4409 BumpDNSSECStats(m, kStatsActionDecrement, kStatsTypeMemoryUsage, r->resrec.rdlength);
4694 if (rr->resrec.rdlength > SmallRecordLimit) q->LargeAnswers++;
4900 if (r->resrec.rdata) r->resrec.rdata->MaxRDLength = r->resrec.rdlength = RDLength;
5949 opt.resrec.rdlength = sizeof(rdataOPT) * 2; // Two options in this OPT record
6016 newRR->resrec.rdlength = DomainNameLength(rr->resrec.name);
6173 else if (answer->rrtype == kDNSType_A && answer->rdlength == sizeof(mDNSv4Addr))
6184 else if (answer->rrtype == kDNSType_A && answer->rdlength == 0)
6192 else if (answer->rrtype == kDNSType_AAAA && answer->rdlength == sizeof(mDNSv6Addr) && mDNSv6AddressIsLinkLocal(&answer->rdata->u.ipv6))
7252 const rdataOPT *const e = (const rdataOPT *)&m->rec.r.resrec.rdata->u.data[m->rec.r.resrec.rdlength];
7401 if (SameNameRecordAnswersQuestion(&cr->resrec, &pktq) && cr->resrec.rdlength <= SmallRecordLimit)
7914 // Certain data types need more space for in-memory storage than their in-packet rdlength would imply
7924 default: return rr->rdlength;
7976 m->rrcache_totalused_unicast += rr->resrec.rdlength;
7978 BumpDNSSECStats(m, kStatsActionIncrement, kStatsTypeMemoryUsage, rr->resrec.rdlength);
8518 if (m->rec.r.resrec.rdlength > InlineCacheRDSize)
8520 m->rec.r.resrec.rdlength, InterfaceID, CRDisplayString(m, &m->rec.r));
8927 const rdataOPT *const e = (const rdataOPT *)&m->rec.r.resrec.rdata->u.data[m->rec.r.resrec.rdlength];
9762 int len = ar->resrec.rdlength;
10003 const rdataOPT *const e = (const rdataOPT *)&m->rec.r.resrec.rdata->u.data[m->rec.r.resrec.rdlength];
10077 ar->resrec.rdlength = GetRDLength(&m->rec.r.resrec, mDNSfalse);
10115 opt.resrec.rdlength = sizeof(rdataOPT); // One option in this OPT record
10141 const rdataOPT *const e = (const rdataOPT *)&m->rec.r.resrec.rdata->u.data[m->rec.r.resrec.rdlength];
10207 cr->resrec.rdlength = 0;
11108 if (rr->resrec.rdlength > SmallRecordLimit) q->LargeAnswers--;
12185 if (answer->rdlength > sizeof(query->info->TXTinfo)) return;
12188 query->info->TXTlen = answer->rdlength;
12189 query->info->TXTinfo[0] = 0; // In case answer->rdlength is zero
12190 mDNSPlatformMemCopy(query->info->TXTinfo, answer->rdata->u.txt.c, answer->rdlength);
12492 rr->resrec.rdlength == newrdlength && mDNSPlatformMemSame(rr->resrec.rdata->u.data, newrdata->u.data, newrdlength)))
13388 if (txtinfo == mDNSNULL) sr->RR_TXT.resrec.rdlength = 0;
13391 sr->RR_TXT.resrec.rdlength = txtlen;
13392 if (sr->RR_TXT.resrec.rdlength > sr->RR_TXT.resrec.rdata->MaxRDLength) return(mStatus_BadParamErr);
13448 extra->r.resrec.name->c, DNSTypeName(extra->r.resrec.rrtype), extra->r.resrec.rdlength);
13506 host, sr->RR_SRV.resrec.rdata->u.srv.port, sr->RR_TXT.resrec.rdata->u.txt.c, sr->RR_TXT.resrec.rdlength,