Home
last modified time | relevance | path

Searched refs:timenow (Results 1 – 12 of 12) sorted by relevance

/external/boringssl/src/ssl/
Dd1_lib.cc207 struct OPENSSL_timeval timenow; in DTLSv1_get_timeout() local
208 ssl_get_current_time(ssl, &timenow); in DTLSv1_get_timeout()
211 if (ssl->d1->next_timeout.tv_sec < timenow.tv_sec || in DTLSv1_get_timeout()
212 (ssl->d1->next_timeout.tv_sec == timenow.tv_sec && in DTLSv1_get_timeout()
213 ssl->d1->next_timeout.tv_usec <= timenow.tv_usec)) { in DTLSv1_get_timeout()
221 ret.tv_sec -= timenow.tv_sec; in DTLSv1_get_timeout()
222 if (ret.tv_usec >= timenow.tv_usec) { in DTLSv1_get_timeout()
223 ret.tv_usec -= timenow.tv_usec; in DTLSv1_get_timeout()
225 ret.tv_usec = 1000000 + ret.tv_usec - timenow.tv_usec; in DTLSv1_get_timeout()
/external/mdnsresponder/mDNSCore/
DmDNS.c679 if ((rr->LastAPTime + rr->ThisAPInterval) - m->timenow > mDNSPlatformOneSecond * 10) in SetNextAnnounceProbeTime()
681 …xt in %d %s", rr->ProbeCount, (rr->LastAPTime + rr->ThisAPInterval) - m->timenow, ARDisplayString(… in SetNextAnnounceProbeTime()
682 …ssProbes %d m->timenow %d diff %d", m->SuppressProbes, m->timenow, m->SuppressProbes - m->timenow); in SetNextAnnounceProbeTime()
690 if (m->NextScheduledProbe - m->timenow < 0) in SetNextAnnounceProbeTime()
691 m->NextScheduledProbe = m->timenow; in SetNextAnnounceProbeTime()
719 if (m->SuppressProbes == 0 || m->SuppressProbes - m->timenow < 0) in InitializeLastAPTime()
727 …m->SuppressProbes = NonZeroTime(m->timenow + DefaultProbeIntervalForTypeUnique/2 + mDNSRandom(Defa… in InitializeLastAPTime()
732 …if (m->SuppressProbes - m->timenow < 0) // Make sure we don't set m->SuppressProbes excessively i… in InitializeLastAPTime()
733 m->SuppressProbes = m->timenow; in InitializeLastAPTime()
738 …if (m->SuppressProbes - m->timenow < 0) // Make sure we don't set m->SuppressProbes excessively i… in InitializeLastAPTime()
[all …]
DuDNS.c63 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()
[all …]
DDNSCommon.c2150 rr->TimeRcvd = m ? m->timenow : 0; in GetLargeResourceRecord()
2152 …rr->NextRequiredQuery = m ? m->timenow : 0; // Will be updated to the real value when we call Set… in GetLargeResourceRecord()
2153 rr->LastUsed = m ? m->timenow : 0; in GetLargeResourceRecord()
2685 if (m->timenow) in mDNS_Lock_()
2686 …LogMsg("%s: mDNS_Lock: m->timenow already set (%ld/%ld)", functionname, m->timenow, mDNS_TimeNow_N… in mDNS_Lock_()
2687 m->timenow = mDNS_TimeNow_NoLock(m); in mDNS_Lock_()
2688 if (m->timenow == 0) m->timenow = 1; in mDNS_Lock_()
2690 else if (m->timenow == 0) in mDNS_Lock_()
2693 m->timenow = mDNS_TimeNow_NoLock(m); in mDNS_Lock_()
2694 if (m->timenow == 0) m->timenow = 1; in mDNS_Lock_()
[all …]
DmDNSEmbeddedAPI.h1821 mDNSs32 timenow; // The time that this particular activation of the mDNS code started member
/external/ltp/testcases/kernel/timers/timer_settime/
Dtimer_settime02.c122 struct timespec timenow; /* Used to obtain current time */ in setup_test() local
163 if (clock_gettime(CLOCK_REALTIME, &timenow) < 0) { in setup_test()
168 new_set.it_value.tv_sec = timenow.tv_sec + 25; in setup_test()
/external/ppp/pppd/
Dmain.c1312 static struct timeval timenow; /* Current time */ variable
1332 gettimeofday(&timenow, NULL);
1333 newp->c_time.tv_sec = timenow.tv_sec + secs;
1334 newp->c_time.tv_usec = timenow.tv_usec + usecs;
1386 if (gettimeofday(&timenow, NULL) < 0) in calltimeout()
1388 if (!(p->c_time.tv_sec < timenow.tv_sec in calltimeout()
1389 || (p->c_time.tv_sec == timenow.tv_sec in calltimeout()
1390 && p->c_time.tv_usec <= timenow.tv_usec))) in calltimeout()
1411 gettimeofday(&timenow, NULL);
1412 tvp->tv_sec = callout->c_time.tv_sec - timenow.tv_sec;
[all …]
/external/mdnsresponder/mDNSShared/
DPlatformCommon.c164 …mDNSs32 t = mDNSStorage.timenow ? mDNSStorage.timenow : mDNSPlatformClockDivisor ? mDNS_TimeNow_No… in mDNSPlatformWriteLogMsg()
Ddnsextd.c2846 struct timeval timenow, timeout, EventTS, tablecheck = { 0, 0 }; in Run() local
2867 if (gettimeofday(&timenow, NULL)) { LogErr("Run", "gettimeofday"); return -1; } in Run()
2871 …if (timenow.tv_sec - EventTS.tv_sec >= 5) // if we've been waiting 5 seconds for a "quie… in Run()
2878 if (tablecheck.tv_sec && timenow.tv_sec - tablecheck.tv_sec >= 0) in Run()
2880 if (!tablecheck.tv_sec) tablecheck.tv_sec = timenow.tv_sec + EXPIRATION_INTERVAL; in Run()
2881 timeout.tv_sec = tablecheck.tv_sec - timenow.tv_sec; in Run()
Duds_daemon.c2746 if ((m->timenow - question->StopTime) >= 0) in queryrecord_result_callback()
/external/mdnsresponder/mDNSPosix/
DNetMonitor.c306 entry->LastQuery = m->timenow; in SendUnicastQuery()
332 if (entry->NumQueries && m->timenow - entry->LastQuery < mDNSPlatformOneSecond) return; in AnalyseHost()
/external/mdnsresponder/mDNSWindows/
DmDNSWin32.c1803 ptr->deltime = NonZeroTime(m->timenow + mDNSPlatformOneSecond*10); in SetDomainSecrets()