Searched refs:timenow (Results 1 - 21 of 21) sorted by relevance

/freebsd-current/crypto/heimdal/lib/kadm5/
H A Dcheck-cracklib.pl66 my $timenow = scalar(time());
74 if (!$DB{$key} || ($timenow - $DB{$key} < $reusetime)) {
76 $DB{$key}=$timenow;
/freebsd-current/contrib/unbound/services/cache/
H A Drrset.h126 * @param timenow: current time (to see if ttl in cache is expired).
134 struct alloc_cache* alloc, time_t timenow);
148 * @param timenow: current time (to see if ttl in cache is expired).
152 struct alloc_cache* alloc, time_t timenow);
163 * @param timenow: used to compare with TTL.
170 uint32_t flags, time_t timenow, int wr);
178 * @param timenow: used to compare with TTL.
184 int rrset_array_lock(struct rrset_ref* ref, size_t count, time_t timenow);
H A Dinfra.h261 * @param timenow: what time it is now.
270 time_t timenow, int* edns_vs, uint8_t* edns_lame_known, int* to);
279 * @param timenow: what time it is now.
289 uint8_t* name, size_t namelen, time_t timenow, int dnsseclame,
304 * @param timenow: what time it is now.
309 int roundtrip, int orig_rtt, time_t timenow);
332 * @param timenow: what time it is now.
337 uint8_t* name, size_t namelen, int edns_version, time_t timenow);
354 * @param timenow: what time it is now.
360 int* lame, int* dnsseclame, int* reclame, int* rtt, time_t timenow);
[all...]
H A Dinfra.c478 time_t timenow)
481 data->ttl = timenow + infra->host_ttl;
537 socklen_t addrlen, uint8_t* nm, size_t nmlen, time_t timenow,
544 if(e && ((struct infra_data*)e->data)->ttl < timenow) {
557 data_entry_init(infra, e, timenow);
572 if(!(e = new_entry(infra, addr, addrlen, nm, nmlen, timenow)))
601 data->probedelay = timenow + ((*to)+1999)/1000;
609 socklen_t addrlen, uint8_t* nm, size_t nmlen, time_t timenow,
618 if(!(e = new_entry(infra, addr, addrlen, nm, nmlen, timenow))) {
623 } else if( ((struct infra_data*)e->data)->ttl < timenow) {
477 data_entry_init(struct infra_cache* infra, struct lruhash_entry* e, time_t timenow) argument
536 infra_host(struct infra_cache* infra, struct sockaddr_storage* addr, socklen_t addrlen, uint8_t* nm, size_t nmlen, time_t timenow, int* edns_vs, uint8_t* edns_lame_known, int* to) argument
608 infra_set_lame(struct infra_cache* infra, struct sockaddr_storage* addr, socklen_t addrlen, uint8_t* nm, size_t nmlen, time_t timenow, int dnsseclame, int reclame, uint16_t qtype) argument
664 infra_rtt_update(struct infra_cache* infra, struct sockaddr_storage* addr, socklen_t addrlen, uint8_t* nm, size_t nmlen, int qtype, int roundtrip, int orig_rtt, time_t timenow) argument
726 infra_get_host_rto(struct infra_cache* infra, struct sockaddr_storage* addr, socklen_t addrlen, uint8_t* nm, size_t nmlen, struct rtt_info* rtt, int* delay, time_t timenow, int* tA, int* tAAAA, int* tother) argument
752 infra_edns_update(struct infra_cache* infra, struct sockaddr_storage* addr, socklen_t addrlen, uint8_t* nm, size_t nmlen, int edns_version, time_t timenow) argument
783 infra_get_lame_rtt(struct infra_cache* infra, struct sockaddr_storage* addr, socklen_t addrlen, uint8_t* name, size_t namelen, uint16_t qtype, int* lame, int* dnsseclame, int* reclame, int* rtt, time_t timenow) argument
943 infra_create_ratedata(struct infra_cache* infra, uint8_t* name, size_t namelen, time_t timenow) argument
971 infra_ip_create_ratedata(struct infra_cache* infra, struct sockaddr_storage* addr, socklen_t addrlen, time_t timenow, int mesh_wait) argument
1050 infra_ratelimit_inc(struct infra_cache* infra, uint8_t* name, size_t namelen, time_t timenow, int backoff, struct query_info* qinfo, struct comm_reply* replylist) argument
1097 infra_ratelimit_dec(struct infra_cache* infra, uint8_t* name, size_t namelen, time_t timenow) argument
1117 infra_ratelimit_exceeded(struct infra_cache* infra, uint8_t* name, size_t namelen, time_t timenow, int backoff) argument
1191 infra_ip_ratelimit_inc(struct infra_cache* infra, struct sockaddr_storage* addr, socklen_t addrlen, time_t timenow, int has_cookie, int backoff, struct sldns_buffer* buffer) argument
1255 infra_wait_limit_inc(struct infra_cache* infra, struct comm_reply* rep, time_t timenow, struct config_file* cfg) argument
[all...]
H A Drrset.c127 need_to_update_rrset(void* nd, void* cd, time_t timenow, int equal, int ns) argument
132 if( newd->ttl < timenow && cached->ttl >= timenow)
147 if(equal && cached->ttl >= timenow &&
153 if( cached->ttl < timenow )
191 struct alloc_cache* alloc, time_t timenow)
213 if(!need_to_update_rrset(k->entry.data, e->data, timenow,
248 struct alloc_cache* alloc, time_t timenow)
252 rrset = packed_rrset_copy_alloc(rrset, alloc, timenow);
276 (void)rrset_cache_update(rrset_cache, &ref, alloc, timenow);
190 rrset_cache_update(struct rrset_cache* r, struct rrset_ref* ref, struct alloc_cache* alloc, time_t timenow) argument
246 rrset_cache_update_wildcard(struct rrset_cache* rrset_cache, struct ub_packed_rrset_key* rrset, uint8_t* ce, size_t ce_len, struct alloc_cache* alloc, time_t timenow) argument
280 rrset_cache_lookup(struct rrset_cache* r, uint8_t* qname, size_t qnamelen, uint16_t qtype, uint16_t qclass, uint32_t flags, time_t timenow, int wr) argument
312 rrset_array_lock(struct rrset_ref* ref, size_t count, time_t timenow) argument
[all...]
H A Ddns.h136 * @param timenow: the time now, for checking if TTL on cache entries is OK.
147 struct regional* region, struct dns_msg** msg, time_t timenow,
/freebsd-current/contrib/unbound/util/data/
H A Dmsgencode.h58 * @param timenow: time to subtract.
70 uint16_t id, uint16_t qflags, struct sldns_buffer* dest, time_t timenow,
84 * @param timenow: time now, to adjust ttl values.
94 uint16_t id, uint16_t flags, struct sldns_buffer* buffer, time_t timenow,
H A Dmsgencode.c450 uint16_t* num_rrs, time_t timenow, struct regional* region,
473 adjust = SERVE_ORIGINAL_TTL ? data->ttl_add : timenow;
545 sldns_buffer* pkt, size_t rrsets_before, time_t timenow,
562 pkt, num_rrs, timenow, region, 1, 1, tree,
575 pkt, num_rrs, timenow, region, 1, 0, tree,
586 pkt, num_rrs, timenow, region, 0, 1, tree,
673 uint16_t id, uint16_t flags, sldns_buffer* buffer, time_t timenow,
709 rr_offset = RRSET_ROUNDROBIN?ntohs(id)+(timenow?timenow:time(NULL)):0;
740 0, timenow, regio
449 packed_rrset_encode(struct ub_packed_rrset_key* key, sldns_buffer* pkt, uint16_t* num_rrs, time_t timenow, struct regional* region, int do_data, int do_sig, struct compress_tree_node** tree, sldns_pkt_section s, uint16_t qtype, int dnssec, size_t rr_offset) argument
544 insert_section(struct reply_info* rep, size_t num_rrsets, uint16_t* num_rrs, sldns_buffer* pkt, size_t rrsets_before, time_t timenow, struct regional* region, struct compress_tree_node** tree, sldns_pkt_section s, uint16_t qtype, int dnssec, size_t rr_offset) argument
672 reply_info_encode(struct query_info* qinfo, struct reply_info* rep, uint16_t id, uint16_t flags, sldns_buffer* buffer, time_t timenow, struct regional* region, uint16_t udpsize, int dnssec, int minimise) argument
982 reply_info_answer_encode(struct query_info* qinf, struct reply_info* rep, uint16_t id, uint16_t qflags, sldns_buffer* pkt, time_t timenow, int cached, struct regional* region, uint16_t udpsize, struct edns_data* edns, int dnssec, int secure) argument
[all...]
H A Dmsgreply.h326 * @param timenow: the current time.
328 void reply_info_set_ttls(struct reply_info* rep, time_t timenow);
H A Dmsgreply.c565 reply_info_set_ttls(struct reply_info* rep, time_t timenow) argument
568 rep->ttl += timenow;
569 rep->prefetch_ttl += timenow;
570 rep->serve_expired_ttl += timenow;
576 data->ttl += timenow;
578 data->rr_ttl[j] += timenow;
580 data->ttl_add = timenow;
/freebsd-current/secure/caroot/
H A DMAca-bundle.pl105 sub timenow() subroutine
165 my $time_now = timenow();
168 printf STDERR "line $.: $cka_label ser #%d: distrust after %s, now: %s -> distrust $distrust\n", $serial, $distrust_after, timenow();
/freebsd-current/crypto/openssl/ssl/
H A Dd1_lib.c306 struct timeval timenow; local
314 get_current_time(&timenow);
317 if (s->d1->next_timeout.tv_sec < timenow.tv_sec ||
318 (s->d1->next_timeout.tv_sec == timenow.tv_sec &&
319 s->d1->next_timeout.tv_usec <= timenow.tv_usec)) {
326 timeleft->tv_sec -= timenow.tv_sec;
327 timeleft->tv_usec -= timenow.tv_usec;
/freebsd-current/crypto/heimdal/lib/hx509/
H A Dhx_locl.h151 time_t timenow; member in struct:hx509_query_data
H A Dcms.c296 q.timenow = time_now;
298 q.timenow = time(NULL);
H A Dcert.c1094 q.timenow = time_now;
3065 if (t > q->timenow)
3068 if (t < q->timenow)
/freebsd-current/usr.sbin/newsyslog/
H A Dnewsyslog.c256 struct ptime_data *dbg_timenow; /* A "timenow" value set via -D option */
257 static struct ptime_data *timenow; /* The time to use for checking at-fields */ variable in typeref:struct:ptime_data
594 diffsecs = ptimeget_diff(timenow, ent->trim_at);
599 timenow);
693 timenow = ptime_init(NULL);
694 ptimeset_time(timenow, time(NULL));
695 strlcpy(daytime, ptimeget_ctime(timenow) + 4, DAYTIME_LEN);
696 ptimeget_ctime_rfc5424(timenow, daytime_rfc5424, DAYTIME_RFC5424_LEN);
803 ptime_free(timenow);
804 timenow
[all...]
/freebsd-current/crypto/openssl/crypto/bio/
H A Dbss_dgram.c201 struct timeval timenow, timeleft; local
225 get_current_time(&timenow);
229 if (timeleft.tv_usec < timenow.tv_usec) {
230 timeleft.tv_usec = 1000000 - timenow.tv_usec + timeleft.tv_usec;
233 timeleft.tv_usec -= timenow.tv_usec;
235 if (timeleft.tv_sec < timenow.tv_sec) {
239 timeleft.tv_sec -= timenow.tv_sec;
/freebsd-current/contrib/unbound/daemon/
H A Dworker.c478 time_t timenow = *worker->env.now; local
487 worker->scratchpad, &msg, timenow, 0, NULL, 0);
649 time_t timenow = *worker->env.now; local
659 if(rep->ttl < timenow) {
669 rep->serve_expired_ttl < timenow)
690 if(!rrset_array_lock(rep->ref, rep->rrset_count, timenow))
805 repinfo->c->buffer, timenow, 1, worker->scratchpad,
/freebsd-current/contrib/unbound/services/
H A Doutside_network.c3411 time_t timenow = 0; local
3455 timenow = *env->now;
3457 zonelen, timenow, env->cfg->ratelimit_backoff,
3484 zone, zonelen, timenow);
3492 zone, zonelen, timenow);
H A Dmesh.c321 time_t timenow = *qstate->env->now; local
331 msg = tomsg(qstate->env, &key->key, data, qstate->region, timenow,
/freebsd-current/sys/netinet/tcp_stacks/
H A Drack.c2320 uint64_t timenow, timeleft, lenleft, lengone, calcbw; local
2337 timenow = tcp_tv_to_lusectick(&tv);
2338 if (timenow >= ent->deadline) {
2346 timeleft = rack->r_ctl.rc_last_sft->deadline - timenow;

Completed in 339 milliseconds