Home
last modified time | relevance | path

Searched refs:RDLength (Results 1 – 1 of 1) sorted by relevance

/external/mdnsresponder/mDNSCore/
DmDNS.c4118 mDNSlocal CacheRecord *GetCacheRecord(mDNS *const m, CacheGroup *cg, mDNSu16 RDLength) in GetCacheRecord() argument
4124 if (RDLength > InlineCacheRDSize) // If RDLength is too big, allocate extra storage in GetCacheRecord()
4126 r->resrec.rdata = (RData*)mDNSPlatformMemAllocate(sizeofRDataHeader + RDLength); in GetCacheRecord()
4127 if (r->resrec.rdata) r->resrec.rdata->MaxRDLength = r->resrec.rdlength = RDLength; in GetCacheRecord()
6359 mDNSu16 RDLength = GetRDLengthMem(&m->rec.r.resrec); in CreateNewCacheEntry() local
6367 …if (cg) rr = GetCacheRecord(m, cg, RDLength); // Make a cache record, being careful not to recycl… in CreateNewCacheEntry()
6378 if (rr->resrec.rdata == (RData*)&rr->smallrdatastorage && RDLength > InlineCacheRDSize) in CreateNewCacheEntry()
6380 else if (rr->resrec.rdata != (RData*)&rr->smallrdatastorage && RDLength <= InlineCacheRDSize) in CreateNewCacheEntry()
6382 if (RDLength > InlineCacheRDSize) in CreateNewCacheEntry()
6383 mDNSPlatformMemCopy(rr->resrec.rdata, m->rec.r.resrec.rdata, sizeofRDataHeader + RDLength); in CreateNewCacheEntry()