Lines Matching refs:recordType
118 (rr)->resrec.RecordType & kDNSRecordTypeUniqueMask && \
123 (rr)->RecordType != kDNSRecordTypePacketNegative && \
390 m->rec.r.resrec.RecordType = 0; // Clear RecordType to show we're not still using it
456 if (!(rr->resrec.RecordType & kDNSRecordTypeActiveMask))
459 AddRecord ? "Add" : "Rmv", rr->resrec.RecordType, ARDisplayString(m, rr));
562 #define ResourceRecordIsValidAnswer(RR) ( ((RR)-> resrec.RecordType & kDNSRecordTypeActiveMask) && \
563 ((RR)->Additional1 == mDNSNULL || ((RR)->Additional1->resrec.RecordType & kDNSRecordTypeActiveMask)) && \
564 ((RR)->Additional2 == mDNSNULL || ((RR)->Additional2->resrec.RecordType & kDNSRecordTypeActiveMask)) && \
565 ((RR)->DependentOn == mDNSNULL || ((RR)->DependentOn->resrec.RecordType & kDNSRecordTypeActiveMask)) )
643 if (!(authrr->resrec.RecordType & kDNSRecordTypeUniqueMask) || authrr->WakeUp.HMAC.l[0])
677 if (rr->resrec.RecordType == kDNSRecordTypeUnique)
693 else if (rr->AnnounceCount && (ResourceRecordIsValidAnswer(rr) || rr->resrec.RecordType == kDNSRecordTypeDeregistering))
703 rr->ThisAPInterval = rr->AddressProxy.type ? mDNSPlatformOneSecond : DefaultAPIntervalForRecordType(rr->resrec.RecordType);
842 rr->ProbeCount = DefaultProbeCountForRecordType(rr->resrec.RecordType);
847 if (rr->RequireGoodbye && rr->resrec.RecordType == kDNSRecordTypeShared)
908 if (rr->resrec.RecordType == kDNSRecordTypeDeregistering)
944 #define RecordLDT(A,B) ((A)->resrec.RecordType == (B)->resrec.RecordType || \
945 ((A)->resrec.RecordType | (B)->resrec.RecordType) == (kDNSRecordTypeUnique | kDNSRecordTypeVerified) || \
946 ((A)->resrec.RecordType == kDNSRecordTypeDeregistering || (B)->resrec.RecordType == kDNSRecordTypeDeregistering))
967 if ((*rp)->resrec.RecordType == kDNSRecordTypeDeregistering)
1034 if (!rr->resrec.RecordType)
1035 { LogMsg("mDNS_Register_internal: RecordType must be non-zero %s", ARDisplayString(m, rr)); return(mStatus_BadParamErr); }
1087 if (rr->resrec.RecordType == kDNSRecordTypeUnique)
1088 rr->resrec.RecordType = kDNSRecordTypeVerified;
1091 LogMsg("mDNS_Register_internal: ERROR! %##s (%s): rr->DependentOn && RecordType != kDNSRecordTypeUnique",
1095 if (!(rr->DependentOn->resrec.RecordType & (kDNSRecordTypeUnique | kDNSRecordTypeVerified | kDNSRecordTypeKnownUnique)))
1097 LogMsg("mDNS_Register_internal: ERROR! %##s (%s): rr->DependentOn->RecordType bad type %X",
1098 rr->resrec.name->c, DNSTypeName(rr->resrec.rrtype), rr->DependentOn->resrec.RecordType);
1128 // rr->RecordType = already set in mDNS_SetupResourceRecord
1136 rr->ProbeCount = DefaultProbeCountForRecordType(rr->resrec.RecordType);
1236 if (rr->resrec.RecordType & kDNSRecordTypeUniqueMask)
1256 if (rr->resrec.RecordType == kDNSRecordTypeUnique) rr->resrec.RecordType = kDNSRecordTypeVerified;
1276 if (r->resrec.RecordType == kDNSRecordTypeDeregistering) r->AnnounceCount = 0;
1289 if (rr->resrec.RecordType == kDNSRecordTypeUnique && r->resrec.RecordType == kDNSRecordTypeVerified)
1304 if (rr->resrec.RecordType == kDNSRecordTypeUnique) rr->resrec.RecordType = kDNSRecordTypeVerified;
1318 if (rr->resrec.RecordType != kDNSRecordTypeUnique && rr->resrec.RecordType != kDNSRecordTypeDeregistering)
1363 mDNSu8 RecordType = rr->resrec.RecordType;
1416 dup->resrec.RecordType = rr->resrec.RecordType;
1476 rr->resrec.RecordType = kDNSRecordTypeDeregistering;
1507 if (RecordType == kDNSRecordTypeUnregistered)
1509 else if (RecordType == kDNSRecordTypeDeregistering)
1522 (RecordType == kDNSRecordTypeShared && (rr->RequireGoodbye || rr->AnsweredLocalQ)))
1525 rr->resrec.RecordType = kDNSRecordTypeDeregistering;
1555 rr->resrec.RecordType = kDNSRecordTypeUnregistered;
1557 if ((drt == mDNS_Dereg_conflict || drt == mDNS_Dereg_repeat) && RecordType == kDNSRecordTypeShared)
1712 if (rr->resrec.RecordType & kDNSRecordTypeUniqueMask)
1729 if (rr->resrec.RecordType & kDNSRecordTypeUniqueMask)
1736 else if (rr->resrec.RecordType & kDNSRecordTypeUniqueMask) rr->ImmedAnswer = mDNSInterfaceMark;
1755 rr->resrec.RecordType = kDNSRecordTypeShared;
1776 if (!AuthRecord_uDNS(rr) && rr->resrec.RecordType == kDNSRecordTypeDeregistering)
2078 if (rr->resrec.RecordType == kDNSRecordTypeDeregistering)
2162 // We check for RecordType == kDNSRecordTypeShared because we don't want to tag the
2163 // DeviceInfo TXT record onto a goodbye packet (RecordType == kDNSRecordTypeDeregistering).
2164 if (rr->ImmedAnswer && rr->resrec.RecordType == kDNSRecordTypeShared && rr->resrec.rrtype == kDNSType_PTR)
2179 if (rr->resrec.RecordType & kDNSRecordTypeUniqueMask)
2211 if (rr->resrec.RecordType != kDNSRecordTypeDeregistering)
2262 (rr->resrec.RecordType != kDNSRecordTypeDeregistering &&
2268 if (ResourceRecordIsValidAnswer(rr) && rr->resrec.RecordType == kDNSRecordTypeShared && rr->RequireGoodbye)
2277 if (rr->resrec.RecordType & kDNSRecordTypeUniqueMask)
2285 if (rr->resrec.RecordType == kDNSRecordTypeDeregistering) numDereg++;
2294 if (!pktcount && active && (rr->resrec.RecordType & kDNSRecordTypeActiveUniqueMask) && !rr->SendNSECNow)
2320 if (!SendAdditional && (rr->resrec.RecordType & kDNSRecordTypeUniqueMask))
2334 if (!pktcount && (rr->resrec.RecordType & kDNSRecordTypeActiveUniqueMask) && !rr->SendNSECNow)
2337 if (rr->resrec.RecordType & kDNSRecordTypeUniqueMask)
2455 RecordType, ARDisplayString(m, rr));
2459 if (rr->ImmedAnswer || rr->resrec.RecordType == kDNSRecordTypeDeregistering)
2463 if (rr->resrec.RecordType == kDNSRecordTypeDeregistering && rr->AnnounceCount == 0)
2586 !(rr->resrec.RecordType & kDNSRecordTypeUniqueMask) && // which is a shared (i.e. not unique) record type
3003 if (!AuthRecord_uDNS(ar) && ar->resrec.RecordType == kDNSRecordTypeUnique) // For all records that are still probing...
3042 if (r2->resrec.RecordType == kDNSRecordTypeUnique && RecordIsLocalDuplicate(r2, ar))
3060 ar->resrec.RecordType = kDNSRecordTypeVerified;
3072 if (ar->resrec.RecordType == kDNSRecordTypeUnique && ar->ProbeCount == 0 && !ar->Acknowledged)
3328 if (!q->TimeoutQuestion || rr->resrec.RecordType != kDNSRecordTypePacketNegative || (m->timenow - q->StopTime < 0))
3354 (AddRecord == QC_add && (q->ExpectUnique || (rr->resrec.RecordType & kDNSRecordTypePacketUniqueMask))))
3368 if (rr->resrec.RecordType == kDNSRecordTypePacketNegative || (q->qtype != kDNSType_NSEC && RRAssertsNonexistence(&rr->resrec, q->qtype)))
3449 if (!q->qDNSServer && !q->DuplicateOf && rr->resrec.RecordType == kDNSRecordTypePacketNegative)
3459 if (rr->resrec.RecordType & kDNSRecordTypePacketUniqueMask) q->UniqueAnswers++;
3545 if (rr->resrec.RecordType & kDNSRecordTypePacketUniqueMask) q->UniqueAnswers++;
3656 if (rr->resrec.RecordType & kDNSRecordTypePacketUniqueMask) q->UniqueAnswers--;
3834 m->rec.r.resrec.RecordType = 0; // Clear RecordType to show we're not still using it
3918 if ((rr->resrec.RecordType & kDNSRecordTypePacketUniqueMask) || (q->ExpectUnique))
3922 if (rr->resrec.RecordType & kDNSRecordTypePacketUniqueMask) q->UniqueAnswers++;
4207 if (rr->resrec.RecordType != kDNSRecordTypeDeregistering && rr->WakeUp.HMAC.l[0])
4237 if (rr->AnsweredLocalQ && rr->resrec.RecordType == kDNSRecordTypeDeregistering)
4240 rr->resrec.RecordType = kDNSRecordTypeShared;
4244 rr->resrec.RecordType = kDNSRecordTypeDeregistering;
4844 if (rr->resrec.RecordType > kDNSRecordTypeDeregistering)
4864 if (rr->resrec.RecordType & kDNSRecordTypeUniqueMask)
5057 if (rr->resrec.RecordType == kDNSRecordTypeShared && rr->RequireGoodbye)
5234 if (rr->resrec.RecordType == kDNSRecordTypeVerified && !rr->DependentOn) rr->resrec.RecordType = kDNSRecordTypeUnique;
5235 rr->ProbeCount = DefaultProbeCountForRecordType(rr->resrec.RecordType);
5572 if (!(our->resrec.RecordType & kDNSRecordTypeUniqueMask)) return(mDNSfalse);
5607 if (m->rec.r.resrec.RecordType != kDNSRecordTypePacketNegative && ResourceRecordAnswersQuestion(&m->rec.r.resrec, q))
5641 m->rec.r.resrec.RecordType = 0; // Clear RecordType to show we're not still using it
5646 m->rec.r.resrec.RecordType = 0; // Clear RecordType to show we're not still using it
5714 m->ProxyRecords, rr->AnnounceCount, rr->resrec.RecordType,
5716 if (rr->resrec.RecordType == kDNSRecordTypeDeregistering) rr->resrec.RecordType = kDNSRecordTypeShared;
5755 if (ptr && m->rec.r.resrec.RecordType != kDNSRecordTypePacketNegative && m->rec.r.resrec.rrtype == kDNSType_OPT)
5768 m->rec.r.resrec.RecordType = 0; // Clear RecordType to show we're not still using it
5813 if (rr->resrec.RecordType == kDNSRecordTypeUnique)
5840 else if ((rr->resrec.RecordType & kDNSRecordTypeActiveUniqueMask) && ResourceRecordIsValidAnswer(rr))
5938 if (m->rec.r.resrec.RecordType != kDNSRecordTypePacketNegative)
6006 m->rec.r.resrec.RecordType = 0; // Clear RecordType to show we're not still using it
6071 else if (rr->resrec.RecordType == kDNSRecordTypeShared) delayresponse = mDNSPlatformOneSecond; // Divided by 50 = 20ms
6122 m->rec.r.resrec.RecordType = 0; // Clear RecordType to show we're not still using it
6593 const mDNSu8 RecordType =
6596 ptr = GetLargeResourceRecord(m, response, ptr, end, InterfaceID, RecordType, &m->rec);
6598 if (m->rec.r.resrec.RecordType == kDNSRecordTypePacketNegative) { m->rec.r.resrec.RecordType = 0; continue; }
6601 if (m->rec.r.resrec.rrtype == kDNSType_TSIG) { m->rec.r.resrec.RecordType = 0; continue; }
6614 m->rec.r.resrec.RecordType = 0;
6622 m->rec.r.resrec.RecordType = 0;
6699 if (!AcceptableResponse && !(ResponseSrcLocal && rr->resrec.RecordType == kDNSRecordTypeUnique)) continue;
6741 if (rr->resrec.RecordType == kDNSRecordTypeVerified)
6744 rr->resrec.RecordType = kDNSRecordTypeUnique;
6755 else if (rr->resrec.RecordType == kDNSRecordTypeUnique)
6765 else if (rr->resrec.RecordType == kDNSRecordTypeKnownUnique)
6771 LogMsg("mDNSCoreReceiveResponse: Unexpected record type %X %s", rr->resrec.RecordType, ARDisplayString(m, rr));
6779 if ((m->rec.r.resrec.RecordType & kDNSRecordTypePacketUniqueMask) && m->timenow - rr->LastMCTime > mDNSPlatformOneSecond/2)
6828 if (m->rec.r.resrec.RecordType & kDNSRecordTypePacketUniqueMask)
6835 if (!(rr->resrec.RecordType & kDNSRecordTypePacketUniqueMask))
6839 rr->resrec.RecordType = m->rec.r.resrec.RecordType;
6873 if (rr->resrec.RecordType & kDNSRecordTypePacketUniqueMask)
6920 const mDNSBool AddToCFList = (m->rec.r.resrec.RecordType & kDNSRecordTypePacketUniqueMask) && (LLQType != uDNS_LLQ_Events);
6935 m->rec.r.resrec.RecordType = 0; // Clear RecordType to show we're not still using it
6939 m->rec.r.resrec.RecordType = 0; // Clear RecordType to show we're not still using it
7065 if (rr->resrec.RecordType == kDNSRecordTypePacketNegative) neg = rr;
7113 if (ptr && m->rec.r.resrec.RecordType != kDNSRecordTypePacketNegative && m->rec.r.resrec.rrtype == kDNSType_SOA)
7137 m->rec.r.resrec.RecordType = 0; // Clear RecordType to show we're not still using it
7167 m->rec.r.resrec.RecordType = 0; // Clear RecordType to show we're not still using it
7194 if (rr->resrec.InterfaceID == InterfaceID && rr->resrec.RecordType != kDNSRecordTypeDeregistering && mDNSSameEthAddress(&rr->WakeUp.HMAC, e))
7262 if (ptr && m->rec.r.resrec.RecordType != kDNSRecordTypePacketNegative && m->rec.r.resrec.rrtype == kDNSType_OPT)
7272 m->rec.r.resrec.RecordType = 0; // Clear RecordType to show we're not still using it
7313 if (ptr && m->rec.r.resrec.RecordType != kDNSRecordTypePacketNegative)
7320 mDNSu8 RecordType = m->rec.r.resrec.RecordType & kDNSRecordTypePacketUniqueMask ? kDNSRecordTypeUnique : kDNSRecordTypeShared;
7324 mDNS_SetupResourceRecord(ar, mDNSNULL, InterfaceID, m->rec.r.resrec.rrtype, m->rec.r.resrec.rroriginalttl, RecordType, AuthRecordAny, SPSRecordCallback, ar);
7353 LogSPS("SPS Registered %4d %X %s", m->ProxyRecords, RecordType, ARDisplayString(m,ar));
7356 m->rec.r.resrec.RecordType = 0; // Clear RecordType to show we're not still using it
7389 if (ptr && m->rec.r.resrec.RecordType != kDNSRecordTypePacketNegative && m->rec.r.resrec.rrtype == kDNSType_OPT)
7400 m->rec.r.resrec.RecordType = 0; // Clear RecordType to show we're not still using it
7436 if (cr == &m->rec.r && m->rec.r.resrec.RecordType)
7445 cr->resrec.RecordType = kDNSRecordTypePacketNegative;
8106 if (rr->resrec.RecordType == kDNSRecordTypePacketNegative)
8120 if (rr->resrec.RecordType & kDNSRecordTypePacketUniqueMask) q->UniqueAnswers--;
8708 if (rr->resrec.RecordType != kDNSRecordTypePacketNegative && SameNameRecordAnswersQuestion(&rr->resrec, question))
9233 set->RR_HINFO.resrec.RecordType = kDNSRecordTypeUnregistered;
9252 // To avoid unnecessary and misleading warning messages, we check the RecordType before calling mDNS_Deregister_internal().
9253 if (set->RR_A. resrec.RecordType) mDNS_Deregister_internal(m, &set->RR_A, mDNS_Dereg_normal);
9254 if (set->RR_PTR. resrec.RecordType) mDNS_Deregister_internal(m, &set->RR_PTR, mDNS_Dereg_normal);
9255 if (set->RR_HINFO.resrec.RecordType) mDNS_Deregister_internal(m, &set->RR_HINFO, mDNS_Dereg_normal);
9547 if (rr->resrec.RecordType == kDNSRecordTypeVerified && !rr->DependentOn) rr->resrec.RecordType = kDNSRecordTypeUnique;
9548 rr->ProbeCount = DefaultProbeCountForRecordType(rr->resrec.RecordType);
9727 if (sr->RR_SRV.resrec.RecordType != kDNSRecordTypeUnregistered) return;
9728 if (sr->RR_TXT.resrec.RecordType != kDNSRecordTypeUnregistered) return;
9729 if (sr->RR_PTR.resrec.RecordType != kDNSRecordTypeUnregistered) return;
9730 if (sr->RR_ADV.resrec.RecordType != kDNSRecordTypeUnregistered) return;
9731 for (i=0; i<sr->NumSubTypes; i++) if (sr->SubTypes[i].resrec.RecordType != kDNSRecordTypeUnregistered) return;
9735 if (e->r.resrec.RecordType != kDNSRecordTypeUnregistered) return;
9778 mDNSu8 recordType = (flags & regFlagKnownUnique) ? kDNSRecordTypeKnownUnique : kDNSRecordTypeUnique;
9807 mDNS_SetupResourceRecord(&sr->RR_SRV, mDNSNULL, InterfaceID, kDNSType_SRV, hostTTL, recordType, artype, ServiceCallback, sr);
10018 if (sr->RR_PTR.resrec.RecordType == kDNSRecordTypeUnregistered)
10023 else if (sr->RR_PTR.resrec.RecordType == kDNSRecordTypeDeregistering)
10169 rr->resrec.RecordType = kDNSRecordTypeUnique;
10209 if (rr->resrec.InterfaceID == InterfaceID && rr->resrec.RecordType != kDNSRecordTypeDeregistering &&
10241 if (rr->resrec.InterfaceID == InterfaceID && rr->resrec.RecordType != kDNSRecordTypeDeregistering &&
10292 if (rr->resrec.InterfaceID == InterfaceID && rr->resrec.RecordType != kDNSRecordTypeDeregistering &&
10329 if (rr->resrec.InterfaceID == InterfaceID && rr->resrec.RecordType != kDNSRecordTypeDeregistering &&
10443 rr->resrec.RecordType != kDNSRecordTypeDeregistering &&
10449 r2->resrec.RecordType != kDNSRecordTypeDeregistering &&
10631 m->rec.r.resrec.RecordType = 0;
10822 mDNSBool purge = cr->resrec.RecordType == kDNSRecordTypePacketNegative ||
10836 LogInfo("PurgeorReconfirmCacheRecord: Purging Resourcerecord %s, RecordType %x", CRDisplayString(m, cr), cr->resrec.RecordType);
10841 LogInfo("PurgeorReconfirmCacheRecord: Reconfirming Resourcerecord %s, RecordType %x", CRDisplayString(m, cr), cr->resrec.RecordType);
11315 (rr->resrec.RecordType != kDNSRecordTypeDeregistering) ? "Initiating " : "Accelerating",
11316 rr, rr->resrec.RecordType, ARDisplayString(m, rr));
11317 if (rr->resrec.RecordType != kDNSRecordTypeDeregistering)
11421 LogMsg("mDNS_StartExit: Should not still have Duplicate Records remaining: %02X %s", rr->resrec.RecordType, ARDisplayString(m, rr));
11463 LogMsg("mDNS_FinalExit failed to send goodbye for: %p %02X %s", rr, rr->resrec.RecordType, ARDisplayString(m, rr));