Lines Matching refs:mDNSPlatformOneSecond
103 #define kUpdateCreditRefreshInterval (mDNSPlatformOneSecond * 6)
701 #define DefaultProbeIntervalForTypeUnique (mDNSPlatformOneSecond/4)
702 #define DefaultAnnounceIntervalForTypeShared (mDNSPlatformOneSecond/2)
703 #define DefaultAnnounceIntervalForTypeUnique (mDNSPlatformOneSecond/2)
711 #define TicksTTL(RR) ((mDNSs32)(RR)->resrec.rroriginalttl * mDNSPlatformOneSecond)
803 if ((rr->LastAPTime + rr->ThisAPInterval) - m->timenow > mDNSPlatformOneSecond * 10)
827 rr->ThisAPInterval = rr->AddressProxy.type ? mDNSPlatformOneSecond : DefaultAPIntervalForRecordType(rr->resrec.RecordType);
869 if (m->SuppressProbes - m->timenow > mDNSPlatformOneSecond * 8)
1551 m->SuppressProbes = NonZeroTime(m->timenow + mDNSPlatformOneSecond * 5);
1751 rr->ThisAPInterval = mDNSPlatformOneSecond * 2;
1754 if (m->NextScheduledResponse - (m->timenow + mDNSPlatformOneSecond/10) >= 0)
1755 m->NextScheduledResponse = (m->timenow + mDNSPlatformOneSecond/10);
2840 if (!m->SuppressSending) m->SuppressSending = NonZeroTime(m->timenow + (mDNSPlatformOneSecond+9)/10);
2910 ((RR)->CRActiveQuestion == mDNSNULL ) ? (60 * mDNSPlatformOneSecond) : \
2912 ((RR)->resrec.rroriginalttl > 10 ) ? (mDNSPlatformOneSecond) : \
2913 ((RR)->resrec.rroriginalttl > 0 ) ? (mDNSPlatformOneSecond/10) : 0)
2941 (rr->NextRequiredQuery - m->timenow) / mDNSPlatformOneSecond, CacheCheckGracePeriod(rr), CRDisplayString(m,rr));
2946 #define kMinimumReconfirmTime ((mDNSu32)mDNSPlatformOneSecond * 5)
2947 #define kDefaultReconfirmTimeForWake ((mDNSu32)mDNSPlatformOneSecond * 5)
2948 #define kDefaultReconfirmTimeForNoAnswer ((mDNSu32)mDNSPlatformOneSecond * 5)
2949 #define kDefaultReconfirmTimeForFlappingInterface ((mDNSu32)mDNSPlatformOneSecond * 5)
2967 rr->resrec.rroriginalttl = (interval * 4 + mDNSPlatformOneSecond - 1) / mDNSPlatformOneSecond;
3006 mDNSPlatformOneSecond) // (also ensures we never include goodbye records with TTL=1)
3675 mDNSu32 SecsSinceRcvd = ((mDNSu32)(m->timenow - ka->TimeRcvd)) / mDNSPlatformOneSecond;
3776 if (!m->SuppressSending) m->SuppressSending = NonZeroTime(m->timenow + (mDNSPlatformOneSecond+9)/10);
3963 responseLatencyMs = ((m->timenow - metrics->firstQueryTime) * 1000) / mDNSPlatformOneSecond;
4080 const mDNSs32 threshhold = m->timenow + mDNSPlatformOneSecond; // See if there are any records expiring within one second
4119 if (m->timenow - (rr->TimeRcvd + ((mDNSs32)uTTL * mDNSPlatformOneSecond)) >= 0)
4122 CRDisplayString(m, rr), rr->resrec.rroriginalttl, uTTL, (m->timenow - rr->TimeRcvd)/mDNSPlatformOneSecond);
4168 q->ThisQInterval > InitialQuestionInterval * QuestionIntervalStep3 && m->timenow - q->LastQTxTime < mDNSPlatformOneSecond)
4172 q->LastQTime = m->timenow - InitialQuestionInterval + (mDNSs32)mDNSRandom((mDNSu32)mDNSPlatformOneSecond*4);
4483 (event - m->timenow) / mDNSPlatformOneSecond, CacheCheckGracePeriod(rr), CRDisplayString(m, rr));
4681 mDNSu32 SecsSinceRcvd = ((mDNSu32)(m->timenow - rr->TimeRcvd)) / mDNSPlatformOneSecond;
4730 m->RandomQueryDelay = (mDNSPlatformOneSecond + mDNSRandom(mDNSPlatformOneSecond*5) - 1) / 50 + 1;
4944 rr->TimeRcvd = m->timenow - mDNSPlatformOneSecond * 60;
5106 if (m->NumFailedProbes && m->timenow - m->ProbeFailTime >= mDNSPlatformOneSecond * 10) m->NumFailedProbes = 0;
5292 m->NextScheduledQuery = m->timenow + mDNSPlatformOneSecond;
5301 m->NextScheduledProbe = m->timenow + mDNSPlatformOneSecond;
5309 m->NextScheduledResponse = m->timenow + mDNSPlatformOneSecond;
5851 intf->NextSPSAttemptTime = m->timenow + mDNSPlatformOneSecond;
5932 rr->ThisAPInterval = mDNSPlatformOneSecond;
5986 intf->NextSPSAttemptTime = m->timenow + mDNSPlatformOneSecond * 10; // If successful, update NextSPSAttemptTime
6124 // First make sure none of our interfaces' NextSPSAttemptTimes are inadvertently set to m->timenow + mDNSPlatformOneSecond * 10
6126 if (intf->NextSPSAttempt && intf->NextSPSAttemptTime == m->timenow + mDNSPlatformOneSecond * 10)
6148 if (intf->NextSPSAttempt && intf->NextSPSAttemptTime == m->timenow + mDNSPlatformOneSecond * 10 && intf->NextSPSAttempt < 8)
6446 intf->NextSPSAttemptTime = m->timenow + mDNSPlatformOneSecond;
6559 m->SleepLimit = NonZeroTime(m->DelaySleep + mDNSPlatformOneSecond * 10);
6564 m->SleepLimit = NonZeroTime(m->timenow + mDNSPlatformOneSecond * 10);
6614 m->NextSRVUpdate = NonZeroTime(m->timenow + mDNSPlatformOneSecond);
6645 const mDNSs32 remain = uTTL - (m->timenow - cr->TimeRcvd) / mDNSPlatformOneSecond;
6661 cr->TimeRcvd -= (diff * mDNSPlatformOneSecond);
6662 if (m->timenow - (cr->TimeRcvd + ((mDNSs32)uTTL * mDNSPlatformOneSecond)) >= 0)
6701 RecreateNATMappings(m, mDNSPlatformOneSecond * 5);
6808 m->SleepLimit = now + mDNSPlatformOneSecond * 1;
6826 mDNSs32 e = now + (120 * 60 * mDNSPlatformOneSecond); // Sleep for at most 120 minutes
6830 if (nat->Protocol && nat->ExpiryTime && nat->ExpiryTime - now > mDNSPlatformOneSecond*4)
6837 nat->retryPortMap ? (nat->retryPortMap - now) / mDNSPlatformOneSecond : 0,
6838 nat->retryInterval / mDNSPlatformOneSecond,
6839 nat->ExpiryTime ? (nat->ExpiryTime - now) / mDNSPlatformOneSecond : 0,
6840 (t - now) / mDNSPlatformOneSecond);
6846 if (ar->expire && ar->expire - now > mDNSPlatformOneSecond*4)
6851 ar, ar->ThisAPInterval / mDNSPlatformOneSecond,
6852 (ar->LastAPTime + ar->ThisAPInterval - now) / mDNSPlatformOneSecond,
6853 ar->expire ? (ar->expire - now) / mDNSPlatformOneSecond : 0,
6854 (t - now) / mDNSPlatformOneSecond, ARDisplayString(m, ar));
7077 m->SuppressProbes = NonZeroTime(m->timenow + mDNSPlatformOneSecond);
7189 if (owner->seq != rr->WakeUp.seq || m->timenow - rr->TimeRcvd > mDNSPlatformOneSecond * 60)
7350 if (m->timenow - (rr->LastMCTime + mDNSPlatformOneSecond) >= 0 ||
7375 if (NumAnswersForThisQuestion == 0) delayresponse = mDNSPlatformOneSecond; // Divided by 50 = 20ms
7407 if (cr->MPUnansweredQ == 0 || m->timenow - cr->MPLastUnansweredQT >= mDNSPlatformOneSecond)
7433 if (!q->Target.type && ActiveQuestion(q) && m->timenow - q->LastQTxTime > mDNSPlatformOneSecond / 4)
7513 if (ourcacherr && ourcacherr->MPExpectingKA && m->timenow - ourcacherr->MPLastUnansweredQT < mDNSPlatformOneSecond)
7632 if (query->h.flags.b[0] & kDNSFlag0_TC) delayresponse = mDNSPlatformOneSecond * 20; // Divided by 50 = 400ms
7633 else if (rr->resrec.RecordType == kDNSRecordTypeShared) delayresponse = mDNSPlatformOneSecond; // Divided by 50 = 20ms
7669 m->SuppressSending = m->timenow + (delayresponse + (mDNSs32)mDNSRandom((mDNSu32)mDNSPlatformOneSecond*5) + 49) / 50;
7708 if (cr->UnansweredQueries == 0 || m->timenow - cr->LastUnansweredTime >= mDNSPlatformOneSecond)
7726 if (RRExpireTime(cr) - m->timenow > 4 * mDNSPlatformOneSecond)
7746 if (remain > 240 * (mDNSu32)mDNSPlatformOneSecond)
7747 remain = 240 * (mDNSu32)mDNSPlatformOneSecond;
7750 if (RRExpireTime(cr) - m->timenow > 4 * mDNSPlatformOneSecond)
7754 if (remain <= 60 * (mDNSu32)mDNSPlatformOneSecond)
7906 if (SrcLocal && q->ExpectUnicastResp && (mDNSu32)(m->timenow - q->ExpectUnicastResp) < (mDNSu32)(mDNSPlatformOneSecond*2))
8047 if (ttl > 0x60000000UL / mDNSPlatformOneSecond) ttl = 0x60000000UL / mDNSPlatformOneSecond;
8645 if (RRExpireTime(rr) - m->timenow > mDNSPlatformOneSecond)
9153 if ((m->rec.r.resrec.RecordType & kDNSRecordTypePacketUniqueMask) && m->timenow - rr->LastMCTime > mDNSPlatformOneSecond/2)
9197 delay = NonZeroTime(m->timenow + mDNSPlatformOneSecond);
9319 if (m->timenow - r2->TimeRcvd < mDNSPlatformOneSecond && RRExpireTime(r2) - m->timenow > mDNSPlatformOneSecond)
9377 else if (RRExpireTime(r2) - m->timenow > mDNSPlatformOneSecond)
9921 ar->KATimeExpire = NonZeroTime(m->timenow + timeout * mDNSPlatformOneSecond);
10044 if (updatelease > 0x40000000UL / mDNSPlatformOneSecond)
10045 updatelease = 0x40000000UL / mDNSPlatformOneSecond;
10091 ar->TimeExpire = m->timenow + updatelease * mDNSPlatformOneSecond;
10168 rr->expire = NonZeroTime(m->timenow + updatelease * mDNSPlatformOneSecond);
11413 question->StopTime = NonZeroTime(m->timenow + timeout * mDNSPlatformOneSecond);
11426 question->StopTime = NonZeroTime(m->timenow + GetTimeoutForMcastQuestion(m, question) * mDNSPlatformOneSecond);
12505 if (!rr->UpdateBlocked) rr->UpdateBlocked = NonZeroTime(m->timenow + (mDNSs32)delay * mDNSPlatformOneSecond);
12918 const mDNSs32 probedelay = flapping ? mDNSPlatformOneSecond * 5 : mDNSPlatformOneSecond / 2;
12948 m->AnnounceOwner = NonZeroTime(m->timenow + 60 * mDNSPlatformOneSecond);
12961 mDNSs32 qdelay = dodelay ? mDNSPlatformOneSecond * 5 : 0;
13690 rr->ThisAPInterval = mDNSPlatformOneSecond;
13691 rr->LastAPTime = m->timenow + mDNSPlatformOneSecond * 9; // Send first packet at rr->LastAPTime + rr->ThisAPInterval, i.e. 10 seconds from now
14282 m->AnnounceOwner = NonZeroTime(timenow + 60 * mDNSPlatformOneSecond);
15021 m->ShutdownTime = NonZeroTime(m->timenow + mDNSPlatformOneSecond * 5);
15092 if (m->NextScheduledResponse - m->timenow < mDNSPlatformOneSecond)