Lines Matching defs:RR
242 LogInfo("RR Auth now using %ld objects", r->rrauth_totalused);
662 #define ResourceRecordIsValidAnswer(RR) ( ((RR)->resrec.RecordType & kDNSRecordTypeActiveMask) && \
663 ((RR)->Additional1 == mDNSNULL || ((RR)->Additional1->resrec.RecordType & kDNSRecordTypeActiveMask)) && \
664 ((RR)->Additional2 == mDNSNULL || ((RR)->Additional2->resrec.RecordType & kDNSRecordTypeActiveMask)) && \
665 ((RR)->DependentOn == mDNSNULL || ((RR)->DependentOn->resrec.RecordType & kDNSRecordTypeActiveMask)) )
667 #define ResourceRecordIsValidInterfaceAnswer(RR, INTID) \
668 (ResourceRecordIsValidAnswer(RR) && \
669 ((RR)->resrec.InterfaceID == mDNSInterface_Any || (RR)->resrec.InterfaceID == (INTID)))
701 #define TimeToAnnounceThisRecord(RR,time) ((RR)->AnnounceCount && (time) - ((RR)->LastAPTime + (RR)->ThisAPInterval) >= 0)
702 #define TimeToSendThisRecord(RR,time) ((TimeToAnnounceThisRecord(RR,time) || (RR)->ImmedAnswer) && ResourceRecordIsValidAnswer(RR))
703 #define TicksTTL(RR) ((mDNSs32)(RR)->resrec.rroriginalttl * mDNSPlatformOneSecond)
704 #define RRExpireTime(RR) ((RR)->TimeRcvd + TicksTTL(RR))
776 // If RR signature is different, or data is different, then don't suppress our answer
2863 #define CacheCheckGracePeriod(RR) ( \
2864 ((RR)->CRActiveQuestion == mDNSNULL ) ? (60 * mDNSPlatformOneSecond) : \
2865 ((RR)->UnansweredQueries < MaxUnansweredQueries) ? (TicksTTL(rr)/50) : \
2866 ((RR)->resrec.rroriginalttl > 10 ) ? (mDNSPlatformOneSecond) : \
2867 ((RR)->resrec.rroriginalttl > 0 ) ? (mDNSPlatformOneSecond/10) : 0)
2869 #define NextCacheCheckEvent(RR) ((RR)->NextRequiredQuery + CacheCheckGracePeriod(RR))
3449 // 2. Scan our authoritative RR list to see what probes we might need to send
3837 #pragma mark - RR List Management & Task Management
4809 LogInfo("RR Cache now using %ld objects", m->rrcache_totalused);
6763 #define MustSendRecord(RR) ((RR)->NR_AnswerTo || (RR)->NR_AdditionalTo)
6890 // Find the canonical RRSet pointer for this RR received in a packet.
6908 // PacketRRConflict is called when we've received an RR (pktrr) which has the same name
6915 // 3. If we have some *other* RR that exactly matches the one from the packet, and that record and our record
8608 LogInfo("mDNSCoreReceiveCacheCheck: rescuing RR %s", CRDisplayString(m, rr));
9089 // If the RR in the packet is identical to ours, just check they're not trying to lower the TTL on us
9101 // else, the packet RR has different type or different rdata -- check to see if this is a conflict
15070 debugf("mDNS_FinalExit: RR Cache was using %ld records, %lu active", m->rrcache_totalused, rrcache_active);