Lines Matching refs:mDNSPlatformOneSecond

94 #define kUpdateCreditRefreshInterval (mDNSPlatformOneSecond * 6)
589 #define DefaultProbeIntervalForTypeUnique (mDNSPlatformOneSecond/4)
590 #define DefaultAnnounceIntervalForTypeShared (mDNSPlatformOneSecond/2)
591 #define DefaultAnnounceIntervalForTypeUnique (mDNSPlatformOneSecond/2)
599 #define TicksTTL(RR) ((mDNSs32)(RR)->resrec.rroriginalttl * mDNSPlatformOneSecond)
679 if ((rr->LastAPTime + rr->ThisAPInterval) - m->timenow > mDNSPlatformOneSecond * 10) in SetNextAnnounceProbeTime()
703 …rr->ThisAPInterval = rr->AddressProxy.type ? mDNSPlatformOneSecond : DefaultAPIntervalForRecordTyp… in InitializeLastAPTime()
745 if (m->SuppressProbes - m->timenow > mDNSPlatformOneSecond * 8) in InitializeLastAPTime()
778 rr->LastAPTime = m->timenow - rr->ThisAPInterval + mDNSPlatformOneSecond * 10; in InitializeLastAPTime()
1341 m->SuppressProbes = NonZeroTime(m->timenow + mDNSPlatformOneSecond * 5); in RecordProbeFailure()
1528 rr->ThisAPInterval = mDNSPlatformOneSecond * 2; in mDNS_Deregister_internal()
1531 if (m->NextScheduledResponse - (m->timenow + mDNSPlatformOneSecond/10) >= 0) in mDNS_Deregister_internal()
1532 m->NextScheduledResponse = (m->timenow + mDNSPlatformOneSecond/10); in mDNS_Deregister_internal()
2424 …if (!m->SuppressSending) m->SuppressSending = NonZeroTime(m->timenow + (mDNSPlatformOneSecond+9)/1… in SendResponses()
2493 ((RR)->CRActiveQuestion == mDNSNULL ) ? (60 * mDNSPlatformOneSecond) : \
2495 ((RR)->resrec.rroriginalttl > 10 ) ? (mDNSPlatformOneSecond) : \
2496 ((RR)->resrec.rroriginalttl > 0 ) ? (mDNSPlatformOneSecond/10) : 0)
2524 …(rr->NextRequiredQuery - m->timenow) / mDNSPlatformOneSecond, CacheCheckGracePeriod(rr), CRDisplay… in SetNextCacheCheckTimeForRecord()
2530 #define kMinimumReconfirmTime ((mDNSu32)mDNSPlatformOneSecond * 5)
2531 #define kDefaultReconfirmTimeForWake ((mDNSu32)mDNSPlatformOneSecond * 5)
2532 #define kDefaultReconfirmTimeForNoAnswer ((mDNSu32)mDNSPlatformOneSecond * 5)
2533 #define kDefaultReconfirmTimeForFlappingInterface ((mDNSu32)mDNSPlatformOneSecond * 30)
2551 rr->resrec.rroriginalttl = (interval * 4 + mDNSPlatformOneSecond - 1) / mDNSPlatformOneSecond; in mDNS_Reconfirm_internal()
2559 #define MaxQuestionInterval (3600 * mDNSPlatformOneSecond)
2591 mDNSPlatformOneSecond) // (also ensures we never include goodbye records with TTL=1) in BuildQuestion()
3139 mDNSu32 SecsSinceRcvd = ((mDNSu32)(m->timenow - ka->TimeRcvd)) / mDNSPlatformOneSecond; in SendQueries()
3201 …if (!m->SuppressSending) m->SuppressSending = NonZeroTime(m->timenow + (mDNSPlatformOneSecond+9)/1… in SendQueries()
3488 …const mDNSs32 threshhold = m->timenow + mDNSPlatformOneSecond; // See if there are any records exp… in CheckForSoonToExpireRecords()
3529 …ialQuestionInterval * QuestionIntervalStep3 && m->timenow - q->LastQTxTime < mDNSPlatformOneSecond) in CacheRecordAdd()
3533 … = m->timenow - InitialQuestionInterval + (mDNSs32)mDNSRandom((mDNSu32)mDNSPlatformOneSecond*4); in CacheRecordAdd()
3772 … (event - m->timenow) / mDNSPlatformOneSecond, CacheCheckGracePeriod(rr), CRDisplayString(m, rr)); in CheckCacheExpiration()
3908 mDNSu32 SecsSinceRcvd = ((mDNSu32)(m->timenow - rr->TimeRcvd)) / mDNSPlatformOneSecond; in AnswerNewQuestion()
3957 … m->RandomQueryDelay = (mDNSPlatformOneSecond + mDNSRandom(mDNSPlatformOneSecond*5) - 1) / 50 + 1; in AnswerNewQuestion()
4171 rr->TimeRcvd = m->timenow - mDNSPlatformOneSecond * 60; in mDNS_PurgeCacheResourceRecord()
4313 …if (m->NumFailedProbes && m->timenow - m->ProbeFailTime >= mDNSPlatformOneSecond * 10) m->NumFaile… in mDNS_Execute()
4491 m->NextScheduledQuery = m->timenow + mDNSPlatformOneSecond; in mDNS_Execute()
4500 m->NextScheduledProbe = m->timenow + mDNSPlatformOneSecond; in mDNS_Execute()
4508 m->NextScheduledResponse = m->timenow + mDNSPlatformOneSecond; in mDNS_Execute()
4834 intf->NextSPSAttemptTime = m->timenow + mDNSPlatformOneSecond; in SendSPSRegistrationForOwner()
4874 rr->ThisAPInterval = mDNSPlatformOneSecond; in SendSPSRegistrationForOwner()
4926 …intf->NextSPSAttemptTime = m->timenow + mDNSPlatformOneSecond * 10; // If successful, update Next… in SendSPSRegistrationForOwner()
4965 if (intf->NextSPSAttempt && intf->NextSPSAttemptTime == m->timenow + mDNSPlatformOneSecond * 10) in RetrySPSRegistrations()
4980 …if (intf->NextSPSAttempt && intf->NextSPSAttemptTime == m->timenow + mDNSPlatformOneSecond * 10 &&… in RetrySPSRegistrations()
5098 intf->NextSPSAttemptTime = m->timenow + mDNSPlatformOneSecond; in BeginSleepProcessing()
5158 m->SleepLimit = NonZeroTime(m->DelaySleep + mDNSPlatformOneSecond * 10); in mDNSCoreMachineSleep()
5163 m->SleepLimit = NonZeroTime(m->timenow + mDNSPlatformOneSecond * 10); in mDNSCoreMachineSleep()
5199 m->DelaySleep = NonZeroTime(m->timenow + mDNSPlatformOneSecond * 16); in mDNSCoreMachineSleep()
5219 m->NextSRVUpdate = NonZeroTime(m->timenow + mDNSPlatformOneSecond); in mDNSCoreMachineSleep()
5248 m->retryGetAddr = m->timenow + mDNSPlatformOneSecond * 5; in mDNSCoreMachineSleep()
5357 m->SleepLimit = now + mDNSPlatformOneSecond * 1; in mDNSCoreReadyForSleep()
5375 mDNSs32 e = now + (120 * 60 * mDNSPlatformOneSecond); // Sleep for at most 120 minutes in mDNSCoreIntervalToNextWake()
5379 if (nat->Protocol && nat->ExpiryTime && nat->ExpiryTime - now > mDNSPlatformOneSecond*4) in mDNSCoreIntervalToNextWake()
5386 nat->retryPortMap ? (nat->retryPortMap - now) / mDNSPlatformOneSecond : 0, in mDNSCoreIntervalToNextWake()
5387 nat->retryInterval / mDNSPlatformOneSecond, in mDNSCoreIntervalToNextWake()
5388 nat->ExpiryTime ? (nat->ExpiryTime - now) / mDNSPlatformOneSecond : 0, in mDNSCoreIntervalToNextWake()
5389 (t - now) / mDNSPlatformOneSecond); in mDNSCoreIntervalToNextWake()
5395 if (ar->expire && ar->expire - now > mDNSPlatformOneSecond*4) in mDNSCoreIntervalToNextWake()
5400 ar, ar->ThisAPInterval / mDNSPlatformOneSecond, in mDNSCoreIntervalToNextWake()
5401 (ar->LastAPTime + ar->ThisAPInterval - now) / mDNSPlatformOneSecond, in mDNSCoreIntervalToNextWake()
5402 ar->expire ? (ar->expire - now) / mDNSPlatformOneSecond : 0, in mDNSCoreIntervalToNextWake()
5403 (t - now) / mDNSPlatformOneSecond, ARDisplayString(m, ar)); in mDNSCoreIntervalToNextWake()
5626 m->SuppressProbes = NonZeroTime(m->timenow + mDNSPlatformOneSecond); in ResolveSimultaneousProbe()
5700 if (owner->seq != rr->WakeUp.seq || m->timenow - rr->TimeRcvd > mDNSPlatformOneSecond * 60) in ClearProxyRecords()
5833 if (m->timenow - (rr->LastMCTime + mDNSPlatformOneSecond) >= 0 || in ProcessQuery()
5858 if (NumAnswersForThisQuestion == 0) delayresponse = mDNSPlatformOneSecond; // Divided by 50 = 20ms in ProcessQuery()
5887 if (cr->MPUnansweredQ == 0 || m->timenow - cr->MPLastUnansweredQT >= mDNSPlatformOneSecond) in ProcessQuery()
5907 …f (!q->Target.type && ActiveQuestion(q) && m->timenow - q->LastQTxTime > mDNSPlatformOneSecond / 4) in ProcessQuery()
5975 …& ourcacherr->MPExpectingKA && m->timenow - ourcacherr->MPLastUnansweredQT < mDNSPlatformOneSecond) in ProcessQuery()
6070 …if (query->h.flags.b[0] & kDNSFlag0_TC) delayresponse = mDNSPlatformOneSecond * 20… in ProcessQuery()
6071 …else if (rr->resrec.RecordType == kDNSRecordTypeShared) delayresponse = mDNSPlatformOneSecond; //… in ProcessQuery()
6107 …ding = m->timenow + (delayresponse + (mDNSs32)mDNSRandom((mDNSu32)mDNSPlatformOneSecond*5) + 49) /… in ProcessQuery()
6145 if (cr->UnansweredQueries == 0 || m->timenow - cr->LastUnansweredTime >= mDNSPlatformOneSecond) in ProcessQuery()
6163 if (RRExpireTime(cr) - m->timenow > 4 * mDNSPlatformOneSecond) in ProcessQuery()
6182 if (remain > 240 * (mDNSu32)mDNSPlatformOneSecond) in ProcessQuery()
6183 remain = 240 * (mDNSu32)mDNSPlatformOneSecond; in ProcessQuery()
6186 if (RRExpireTime(cr) - m->timenow > 4 * mDNSPlatformOneSecond) in ProcessQuery()
6190 if (remain <= 60 * (mDNSu32)mDNSPlatformOneSecond) in ProcessQuery()
6332 …ctUnicastResp && (mDNSu32)(m->timenow - q->ExpectUnicastResp) < (mDNSu32)(mDNSPlatformOneSecond*2)) in ExpectingUnicastResponseForRecord()
6433 if (ttl > 0x60000000UL / mDNSPlatformOneSecond) ttl = 0x60000000UL / mDNSPlatformOneSecond; in GetEffectiveTTL()
6779 …ordType & kDNSRecordTypePacketUniqueMask) && m->timenow - rr->LastMCTime > mDNSPlatformOneSecond/2) in mDNSCoreReceiveResponse()
6904 if (RRExpireTime(rr) - m->timenow > mDNSPlatformOneSecond) in mDNSCoreReceiveResponse()
6921 const mDNSs32 delay = AddToCFList ? NonZeroTime(m->timenow + mDNSPlatformOneSecond) : in mDNSCoreReceiveResponse()
6973 …if (m->timenow - r2->TimeRcvd < mDNSPlatformOneSecond && RRExpireTime(r2) - m->timenow > mDNSPlatf… in mDNSCoreReceiveResponse()
7024 else if (RRExpireTime(r2) - m->timenow > mDNSPlatformOneSecond) in mDNSCoreReceiveResponse()
7306 if (updatelease > 0x40000000UL / mDNSPlatformOneSecond) in mDNSCoreReceiveUpdate()
7307 updatelease = 0x40000000UL / mDNSPlatformOneSecond; in mDNSCoreReceiveUpdate()
7340 ar->TimeExpire = m->timenow + updatelease * mDNSPlatformOneSecond; in mDNSCoreReceiveUpdate()
7413 rr->expire = NonZeroTime(m->timenow + updatelease * mDNSPlatformOneSecond); in mDNSCoreReceiveUpdateR()
8473 question->StopTime = NonZeroTime(m->timenow + timeout * mDNSPlatformOneSecond); in mDNS_StartQuery_internal()
8513 …opTime = NonZeroTime(m->timenow + GetTimeoutForMcastQuestion(m, question) * mDNSPlatformOneSecond); in mDNS_StartQuery_internal()
9132 …pdateBlocked) rr->UpdateBlocked = NonZeroTime(m->timenow + (mDNSs32)delay * mDNSPlatformOneSecond); in mDNS_Update()
9492 const mDNSs32 probedelay = flapping ? mDNSPlatformOneSecond * 5 : mDNSPlatformOneSecond / 2; in mDNS_RegisterInterface()
9518 m->AnnounceOwner = NonZeroTime(m->timenow + 60 * mDNSPlatformOneSecond); in mDNS_RegisterInterface()
9528 mDNSs32 qdelay = dodelay ? mDNSPlatformOneSecond * 5 : 0; in mDNS_RegisterInterface()
10183 rr->ThisAPInterval = mDNSPlatformOneSecond; in RestartARPProbing()
10184 …rr->LastAPTime = m->timenow + mDNSPlatformOneSecond * 9; // Send first packet at rr->LastAPTim… in RestartARPProbing()
10665 m->AnnounceOwner = NonZeroTime(timenow + 60 * mDNSPlatformOneSecond); in mDNS_Init()
11339 m->ShutdownTime = NonZeroTime(m->timenow + mDNSPlatformOneSecond * 5); in mDNS_StartExit()
11411 if (m->NextScheduledResponse - m->timenow < mDNSPlatformOneSecond) in mDNS_StartExit()