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

/freebsd-11-stable/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-11-stable/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.h243 * @param timenow: what time it is now.
252 time_t timenow, int* edns_vs, uint8_t* edns_lame_known, int* to);
261 * @param timenow: what time it is now.
271 uint8_t* name, size_t namelen, time_t timenow, int dnsseclame,
286 * @param timenow: what time it is now.
291 int roundtrip, int orig_rtt, time_t timenow);
314 * @param timenow: what time it is now.
319 uint8_t* name, size_t namelen, int edns_version, time_t timenow);
336 * @param timenow: what time it is now.
342 int* lame, int* dnsseclame, int* reclame, int* rtt, time_t timenow);
[all...]
H A Dinfra.c381 time_t timenow)
384 data->ttl = timenow + infra->host_ttl;
440 socklen_t addrlen, uint8_t* nm, size_t nmlen, time_t timenow,
447 if(e && ((struct infra_data*)e->data)->ttl < timenow) {
460 data_entry_init(infra, e, timenow);
475 if(!(e = new_entry(infra, addr, addrlen, nm, nmlen, timenow)))
504 data->probedelay = timenow + ((*to)+1999)/1000;
512 socklen_t addrlen, uint8_t* nm, size_t nmlen, time_t timenow,
521 if(!(e = new_entry(infra, addr, addrlen, nm, nmlen, timenow))) {
526 } else if( ((struct infra_data*)e->data)->ttl < timenow) {
380 data_entry_init(struct infra_cache* infra, struct lruhash_entry* e, time_t timenow) argument
439 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
511 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
567 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
629 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
655 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
686 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
847 infra_create_ratedata(struct infra_cache* infra, uint8_t* name, size_t namelen, time_t timenow) argument
875 infra_ip_create_ratedata(struct infra_cache* infra, struct comm_reply* repinfo, time_t timenow) argument
931 infra_ratelimit_inc(struct infra_cache* infra, uint8_t* name, size_t namelen, time_t timenow, struct query_info* qinfo, struct comm_reply* replylist) argument
978 infra_ratelimit_dec(struct infra_cache* infra, uint8_t* name, size_t namelen, time_t timenow) argument
993 infra_ratelimit_exceeded(struct infra_cache* infra, uint8_t* name, size_t namelen, time_t timenow) argument
1026 infra_ip_ratelimit_inc(struct infra_cache* infra, struct comm_reply* repinfo, time_t timenow, struct sldns_buffer* buffer) argument
[all...]
H A Drrset.c126 need_to_update_rrset(void* nd, void* cd, time_t timenow, int equal, int ns) argument
143 if(equal && cached->ttl >= timenow &&
149 if( cached->ttl < timenow )
187 struct alloc_cache* alloc, time_t timenow)
209 if(!need_to_update_rrset(k->entry.data, e->data, timenow,
244 struct alloc_cache* alloc, time_t timenow)
248 rrset = packed_rrset_copy_alloc(rrset, alloc, timenow);
272 (void)rrset_cache_update(rrset_cache, &ref, alloc, timenow);
277 uint16_t qtype, uint16_t qclass, uint32_t flags, time_t timenow,
297 if(timenow > dat
186 rrset_cache_update(struct rrset_cache* r, struct rrset_ref* ref, struct alloc_cache* alloc, time_t timenow) argument
242 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
276 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
308 rrset_array_lock(struct rrset_ref* ref, size_t count, time_t timenow) argument
[all...]
H A Ddns.h131 * @param timenow: the time now, for checking if TTL on cache entries is OK.
136 struct regional* region, struct dns_msg** msg, time_t timenow);
/freebsd-11-stable/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
878 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.c516 reply_info_set_ttls(struct reply_info* rep, time_t timenow) argument
519 rep->ttl += timenow;
520 rep->prefetch_ttl += timenow;
521 rep->serve_expired_ttl += timenow;
527 data->ttl += timenow;
529 data->rr_ttl[j] += timenow;
531 data->ttl_add = timenow;
H A Dmsgreply.h309 * @param timenow: the current time.
311 void reply_info_set_ttls(struct reply_info* rep, time_t timenow);
/freebsd-11-stable/secure/caroot/
H A DMAca-bundle.pl108 sub timenow() subroutine
168 my $time_now = timenow();
171 printf STDERR "line $.: $cka_label ser #%d: distrust after %s, now: %s -> distrust $distrust\n", $serial, $distrust_after, timenow();
/freebsd-11-stable/crypto/openssl/ssl/
H A Dd1_lib.c401 struct timeval timenow; local
409 get_current_time(&timenow);
412 if (s->d1->next_timeout.tv_sec < timenow.tv_sec ||
413 (s->d1->next_timeout.tv_sec == timenow.tv_sec &&
414 s->d1->next_timeout.tv_usec <= timenow.tv_usec)) {
421 timeleft->tv_sec -= timenow.tv_sec;
422 timeleft->tv_usec -= timenow.tv_usec;
/freebsd-11-stable/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-11-stable/usr.sbin/newsyslog/
H A Dnewsyslog.c242 struct ptime_data *dbg_timenow; /* A "timenow" value set via -D option */
243 static struct ptime_data *timenow; /* The time to use for checking at-fields */ variable in typeref:struct:ptime_data
549 diffsecs = ptimeget_diff(timenow, ent->trim_at);
554 timenow);
643 timenow = ptime_init(NULL);
644 ptimeset_time(timenow, time(NULL));
645 strlcpy(daytime, ptimeget_ctime(timenow) + 4, DAYTIME_LEN);
646 ptimeget_ctime_rfc5424(timenow, daytime_rfc5424, DAYTIME_RFC5424_LEN);
746 ptime_free(timenow);
747 timenow
[all...]
/freebsd-11-stable/crypto/openssl/crypto/bio/
H A Dbss_dgram.c278 struct timeval timenow, timeleft; local
302 get_current_time(&timenow);
306 if (timeleft.tv_usec < timenow.tv_usec) {
307 timeleft.tv_usec = 1000000 - timenow.tv_usec + timeleft.tv_usec;
310 timeleft.tv_usec -= timenow.tv_usec;
312 if (timeleft.tv_sec < timenow.tv_sec) {
316 timeleft.tv_sec -= timenow.tv_sec;
/freebsd-11-stable/contrib/unbound/daemon/
H A Dworker.c486 time_t timenow = *worker->env.now; local
494 worker->scratchpad, &msg, timenow);
639 time_t timenow = *worker->env.now; local
648 if(rep->ttl < timenow) {
653 rep->serve_expired_ttl < timenow)
666 if(!rrset_array_lock(rep->ref, rep->rrset_count, timenow))
759 repinfo->c->buffer, timenow, 1, worker->scratchpad,
/freebsd-11-stable/testcode/
H A Dfake_event.c238 int timenow = runtime->now->time_step; local
241 if(p->start_step <= timenow && timenow <= p->end_step &&
247 "with entry line %d", timenow,
/freebsd-11-stable/contrib/unbound/services/
H A Dmesh.c371 time_t timenow = *qstate->env->now; local
381 msg = tomsg(qstate->env, &key->key, data, qstate->region, timenow,

Completed in 175 milliseconds