Lines Matching refs:timenow
63 rr->LastAPTime = m->timenow; in SetRecordRetry()
67 mDNSs32 remaining = rr->expire - m->timenow; in SetRecordRetry()
77 …rr->ThisAPInterval/mDNSPlatformOneSecond, (rr->expire - m->timenow)/mDNSPlatformOneSecond, ARDispl… in SetRecordRetry()
83 …rr->ThisAPInterval/mDNSPlatformOneSecond, (rr->expire - m->timenow)/mDNSPlatformOneSecond, ARDispl… in SetRecordRetry()
151 (*p)->lasttest = m->timenow - INIT_UCAST_POLL_INTERVAL; in mDNS_AddDNSServer()
207 q->qDNSServer->penaltyTime = NonZeroTime(m->timenow + DNSSERVER_PENALTY_TIME); in PenalizeDNSServer()
244 q->LastQTime = m->timenow - q->ThisQInterval; in PenalizeDNSServer()
314 if ((*p)->deltime && m->timenow - (*p)->deltime >= 0 && AutoTunnelUnregistered(*p)) in GetAuthInfoForName_internal()
461 n->retryPortMap = m->timenow; in RecreateNATMappings()
467 m->NextScheduledNATOp = m->timenow; // Need to send packets immediately in RecreateNATMappings()
500 m->retryGetAddr = m->timenow + m->retryIntervalGetAddr; in natTraversalHandleAddressReply()
510 n->retryInterval = (n->ExpiryTime - m->timenow)/2; in NATSetNextRenewalTime()
513 n->retryPortMap = m->timenow + n->retryInterval; in NATSetNextRenewalTime()
527 n->retryPortMap = m->timenow + NATMAP_MAX_RETRY_INTERVAL; in natTraversalHandlePortMapReply()
536 n->ExpiryTime = NonZeroTime(m->timenow + lease * mDNSPlatformOneSecond); in natTraversalHandlePortMapReply()
549 m->NextScheduledNATOp = m->timenow; // May need to invoke client callback immediately in natTraversalHandlePortMapReply()
585 traversal->retryPortMap = m->timenow; in mDNS_StartNATOperation_internal()
601 m->retryGetAddr = m->timenow; in mDNS_StartNATOperation_internal()
605 …m->NextScheduledNATOp = m->timenow; // This will always trigger sending the packet ASAP, and gener… in mDNS_StartNATOperation_internal()
695 q->LastQTime = m->timenow - q->ThisQInterval + 1; in StartLLQPolling()
774 q->LastQTime = m->timenow; in sendChallengeResponse()
795 q->LastQTime = m->timenow; in SetLLQTimer()
796 q->expire = m->timenow + lease; in SetLLQTimer()
824 q->expire = m->timenow + ((mDNSs32)llq->llqlease * mDNSPlatformOneSecond); in recvSetupResponse()
898 q->LastQTime = m->timenow; in uDNS_recvLLQResponse()
926 if (opt->u.llq.llqlease == 0 && m->SleepLimit) m->NextScheduledSPRetry = m->timenow; in uDNS_recvLLQResponse()
1033 q->LastQTime = m->timenow; in tcpCallback()
1169 q->LastQTime = m->timenow; in tcpCallback()
1197 …else if (NextQSendTime(q) - m->timenow > (q->LongLived ? LLQ_POLL_INTERVAL : MAX_UCAST_POLL_INTERV… in tcpCallback()
1201 q->LastQTime = m->timenow; in tcpCallback()
1292 q->LastQTime = m->timenow; in startLLQHandshake()
1311 q->LastQTime = m->timenow; in startLLQHandshake()
1351 q->LastQTime = m->timenow; in startLLQHandshake()
1388 q->LastQTime = m->timenow; in startLLQHandshake()
1714 r->LastAPTime = m->timenow - INIT_RECORD_REG_INTERVAL; in UpdateAllServiceRecords()
1773 rr->LastAPTime = m->timenow - INIT_RECORD_REG_INTERVAL; in CompleteRecordNatMap()
1824 rr->LastAPTime = m->timenow - INIT_RECORD_REG_INTERVAL; in CompleteRecordNatMap()
1825 if (IsRecordMergeable(m, rr, m->timenow + MERGE_DELAY_TIME)) in CompleteRecordNatMap()
2032 rr->LastAPTime = m->timenow - INIT_RECORD_REG_INTERVAL; in UpdateOneSRVRecord()
2190 m->NextSRVUpdate = NonZeroTime(m->timenow); in HostnameCallback()
2227 m->NextSRVUpdate = NonZeroTime(m->timenow + 5 * mDNSPlatformOneSecond); in FoundStaticHostname()
2228 … debugf("FoundStaticHostname: NextSRVUpdate in %d %d", m->NextSRVUpdate - m->timenow, m->timenow); in FoundStaticHostname()
2234 m->NextSRVUpdate = NonZeroTime(m->timenow); in FoundStaticHostname()
2241 m->NextSRVUpdate = NonZeroTime(m->timenow); in FoundStaticHostname()
2331 m->NextSRVUpdate = NonZeroTime(m->timenow); in mDNS_RemoveDynDNSHostName()
2399 m->retryGetAddr = m->timenow + (v4addr ? 0 : mDNSPlatformOneSecond * 5); in mDNS_SetPrimaryInterfaceInfo()
2400 m->NextScheduledNATOp = m->timenow; in mDNS_SetPrimaryInterfaceInfo()
2408 m->retryGetAddr - m->timenow, m->timenow); in mDNS_SetPrimaryInterfaceInfo()
2414 m->NextSRVUpdate = NonZeroTime(m->timenow); in mDNS_SetPrimaryInterfaceInfo()
2713 …e: Time %d not reached for %s", rr->LastAPTime + rr->ThisAPInterval - m->timenow, ARDisplayString(… in IsRecordMergeable()
2719 …if (info && info->deltime && m->timenow - info->deltime >= 0) {debugf("IsRecordMergeable: Domain %… in IsRecordMergeable()
2864 if (!IsRecordMergeable(m, rr, m->timenow + MERGE_DELAY_TIME)) continue; in MarkRRForSending()
2867 else if (!AreRecordsMergeable(m, firstRR, rr, m->timenow + MERGE_DELAY_TIME)) continue; in MarkRRForSending()
2891 (!AreRecordsMergeable(m, firstRR, rr, m->timenow + rr->ThisAPInterval/2))) in MarkRRForSending()
3001 rr->LastAPTime = m->timenow - INIT_RECORD_REG_INTERVAL; in SendGroupUpdates()
3071 if (rr->LastAPTime + rr->ThisAPInterval - m->timenow > 0) in CheckGroupRecordUpdates()
3110 rr->LastAPTime = m->timenow - INIT_RECORD_REG_INTERVAL; in hndlSRVChanged()
3254 rr->LastAPTime = m->timenow - INIT_RECORD_REG_INTERVAL; in hndlRecordUpdateReply()
3270 rr->LastAPTime = m->timenow - INIT_RECORD_REG_INTERVAL; in hndlRecordUpdateReply()
3304 our_elapsed = (m->timenow - m->LastNATReplyLocalTime) / mDNSPlatformOneSecond; in uDNS_ReceiveNATPMPPacket()
3321 m->LastNATReplyLocalTime = m->timenow; in uDNS_ReceiveNATPMPPacket()
3485 q->LastQTime = m->timenow - q->ThisQInterval; in uDNS_ReceiveTestQuestionResponse()
3486 m->NextScheduledQuery = m->timenow; in uDNS_ReceiveTestQuestionResponse()
3520 …[0] & kDNSFlag0_TC && mDNSSameOpaque16(qptr->TargetQID, msg->h.id) && m->timenow - qptr->LastQTime… in uDNS_ReceiveMsg()
3537 mDNSs32 expire = m->timenow + (mDNSs32)lease * mDNSPlatformOneSecond; in uDNS_ReceiveMsg()
3581 if ((q->state == LLQ_Established && q->ntries >= kLLQ_MAX_TRIES) || q->expire - m->timenow < 0) in sendLLQRefresh()
3636 q->LastQTime = m->timenow; in sendLLQRefresh()
3716 q->LastQTime = m->timenow - q->ThisQInterval; in PrivateQueryGotZoneData()
3900 newRR->LastAPTime = m->timenow - INIT_RECORD_REG_INTERVAL; in RecordRegistrationGotZoneData()
3902 if (IsRecordMergeable(m, newRR, m->timenow + MERGE_DELAY_TIME)) in RecordRegistrationGotZoneData()
4031 rr->LastAPTime = m->timenow - INIT_RECORD_REG_INTERVAL; in uDNS_DeregisterRecord()
4033 if (IsRecordMergeable(m, rr, m->timenow + MERGE_DELAY_TIME)) in uDNS_DeregisterRecord()
4090 rr->LastAPTime = m->timenow - INIT_RECORD_REG_INTERVAL; in uDNS_UpdateRecord()
4166 if (m->timenow - NextQSendTime(q) < 0) return; in uDNS_CheckCurrentQuestion()
4242 …else if (m->timenow - q->qDNSServer->lasttest >= INIT_UCAST_POLL_INTERVAL) // Make sure at least t… in uDNS_CheckCurrentQuestion()
4246 q->qDNSServer->lasttest = m->timenow; in uDNS_CheckCurrentQuestion()
4290 q->LastQTime = m->timenow; in uDNS_CheckCurrentQuestion()
4333 q->LastQTime = m->timenow; in uDNS_CheckCurrentQuestion()
4359 CreateNewCacheEntry(m, slot, cg, NonZeroTime(m->timenow)); in uDNS_CheckCurrentQuestion()
4360 ScheduleNextCacheCheckTime(m, slot, NonZeroTime(m->timenow)); in uDNS_CheckCurrentQuestion()
4372 m->NextScheduledNATOp = m->timenow + 0x3FFFFFFF; in CheckNATMappings()
4402 m->retryGetAddr = m->timenow + 0x78000000; in CheckNATMappings()
4405 if (m->timenow - m->retryGetAddr >= 0) in CheckNATMappings()
4418 m->retryGetAddr = m->timenow + m->retryIntervalGetAddr; in CheckNATMappings()
4440 if (m->timenow - cur->retryPortMap >= 0) // Time to do something with this mapping in CheckNATMappings()
4442 if (cur->ExpiryTime && cur->ExpiryTime - m->timenow < 0) // Mapping has expired in CheckNATMappings()
4458 cur->retryPortMap = m->timenow + cur->retryInterval; in CheckNATMappings()
4498 (cur->ExpiryTime - m->timenow + mDNSPlatformOneSecond/2) / mDNSPlatformOneSecond : 0; in CheckNATMappings()
4513 mDNSs32 nextevent = m->timenow + 0x3FFFFFFF; in CheckRecordUpdates()
4527 if (rr->LastAPTime + rr->ThisAPInterval - m->timenow <= 0) in CheckRecordUpdates()
4571 m->NextuDNSEvent = m->timenow + 0x3FFFFFFF; in uDNS_Tasks()
4580 if (m->timenow - d->penaltyTime >= 0) in uDNS_Tasks()