Home | History | Annotate | Download | only in mDNSCore

Lines Matching refs:tsr

179     TSROptData              tsr;
193 "TSRDataRecCreate: Bad RR domain name for TSR - tsrTime %d tsrHost %x recIndex %u",
194 opt->u.tsr.timeStamp, opt->u.tsr.hostkeyHash, opt->u.tsr.recIndex));
200 mDNSPlatformMemCopy(&rec->tsr, &opt->u.tsr, sizeof(TSROptData));
218 const TSROptData *tsr;
229 rec->tsr = tsrOpt;
2136 AuthRecord *tsr = mDNSGetTSRForAuthRecordNamed(m, name, namehash);
2138 for (const AuthRecord *ar = m->ResourceRecords; ar && tsr ; ar = ar->next)
2144 // There is at least one non-TSR record that has the same name.
2145 // So this TSR is not an orphan.
2146 tsr = mDNSNULL;
2150 return tsr;
2155 tsrOPT->u.tsr.hostkeyHash = tsrData->hostkeyHash;
2156 tsrOPT->u.tsr.recIndex = tsrData->recIndex;
2157 tsrOPT->u.tsr.timeStamp = tsrData->timeStamp;
2176 SetupTSROpt(next->tsr, &next_opt.rdata->u.opt[0]);
2181 "AddTSRRDataToMessage: TSR can't be written -- name " PRI_DM_NAME " hashkey %x",
2182 DM_NAME_PARAM(next->name), next->tsr->hostkeyHash);
2203 return &nextTSR->tsr;
2216 return nextTSR->tsr;
2228 return &tsrOptRecord->resrec.rdata->u.opt[0].u.tsr;
2541 // Find the corresponding TSR after we have finished the clean process.
2542 AuthRecord *const tsr = isTSR ? NULL :
2545 // When the last record sharing the same with the TSR record was deregistered, we should deregister the TSR record.
2546 if (tsr)
2549 "Deregistering orphaned TSR - " PRI_S, ARDisplayString(m, tsr));
2550 mDNS_Deregister_internal(m, tsr, mDNS_Dereg_repeat);
2553 { // Also remove associated TSR cache record
2558 "Purging cached TSR record that matches orphaned TSR -- " PRI_S, CRDisplayString(m, cacheTSR));
2771 SetupTSROpt(SLIST_FIRST(&tsrOpts)->tsr, &opt.resrec.rdata->u.opt[0]);
2774 // Put record after first TSR
3590 SetupTSROpt(SLIST_FIRST(&tsrOpts)->tsr, &opt.resrec.rdata->u.opt[optCount++]);
3593 // Put record after first TSR
3608 LogRedact(MDNS_LOG_CATEGORY_MDNS, MDNS_LOG_ERROR, "SendResponses: No space in packet for %s %s TSR(%d) OPT record (%d/%d/%d/%d) %s",
3614 LogRedact(MDNS_LOG_CATEGORY_MDNS, MDNS_LOG_ERROR, "SendResponses: How did we fail to have space for %s %s TSR(%d) OPT record (%d/%d/%d/%d) %s",
4228 // Only include TXT record in probe query's authority section if TSR record exist for the name
4239 // If a probe question is being sent for an AuthRecord and the AuthRecord is associated with a TSR record, then
4257 // This is to exclude record that's already verified, but include TXT and TSR record if it's service registration
4794 { // Skip if already marked for probing, or interface does not match, or TSR record
4960 SetupTSROpt(SLIST_FIRST(&tsrOpts)->tsr, &opt.resrec.rdata->u.opt[optCount++]);
4963 // Put record after first TSR
4975 LogRedact(MDNS_LOG_CATEGORY_MDNS, MDNS_LOG_ERROR, "SendQueries: How did we fail to have space for %s %s TSR(%d) OPT record (%d/%d/%d/%d) %s",
4982 LogRedact(MDNS_LOG_CATEGORY_MDNS, MDNS_LOG_ERROR, "SendQueries: Why did we generate oversized packet with %s %s TSR(%d) OPT record %p %p %p (%d/%d/%d/%d) %s",
8698 // If we don't have TSR record or probe doesn't have TSR record that has the same name with auth record, return 0;
8699 // If both have TSR, then compare tsr_value in our TSR AuthRecord and the TSR record in probe.
8706 const TSROptData *ourTSROpt = &ourTSRRec->rdata->u.opt[0].u.tsr;
8722 // tsr in probe is newer counted as we lose.
8765 // When conflict happens, look for TSR loss.
8770 "ResolveSimultaneousProbe - deregistering " PRI_DM_NAME " type " PUB_S " on interface id: %p due to TSR conflict",
8856 // Step1: Compare the TSR AuthRecord and the TSR record in probe,
8857 // skip conflict check if there is no TSR record or no hashkey match
8859 // Return mDNStrue if the TSR in probe wins, otherwise return mDNSfalse.
9106 if ((name_ptr = DomainNamePtrAtTSRIndex(query, end, opt->u.tsr.recIndex)))
9112 "ProcessQuery: Create TSR(%u) failed - if %p tsrTime %d tsrHost %x recIndex %d",
9113 tsrsCount, m->rec.r.resrec.InterfaceID, opt->u.tsr.timeStamp, opt->u.tsr.hostkeyHash,
9114 opt->u.tsr.recIndex);
9122 "ProcessQuery: No Domain Name for TSR(%u) if %p tsrTime %d tsrHost %x recIndex %d",
9123 tsrsCount, m->rec.r.resrec.InterfaceID, opt->u.tsr.timeStamp, opt->u.tsr.hostkeyHash,
9124 opt->u.tsr.recIndex);
9131 "ProcessQuery: Received TSR(%u) if %p " PUB_S,
9200 "ProcessQuery - deregistering " PRI_DM_NAME " type " PUB_S " on interface id: %p due to TSR conflict",
9805 "AddOrUpdateTSRForCacheGroup: tsrTimestamp[%u] out of range (%u) on TSR for " PRI_DM_NAME "",
9816 "AddOrUpdateTSRForCacheGroup: No cache record for new TSR " PRI_DM_NAME, DM_NAME_PARAM(cg->name));
9832 if (new || timestampContinuous - rdata->u.tsr.timeStamp > 0) // Always enter if new
9836 rdata->u.tsr.timeStamp = timestampContinuous;
9837 rdata->u.tsr.hostkeyHash = curTSROpt->hostkeyHash;
9838 rdata->u.tsr.recIndex = 0;
9840 "AddOrUpdateTSRForCacheGroup: %s TSR " PRI_S, new ? "Added" : "Updated", CRDisplayString(m, ourTsr));
11615 if ((name_ptr = DomainNamePtrAtTSRIndex(response, end, opt->u.tsr.recIndex)))
11621 "mDNSCoreReceiveResponse: Create TSR(%u) failed - if %p tsrTime %d tsrHost %x recIndex %d",
11622 tsrsCount, m->rec.r.resrec.InterfaceID, opt->u.tsr.timeStamp, opt->u.tsr.hostkeyHash,
11623 opt->u.tsr.recIndex);
11631 "mDNSCoreReceiveResponse: No Domain Name for TSR(%u) if %p tsrTime %d tsrHost %x recIndex %d",
11632 tsrsCount, m->rec.r.resrec.InterfaceID, opt->u.tsr.timeStamp, opt->u.tsr.hostkeyHash,
11633 opt->u.tsr.recIndex);
11640 "mDNSCoreReceiveResponse: Received TSR(%u) if %p " PUB_S,
12087 "mDNSCoreReceiveResponse - deregistering " PRI_DM_NAME " type " PUB_S " on interface %d due to TSR conflict",
12287 "mDNSCoreReceiveResponse - flushing cache group " PRI_DM_NAME " type " PUB_S " on interface %d due to TSR conflict",