Home | History | Annotate | Download | only in mDNSCore

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)
703 rr->ThisAPInterval = rr->AddressProxy.type ? mDNSPlatformOneSecond : DefaultAPIntervalForRecordType(rr->resrec.RecordType);
745 if (m->SuppressProbes - m->timenow > mDNSPlatformOneSecond * 8)
778 rr->LastAPTime = m->timenow - rr->ThisAPInterval + mDNSPlatformOneSecond * 10;
1341 m->SuppressProbes = NonZeroTime(m->timenow + mDNSPlatformOneSecond * 5);
1528 rr->ThisAPInterval = mDNSPlatformOneSecond * 2;
1531 if (m->NextScheduledResponse - (m->timenow + mDNSPlatformOneSecond/10) >= 0)
1532 m->NextScheduledResponse = (m->timenow + mDNSPlatformOneSecond/10);
2424 if (!m->SuppressSending) m->SuppressSending = NonZeroTime(m->timenow + (mDNSPlatformOneSecond+9)/10);
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), CRDisplayString(m,rr));
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;
2559 #define MaxQuestionInterval (3600 * mDNSPlatformOneSecond)
2591 mDNSPlatformOneSecond) // (also ensures we never include goodbye records with TTL=1)
3139 mDNSu32 SecsSinceRcvd = ((mDNSu32)(m->timenow - ka->TimeRcvd)) / mDNSPlatformOneSecond;
3201 if (!m->SuppressSending) m->SuppressSending = NonZeroTime(m->timenow + (mDNSPlatformOneSecond+9)/10);
3488 const mDNSs32 threshhold = m->timenow + mDNSPlatformOneSecond; // See if there are any records expiring within one second
3529 q->ThisQInterval > InitialQuestionInterval * QuestionIntervalStep3 && m->timenow - q->LastQTxTime < mDNSPlatformOneSecond)
3533 q->LastQTime = m->timenow - InitialQuestionInterval + (mDNSs32)mDNSRandom((mDNSu32)mDNSPlatformOneSecond*4);
3772 (event - m->timenow) / mDNSPlatformOneSecond, CacheCheckGracePeriod(rr), CRDisplayString(m, rr));
3908 mDNSu32 SecsSinceRcvd = ((mDNSu32)(m->timenow - rr->TimeRcvd)) / mDNSPlatformOneSecond;
3957 m->RandomQueryDelay = (mDNSPlatformOneSecond + mDNSRandom(mDNSPlatformOneSecond*5) - 1) / 50 + 1;
4171 rr->TimeRcvd = m->timenow - mDNSPlatformOneSecond * 60;
4313 if (m->NumFailedProbes && m->timenow - m->ProbeFailTime >= mDNSPlatformOneSecond * 10) m->NumFailedProbes = 0;
4491 m->NextScheduledQuery = m->timenow + mDNSPlatformOneSecond;
4500 m->NextScheduledProbe = m->timenow + mDNSPlatformOneSecond;
4508 m->NextScheduledResponse = m->timenow + mDNSPlatformOneSecond;
4834 intf->NextSPSAttemptTime = m->timenow + mDNSPlatformOneSecond;
4874 rr->ThisAPInterval = mDNSPlatformOneSecond;
4926 intf->NextSPSAttemptTime = m->timenow + mDNSPlatformOneSecond * 10; // If successful, update NextSPSAttemptTime
4963 // First make sure none of our interfaces' NextSPSAttemptTimes are inadvertently set to m->timenow + mDNSPlatformOneSecond * 10
4965 if (intf->NextSPSAttempt && intf->NextSPSAttemptTime == m->timenow + mDNSPlatformOneSecond * 10)
4980 if (intf->NextSPSAttempt && intf->NextSPSAttemptTime == m->timenow + mDNSPlatformOneSecond * 10 && intf->NextSPSAttempt < 8)
5098 intf->NextSPSAttemptTime = m->timenow + mDNSPlatformOneSecond;
5158 m->SleepLimit = NonZeroTime(m->DelaySleep + mDNSPlatformOneSecond * 10);
5163 m->SleepLimit = NonZeroTime(m->timenow + mDNSPlatformOneSecond * 10);
5199 m->DelaySleep = NonZeroTime(m->timenow + mDNSPlatformOneSecond * 16);
5219 m->NextSRVUpdate = NonZeroTime(m->timenow + mDNSPlatformOneSecond);
5248 m->retryGetAddr = m->timenow + mDNSPlatformOneSecond * 5;
5357 m->SleepLimit = now + mDNSPlatformOneSecond * 1;
5375 mDNSs32 e = now + (120 * 60 * mDNSPlatformOneSecond); // Sleep for at most 120 minutes
5379 if (nat->Protocol && nat->ExpiryTime && nat->ExpiryTime - now > mDNSPlatformOneSecond*4)
5386 nat->retryPortMap ? (nat->retryPortMap - now) / mDNSPlatformOneSecond : 0,
5387 nat->retryInterval / mDNSPlatformOneSecond,
5388 nat->ExpiryTime ? (nat->ExpiryTime - now) / mDNSPlatformOneSecond : 0,
5389 (t - now) / mDNSPlatformOneSecond);
5395 if (ar->expire && ar->expire - now > mDNSPlatformOneSecond*4)
5400 ar, ar->ThisAPInterval / mDNSPlatformOneSecond,
5401 (ar->LastAPTime + ar->ThisAPInterval - now) / mDNSPlatformOneSecond,
5402 ar->expire ? (ar->expire - now) / mDNSPlatformOneSecond : 0,
5403 (t - now) / mDNSPlatformOneSecond, ARDisplayString(m, ar));
5626 m->SuppressProbes = NonZeroTime(m->timenow + mDNSPlatformOneSecond);
5700 if (owner->seq != rr->WakeUp.seq || m->timenow - rr->TimeRcvd > mDNSPlatformOneSecond * 60)
5833 if (m->timenow - (rr->LastMCTime + mDNSPlatformOneSecond) >= 0 ||
5858 if (NumAnswersForThisQuestion == 0) delayresponse = mDNSPlatformOneSecond; // Divided by 50 = 20ms
5887 if (cr->MPUnansweredQ == 0 || m->timenow - cr->MPLastUnansweredQT >= mDNSPlatformOneSecond)
5907 if (!q->Target.type && ActiveQuestion(q) && m->timenow - q->LastQTxTime > mDNSPlatformOneSecond / 4)
5975 if (ourcacherr && ourcacherr->MPExpectingKA && m->timenow - ourcacherr->MPLastUnansweredQT < mDNSPlatformOneSecond)
6070 if (query->h.flags.b[0] & kDNSFlag0_TC) delayresponse = mDNSPlatformOneSecond * 20; // Divided by 50 = 400ms
6071 else if (rr->resrec.RecordType == kDNSRecordTypeShared) delayresponse = mDNSPlatformOneSecond; // Divided by 50 = 20ms
6107 m->SuppressSending = m->timenow + (delayresponse + (mDNSs32)mDNSRandom((mDNSu32)mDNSPlatformOneSecond*5) + 49) / 50;
6145 if (cr->UnansweredQueries == 0 || m->timenow - cr->LastUnansweredTime >= mDNSPlatformOneSecond)
6163 if (RRExpireTime(cr) - m->timenow > 4 * mDNSPlatformOneSecond)
6182 if (remain > 240 * (mDNSu32)mDNSPlatformOneSecond)
6183 remain = 240 * (mDNSu32)mDNSPlatformOneSecond;
6186 if (RRExpireTime(cr) - m->timenow > 4 * mDNSPlatformOneSecond)
6190 if (remain <= 60 * (mDNSu32)mDNSPlatformOneSecond)
6332 if (SrcLocal && q->ExpectUnicastResp && (mDNSu32)(m->timenow - q->ExpectUnicastResp) < (mDNSu32)(mDNSPlatformOneSecond*2))
6433 if (ttl > 0x60000000UL / mDNSPlatformOneSecond) ttl = 0x60000000UL / mDNSPlatformOneSecond;
6779 if ((m->rec.r.resrec.RecordType & kDNSRecordTypePacketUniqueMask) && m->timenow - rr->LastMCTime > mDNSPlatformOneSecond/2)
6904 if (RRExpireTime(rr) - m->timenow > mDNSPlatformOneSecond)
6921 const mDNSs32 delay = AddToCFList ? NonZeroTime(m->timenow + mDNSPlatformOneSecond) :
6973 if (m->timenow - r2->TimeRcvd < mDNSPlatformOneSecond && RRExpireTime(r2) - m->timenow > mDNSPlatformOneSecond)
7024 else if (RRExpireTime(r2) - m->timenow > mDNSPlatformOneSecond)
7306 if (updatelease > 0x40000000UL / mDNSPlatformOneSecond)
7307 updatelease = 0x40000000UL / mDNSPlatformOneSecond;
7340 ar->TimeExpire = m->timenow + updatelease * mDNSPlatformOneSecond;
7413 rr->expire = NonZeroTime(m->timenow + updatelease * mDNSPlatformOneSecond);
8473 question->StopTime = NonZeroTime(m->timenow + timeout * mDNSPlatformOneSecond);
8513 question->StopTime = NonZeroTime(m->timenow + GetTimeoutForMcastQuestion(m, question) * mDNSPlatformOneSecond);
9132 if (!rr->UpdateBlocked) rr->UpdateBlocked = NonZeroTime(m->timenow + (mDNSs32)delay * mDNSPlatformOneSecond);
9492 const mDNSs32 probedelay = flapping ? mDNSPlatformOneSecond * 5 : mDNSPlatformOneSecond / 2;
9518 m->AnnounceOwner = NonZeroTime(m->timenow + 60 * mDNSPlatformOneSecond);
9528 mDNSs32 qdelay = dodelay ? mDNSPlatformOneSecond * 5 : 0;
10183 rr->ThisAPInterval = mDNSPlatformOneSecond;
10184 rr->LastAPTime = m->timenow + mDNSPlatformOneSecond * 9; // Send first packet at rr->LastAPTime + rr->ThisAPInterval, i.e. 10 seconds from now
10665 m->AnnounceOwner = NonZeroTime(timenow + 60 * mDNSPlatformOneSecond
11339 m->ShutdownTime = NonZeroTime(m->timenow + mDNSPlatformOneSecond * 5);
11411 if (m->NextScheduledResponse - m->timenow < mDNSPlatformOneSecond)