• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/mt-daapd/src/

Lines Matching refs:timenow

243 In mDNSCoreMachineSleep debugf message, display value of m->timenow
437 The correct cutoff time for duplicate query suppression is timenow less one-half the query interval.
793 Was setting "rr->LastAPTime = timenow - rr->LastAPTime"
794 instead of "rr->LastAPTime = timenow - rr->ThisAPInterval"
800 <rdar://problem/3241281> Change timenow from a local variable to a structure member
2257 if (m->SuppressProbes == 0 || m->SuppressProbes - m->timenow < 0)
2259 m->SuppressProbes = (m->timenow + DefaultProbeIntervalForTypeUnique) | 1;
2271 rr->AnnounceUntil = m->timenow + TicksTTL(rr);
2275 rr->LastMCTime = m->timenow;
2573 m->ProbeFailTime = m->timenow;
2577 if (m->NumFailedProbes >= 10) m->SuppressProbes = (m->timenow + mDNSPlatformOneSecond * 5) | 1;
2668 if (m->NextScheduledResponse - (m->timenow + mDNSPlatformOneSecond/10) >= 0)
2669 m->NextScheduledResponse = (m->timenow + mDNSPlatformOneSecond/10);
3085 rr->TimeRcvd = m->timenow;
3086 rr->NextRequiredQuery = m->timenow; // Will be updated to the real value when we call SetNextCacheCheckTime()
3087 rr->LastUsed = m->timenow;
3322 m->NextScheduledResponse = m->timenow + 0x78000000;
3331 if (rr->NextUpdateCredit && m->timenow - rr->NextUpdateCredit >= 0)
3334 else rr->NextUpdateCredit = (m->timenow + mDNSPlatformOneSecond * 60) | 1;
3336 if (TimeToAnnounceThisRecord(rr, m->timenow) && ResourceRecordIsValidAnswer(rr))
3350 TimeToAnnounceThisRecord(rr, m->timenow + rr->ThisAPInterval/2) &&
3398 rr->LastMCTime = m->timenow;
3401 if (TimeToAnnounceThisRecord(rr, m->timenow + rr->ThisAPInterval/2))
3405 rr->LastAPTime = m->timenow;
3414 rr->LastMCTime = m->timenow;
3482 if (rr->LastAPTime == m->timenow) numAnnounce++; else numAnswer++;
3525 if (!m->SuppressSending) m->SuppressSending = (m->timenow + mDNSPlatformOneSecond/10) | 1; // OR with one to ensure non-zero
3570 verbosedebugf("SendResponses: Next in %d ticks", m->NextScheduledResponse - m->timenow);
3604 rr->resrec.name.c, DNSTypeName(rr->resrec.rrtype), (rr->NextRequiredQuery - m->timenow) / mDNSPlatformOneSecond);
3623 if (RRExpireTime(rr) - m->timenow > (mDNSs32)((interval * 4) / 3))
3627 rr->TimeRcvd = m->timenow - (mDNSs32)interval * 3;
3631 debugf("mDNS_Reconfirm_internal:%5ld ticks to go for %s", RRExpireTime(rr) - m->timenow, GetRRDisplayString(m, rr));
3669 rr->TimeRcvd + TicksTTL(rr)/2 - m->timenow >= 0 && // and it is less than half-way to expiry
3670 rr->NextRequiredQuery - (m->timenow + q->ThisQInterval) > 0)// and we'll ask at least once again before NextRequiredQuery
3712 if (ucast) m->ExpectUnicastResponse = m->timenow;
3720 rr->LastUnansweredTime = m->timenow;
3794 if (TimeToSendThisQuestion(q, m->timenow + q->ThisQInterval/10))
3798 if (TimeToSendThisQuestion(q, m->timenow + q->ThisQInterval/2))
3806 rr->TimeRcvd + TicksTTL(rr)/2 - m->timenow >= 0 && // and it is less than half-way to expiry
3807 rr->NextRequiredQuery - (m->timenow + q->ThisQInterval) > 0)// and we'll ask at least once again before NextRequiredQuery
3841 if (m->timenow - m->NextScheduledQuery >= 0)
3845 m->NextScheduledQuery = m->timenow + 0x78000000;
3852 if (m->timenow + TicksTTL(rr)/50 - rr->NextRequiredQuery >= 0)
3855 ExpireDupSuppressInfoOnInterface(q->DupSuppress, m->timenow - TicksTTL(rr)/20, rr->resrec.InterfaceID);
3862 if (TimeToSendThisQuestion(q, m->timenow))
3878 if (m->timenow - (q->LastQTime + q->ThisQInterval/2) >= 0)
3896 q->LastQTime = m->timenow;
3901 ExpireDupSuppressInfo(q->DupSuppress, m->timenow - q->ThisQInterval/2);
3903 q->LastQTxTime = m->timenow;
3912 if (m->timenow - m->NextScheduledProbe >= 0)
3914 m->NextScheduledProbe = m->timenow + 0x78000000;
3925 if (m->timenow - (rr->LastAPTime + rr->ThisAPInterval) < 0)
3934 rr->LastAPTime = m->timenow;
3944 rr->LastAPTime = m->timenow - DefaultAnnounceIntervalForTypeUnique;
4021 mDNSu32 SecsSinceRcvd = ((mDNSu32)(m->timenow - rr->TimeRcvd)) / mDNSPlatformOneSecond;
4061 if (!m->SuppressSending) m->SuppressSending = (m->timenow + mDNSPlatformOneSecond/10) | 1; // OR with one to ensure non-zero
4092 rr->LastUsed = m->timenow;
4136 q->ThisQInterval > InitialQuestionInterval*16 && m->timenow - q->LastQTxTime < mDNSPlatformOneSecond)
4140 q->LastQTime = m->timenow - InitialQuestionInterval + (mDNSs32)mDNSRandom((mDNSu32)mDNSPlatformOneSecond*4);
4215 if (m->timenow - event >= 0) // If expired, delete it
4231 if (m->timenow - rr->NextRequiredQuery < 0) // If not yet time for next query
4235 // Set NextScheduledQuery to timenow so that SendQueries() will run.
4237 m->NextScheduledQuery = m->timenow;
4240 event = m->timenow + 0x3FFFFFFF;
4277 mDNSu32 SecsSinceRcvd = ((mDNSu32)(m->timenow - rr->TimeRcvd)) / mDNSPlatformOneSecond;
4302 q->LastQTime = m->timenow - q->ThisQInterval;
4303 m->NextScheduledQuery = m->timenow;
4477 rr->TimeRcvd = m->timenow - mDNSPlatformOneSecond * 60;
4495 // If this is an initial entry into the mDNSCore code, set m->timenow
4496 // else, if this is a re-entrant entry into the mDNSCore code, m->timenow should already be set
4499 if (m->timenow)
4500 LogMsg("mDNS_Lock: m->timenow already set (%ld/%ld)", m->timenow, mDNSPlatformTimeNow() + m->timenow_adjust);
4501 m->timenow = mDNSPlatformTimeNow() + m->timenow_adjust;
4502 if (m->timenow == 0) m->timenow = 1;
4504 else if (m->timenow == 0)
4506 LogMsg("mDNS_Lock: m->mDNS_busy is %ld but m->timenow not set", m->mDNS_busy);
4507 m->timenow = mDNSPlatformTimeNow() + m->timenow_adjust;
4508 if (m->timenow == 0) m->timenow = 1;
4511 if (m->timenow_last - m->timenow > 0)
4513 m->timenow_adjust += m->timenow_last - m->timenow;
4514 LogMsg("mDNSPlatformTimeNow went backwards by %ld ticks; setting correction factor to %ld", m->timenow_last - m->timenow, m->timenow_adjust);
4515 m->timenow = m->timenow_last;
4517 m->timenow_last = m->timenow;
4525 mDNSs32 e = m->timenow + 0x78000000;
4527 if (m->NewQuestions) return(m->timenow);
4528 if (m->NewLocalOnlyQuestions) return(m->timenow);
4529 if (m->NewLocalOnlyRecords) return(m->timenow);
4530 if (m->DiscardLocalOnlyRecords) return(m->timenow);
4548 // If this is a final exit from the mDNSCore code, set m->NextScheduledEvent and clear m->timenow
4552 if (m->timenow == 0) LogMsg("mDNS_Unlock: ERROR! m->timenow aready zero");
4553 m->timenow = 0;
4562 mDNS_Lock(m); // Must grab lock before trying to read m->timenow
4564 if (m->timenow - m->NextScheduledEvent >= 0)
4572 if (m->SuppressProbes && m->timenow - m->SuppressProbes >= 0) m->SuppressProbes = 0;
4575 if (m->NumFailedProbes && m->timenow - m->ProbeFailTime >= mDNSPlatformOneSecond * 10) m->NumFailedProbes = 0;
4578 if (m->rrcache_size && m->timenow - m->NextCacheCheck >= 0)
4581 m->NextCacheCheck = m->timenow + 0x3FFFFFFF;
4600 else if (m->SuppressSending == 0 || m->timenow - m->SuppressSending >= 0)
4611 if (m->timenow - m->NextScheduledQuery >= 0 || m->timenow - m->NextScheduledProbe >= 0) SendQueries(m);
4612 if (m->timenow - m->NextScheduledQuery >= 0)
4615 m->NextScheduledQuery = m->timenow + mDNSPlatformOneSecond;
4617 if (m->timenow - m->NextScheduledProbe >= 0)
4620 m->NextScheduledProbe = m->timenow + mDNSPlatformOneSecond;
4624 if (m->timenow - m->NextScheduledResponse >= 0) SendResponses(m);
4625 if (m->timenow - m->NextScheduledResponse >= 0)
4628 m->NextScheduledResponse = m->timenow + mDNSPlatformOneSecond;
4677 LogMsg("mDNSResponder %s at %ld", sleepstate ? "Sleeping" : "Waking", m->timenow);
4698 q->LastQTime = m->timenow - q->ThisQInterval;
4700 ExpireDupSuppressInfo(q->DupSuppress, m->timenow);
4701 m->NextScheduledQuery = m->timenow;
4705 m->NextCacheCheck = m->timenow;
5035 if (m->timenow - (rr->LastMCTime + mDNSPlatformOneSecond) >= 0 ||
5062 if (rr->MPUnansweredQ == 0 || m->timenow - rr->MPLastUnansweredQT >= mDNSPlatformOneSecond)
5068 rr->MPLastUnansweredQT = m->timenow;
5079 if (ActiveQuestion(q) && m->timenow - q->LastQTxTime > mDNSPlatformOneSecond / 4)
5155 if (ourcacherr && ourcacherr->MPExpectingKA && m->timenow - ourcacherr->MPLastUnansweredQT < mDNSPlatformOneSecond)
5204 if (m->timenow - (rr->LastMCTime + TicksTTL(rr)/4) >= 0) SendMulticastResponse = mDNStrue;
5216 m->NextScheduledResponse = m->timenow;
5222 m->NextScheduledResponse = m->timenow;
5255 if (delayresponse && (!m->SuppressSending || (m->SuppressSending - m->timenow) < (delayresponse + 49) / 50))
5270 m->SuppressSending = m->timenow + (delayresponse + (mDNSs32)mDNSRandom((mDNSu32)mDNSPlatformOneSecond*5) + 49) / 50;
5303 if (rr->UnansweredQueries == 0 || m->timenow - rr->LastUnansweredTime >= mDNSPlatformOneSecond)
5306 rr->LastUnansweredTime = m->timenow;
5318 if (RRExpireTime(rr) - m->timenow > 4 * mDNSPlatformOneSecond)
5334 mDNSu32 remain = (mDNSu32)(RRExpireTime(rr) - m->timenow) / 4;
5339 if (RRExpireTime(rr) - m->timenow > 4 * mDNSPlatformOneSecond)
5361 i = RecordDupSuppressInfo(q->DupSuppress, m->timenow, InterfaceID, srcaddr->type);
5430 if (ttl < 254 || (!mDNSAddrIsDNSMulticast(dstaddr) && (mDNSu32)(m->timenow - m->ExpectUnicastResponse) > (mDNSu32)mDNSPlatformOneSecond))
5468 if (rr->ImmedAnswer == mDNSNULL) { rr->ImmedAnswer = InterfaceID; m->NextScheduledResponse = m->timenow; }
5469 else if (rr->ImmedAnswer != InterfaceID) { rr->ImmedAnswer = mDNSInterfaceMark; m->NextScheduledResponse = m->timenow; }
5521 else if ((pkt.r.resrec.RecordType & kDNSRecordTypePacketUniqueMask) && m->timenow - rr->LastMCTime > mDNSPlatformOneSecond/2)
5522 { rr->ImmedAnswer = mDNSInterfaceMark; m->NextScheduledResponse = m->timenow; }
5541 rr->TimeRcvd = m->timenow;
5618 if (SameResourceRecordSignature(&r1->resrec, &r2->resrec) && m->timenow - r2->TimeRcvd > mDNSPlatformOneSecond)
5633 r2->TimeRcvd = m->timenow;
5765 question->LastQTime = m->timenow - m->RandomQueryDelay; // Avoid inter-machine synchronization
5777 question->LastQTxTime = m->timenow;
6216 if (!rr->NextUpdateCredit) rr->NextUpdateCredit = (m->timenow + mDNSPlatformOneSecond * 60) | 1;
6221 if (!rr->UpdateBlocked) rr->UpdateBlocked = (m->timenow + delay * mDNSPlatformOneSecond) | 1;
6468 if (!m->SuppressSending) m->SuppressSending = m->timenow + (mDNSs32)mDNSRandom((mDNSu32)InitialQuestionInterval);
6473 q->LastQTime = m->timenow - q->ThisQInterval;
6475 if (ActiveQuestion(q)) m->NextScheduledQuery = m->timenow;
6584 m->NextCacheCheck = m->timenow;
6921 mDNSs32 timenow;
6922 mStatus result = mDNSPlatformTimeInit(&timenow);
6943 m->timenow = 0; // MUST only be set within mDNS_Lock/mDNS_Unlock section
6944 m->timenow_last = timenow;
6946 m->NextScheduledEvent = timenow;
6947 m->SuppressSending = timenow;
6948 m->NextCacheCheck = timenow + 0x78000000;
6949 m->NextScheduledQuery = timenow + 0x78000000;
6950 m->NextScheduledProbe = timenow + 0x78000000;
6951 m->NextScheduledResponse = timenow + 0x78000000;
6952 m->ExpectUnicastResponse = timenow + 0x78000000;