Lines Matching refs:resrec
141 if (rr->resrec.InterfaceID == id) used++; in NumCacheRecordsForInterfaceID()
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()
1072 rr->zone = rr->resrec.name; in mDNS_SetupResourceRecord()
1281 ResourceRecord *rr = &ar->resrec; in LocalOnlyRecordAnswersQuestion()
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()
1883 prereq.resrec.rrtype = kDNSQType_ANY; in putPrereqNameNotInUse()
1884 prereq.resrec.rrclass = kDNSClass_NONE; in putPrereqNameNotInUse()
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()
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()
1988 hinfo.resrec.rroriginalttl = 0; in putHINFO()
1992 hinfo.resrec.rdlength = len; in putHINFO()
1993 hinfo.resrec.rdestimate = len; in putHINFO()
1994 newptr = PutResourceRecordTTLWithLimit(msg, end, &msg->h.numAdditionals, &hinfo.resrec, 0, limit); in putHINFO()
2138 if (largecr == &m->rec && m->rec.r.resrec.RecordType) in GetLargeResourceRecord()
2147 rr->resrec.name = &largecr->namestorage; 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()
2176 …rr->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()
2370 … rr->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()
2482 …if (ptr && m->rec.r.resrec.RecordType != kDNSRecordTypePacketNegative) return(&m->rec.r.resrec.rda… in GetLLQOptData()
2494 …if (ptr && m->rec.r.resrec.rdlength >= DNSOpt_LeaseData_Space && m->rec.r.resrec.rdata->u.opt[0].o… in GetPktLease()
2495 result = m->rec.r.resrec.rdata->u.opt[0].u.updatelease; in GetPktLease()
2496 m->rec.r.resrec.RecordType = 0; // Clear RecordType to show we're not still using it in GetPktLease()
2511 …if (ptr) LogMsg("%2d TTL%8d %s", i, largecr.r.resrec.rroriginalttl, CRDisplayString(m, &largecr.r)… in DumpRecords()