Lines Matching refs:pktrdlength
2118 mDNSu16 pktrdlength; in skipResourceRecord() local
2124 pktrdlength = (mDNSu16)((mDNSu16)ptr[8] << 8 | ptr[9]); in skipResourceRecord()
2126 …if (ptr + pktrdlength > end) { debugf("skipResourceRecord: RDATA exceeds end of packet"); return(m… in skipResourceRecord()
2128 return(ptr + pktrdlength); in skipResourceRecord()
2136 mDNSu16 pktrdlength; in GetLargeResourceRecord() local
2181 pktrdlength = (mDNSu16)((mDNSu16)ptr[8] << 8 | ptr[9]); in GetLargeResourceRecord()
2189 …if (ptr + pktrdlength > end) { debugf("GetLargeResourceRecord: RDATA exceeds end of packet"); retu… in GetLargeResourceRecord()
2190 end = ptr + pktrdlength; // Adjust end to indicate the end of the rdata for this resource record in GetLargeResourceRecord()
2202 …if (rr->resrec.rrclass == kDNSQClass_ANY && pktrdlength == 0) // Used in update packets to mean "D… in GetLargeResourceRecord()
2206 case kDNSType_A: if (pktrdlength != sizeof(mDNSv4Addr)) goto fail; 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()
2247 mDNSPlatformMemCopy(rdb->data, ptr, pktrdlength); in GetLargeResourceRecord()
2253 case kDNSType_KX: if (pktrdlength < 3) goto fail; // Preference + domainname in GetLargeResourceRecord()
2266 case kDNSType_PX: if (pktrdlength < 4) goto fail; // Preference + domainname + domainname in GetLargeResourceRecord()
2274 case kDNSType_AAAA: if (pktrdlength != sizeof(mDNSv6Addr)) goto fail; in GetLargeResourceRecord()
2278 case kDNSType_SRV: if (pktrdlength < 7) goto fail; // Priority + weight + port + domainname in GetLargeResourceRecord()
2367 default: if (pktrdlength > rr->resrec.rdata->MaxRDLength) in GetLargeResourceRecord()
2370 … rr->resrec.rrtype, DNSTypeName(rr->resrec.rrtype), pktrdlength, rr->resrec.rdata->MaxRDLength); in GetLargeResourceRecord()
2380 rr->resrec.rdlength = pktrdlength; in GetLargeResourceRecord()
2381 mDNSPlatformMemCopy(rdb->data, ptr, pktrdlength); in GetLargeResourceRecord()