Home
last modified time | relevance | path

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

/freebsd/contrib/unbound/services/cache/
H A Dinfra.c529 time_t timenow) in new_entry()
532 data->ttl = timenow + infra->host_ttl; in new_entry()
588 socklen_t addrlen, uint8_t* nm, size_t nmlen, time_t timenow, in infra_host()
595 if(e && ((struct infra_data*)e->data)->ttl < timenow) { in infra_host()
608 data_entry_init(infra, e, timenow); in infra_host()
623 if(!(e = new_entry(infra, addr, addrlen, nm, nmlen, timenow))) in infra_set_lame()
652 data->probedelay = timenow + ((*to)+1999)/1000; in infra_set_lame()
660 socklen_t addrlen, uint8_t* nm, size_t nmlen, time_t timenow, in infra_update_tcp_works()
669 if(!(e = new_entry(infra, addr, addrlen, nm, nmlen, timenow))) { in infra_update_tcp_works()
674 } else if( ((struct infra_data*)e->data)->ttl < timenow) {
490 data_entry_init(struct infra_cache * infra,struct lruhash_entry * e,time_t timenow) data_entry_init() argument
549 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) infra_host() argument
621 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) infra_set_lame() argument
678 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) infra_rtt_update() argument
740 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) infra_get_host_rto() argument
766 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) infra_edns_update() argument
798 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) infra_get_lame_rtt() argument
953 infra_create_ratedata(struct infra_cache * infra,uint8_t * name,size_t namelen,time_t timenow) infra_create_ratedata() argument
981 infra_ip_create_ratedata(struct infra_cache * infra,struct sockaddr_storage * addr,socklen_t addrlen,time_t timenow,int mesh_wait) infra_ip_create_ratedata() argument
1060 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) infra_ratelimit_inc() argument
1107 infra_ratelimit_dec(struct infra_cache * infra,uint8_t * name,size_t namelen,time_t timenow) infra_ratelimit_dec() argument
1127 infra_ratelimit_exceeded(struct infra_cache * infra,uint8_t * name,size_t namelen,time_t timenow,int backoff) infra_ratelimit_exceeded() argument
1201 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) infra_ip_ratelimit_inc() argument
1265 infra_wait_limit_inc(struct infra_cache * infra,struct comm_reply * rep,time_t timenow,struct config_file * cfg) infra_wait_limit_inc() argument
[all...]
H A Dinfra.h274 * @param timenow: what time it is now.
283 time_t timenow, int* edns_vs, uint8_t* edns_lame_known, int* to);
292 * @param timenow: what time it is now.
302 uint8_t* name, size_t namelen, time_t timenow, int dnsseclame,
317 * @param timenow: what time it is now.
322 int roundtrip, int orig_rtt, time_t timenow);
345 * @param timenow: what time it is now.
350 uint8_t* name, size_t namelen, int edns_version, time_t timenow);
367 * @param timenow: what time it is now.
373 int* lame, int* dnsseclame, int* reclame, int* rtt, time_t timenow);
[all...]
H A Drrset.c129 need_to_update_rrset(void* nd, void* cd, time_t timenow, int equal, int ns) in need_to_update_rrset() argument
134 if( newd->ttl < timenow && timenow <= cached->ttl) in need_to_update_rrset()
149 if(equal && cached->ttl >= timenow && in need_to_update_rrset()
155 if( cached->ttl < timenow ) in need_to_update_rrset()
193 struct alloc_cache* alloc, time_t timenow) in rrset_cache_update() argument
215 if(!need_to_update_rrset(k->entry.data, e->data, timenow, in rrset_cache_update()
250 struct alloc_cache* alloc, time_t timenow) in rrset_cache_update_wildcard() argument
254 rrset = packed_rrset_copy_alloc(rrset, alloc, timenow); in rrset_cache_update_wildcard()
278 (void)rrset_cache_update(rrset_cache, &ref, alloc, timenow); in rrset_cache_update_wildcard()
283 uint16_t qtype, uint16_t qclass, uint32_t flags, time_t timenow, in rrset_cache_lookup() argument
[all …]
H A Drrset.h134 struct alloc_cache* alloc, time_t timenow);
152 struct alloc_cache* alloc, time_t timenow);
170 uint32_t flags, time_t timenow, int wr);
184 int rrset_array_lock(struct rrset_ref* ref, size_t count, time_t timenow);
H A Ddns.h139 * @param timenow: the time now, for checking if TTL on cache entries is OK.
150 struct regional* region, struct dns_msg** msg, time_t timenow,
/freebsd/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/crypto/krb5/src/kdc/
H A Dreplay.c201 krb5_timestamp timenow; in kdc_insert_lookaside() local
204 if (krb5_timeofday(kcontext, &timenow)) in kdc_insert_lookaside()
209 if (!STALE(e, timenow) && total_size + esize <= LOOKASIDE_MAX_SIZE) in kdc_insert_lookaside()
215 insert_entry(kcontext, req_packet, reply_packet, timenow); in kdc_insert_lookaside()
/freebsd/contrib/unbound/util/data/
H A Dmsgencode.c462 uint16_t* num_rrs, time_t timenow, struct regional* region, in packed_rrset_encode() argument
486 adjust = SERVE_ORIGINAL_TTL ? data->ttl_add : timenow; in packed_rrset_encode()
558 sldns_buffer* pkt, size_t rrsets_before, time_t timenow, in insert_section() argument
576 pkt, num_rrs, timenow, region, 1, 1, tree, in insert_section()
589 pkt, num_rrs, timenow, region, 1, 0, tree, in insert_section()
600 pkt, num_rrs, timenow, region, 0, 1, tree, in insert_section()
687 uint16_t id, uint16_t flags, sldns_buffer* buffer, time_t timenow, in reply_info_encode() argument
724 rr_offset = RRSET_ROUNDROBIN?ntohs(id)+(timenow?timenow:time(NULL)):0; in reply_info_encode()
755 0, timenow, region, &tree, LDNS_SECTION_ANSWER, qinfo->qtype, in reply_info_encode()
772 rep->an_numrrsets, timenow, region, &tree, in reply_info_encode()
[all …]
H A Dmsgencode.h70 uint16_t id, uint16_t qflags, struct sldns_buffer* dest, time_t timenow,
94 uint16_t id, uint16_t flags, struct sldns_buffer* buffer, time_t timenow,
H A Dmsgreply.c179 reply_info_can_answer_expired(struct reply_info* rep, time_t timenow) in reply_info_can_answer_expired() argument
181 log_assert(rep->ttl < timenow); in reply_info_can_answer_expired()
183 if(SERVE_EXPIRED_TTL && rep->serve_expired_ttl < timenow) return 0; in reply_info_can_answer_expired()
191 int reply_info_could_use_expired(struct reply_info* rep, time_t timenow) in reply_info_could_use_expired() argument
193 log_assert(rep->ttl < timenow); in reply_info_could_use_expired()
195 if(SERVE_EXPIRED_TTL && rep->serve_expired_ttl < timenow && in reply_info_could_use_expired()
598 reply_info_set_ttls(struct reply_info* rep, time_t timenow) in reply_info_set_ttls() argument
601 rep->ttl += timenow; in reply_info_set_ttls()
602 rep->prefetch_ttl += timenow; in reply_info_set_ttls()
603 rep->serve_expired_ttl += timenow; in reply_info_set_ttls()
[all …]
H A Dmsgreply.h341 void reply_info_set_ttls(struct reply_info* rep, time_t timenow);
422 int reply_info_can_answer_expired(struct reply_info* rep, time_t timenow);
431 int reply_info_could_use_expired(struct reply_info* rep, time_t timenow);
/freebsd/usr.sbin/newsyslog/
H A Dnewsyslog.c259 static struct ptime_data *timenow; /* The time to use for checking at-fields */ variable
595 diffsecs = ptimeget_diff(timenow, ent->trim_at); in do_entry()
600 timenow); in do_entry()
694 timenow = ptime_init(NULL); in parse_args()
695 ptimeset_time(timenow, time(NULL)); in parse_args()
696 strlcpy(daytime, ptimeget_ctime(timenow) + 4, DAYTIME_LEN); in parse_args()
697 ptimeget_ctime_rfc5424(timenow, daytime_rfc5424, DAYTIME_RFC5424_LEN); in parse_args()
801 ptime_free(timenow); in parse_args()
802 timenow = dbg_timenow; in parse_args()
1367 ptimeget_secs(timenow), ep + 1); in parse_file()
[all …]
/freebsd/crypto/heimdal/lib/hx509/
H A Dhx_locl.h151 time_t timenow; member
H A Dcms.c296 q.timenow = time_now; in find_CMSIdentifier()
298 q.timenow = time(NULL); in find_CMSIdentifier()
H A Dcert.c1094 q.timenow = time_now; in find_parent()
3065 if (t > q->timenow) in _hx509_query_match_cert()
3068 if (t < q->timenow) in _hx509_query_match_cert()
/freebsd/crypto/openssl/ssl/
H A Dd1_lib.c312 OSSL_TIME timenow; in dtls1_get_timeout() local
319 timenow = ossl_time_now(); in dtls1_get_timeout()
326 *timeleft = ossl_time_subtract(s->d1->next_timeout, timenow); in dtls1_get_timeout()
/freebsd/contrib/unbound/daemon/
H A Dworker.c567 time_t timenow = *worker->env.now; in answer_norec_from_cache() local
576 worker->scratchpad, &msg, timenow, 0, NULL, 0); in answer_norec_from_cache()
739 time_t timenow = *worker->env.now; in answer_from_cache() local
749 if(rep->ttl < timenow) { in answer_from_cache()
757 timenow < rep->serve_expired_norec_ttl) in answer_from_cache()
763 if(!reply_info_can_answer_expired(rep, timenow)) in answer_from_cache()
776 if(!rrset_array_lock(rep->ref, rep->rrset_count, timenow)) in answer_from_cache()
892 repinfo->c->buffer, timenow, 1, worker->scratchpad, in answer_from_cache()
/freebsd/contrib/unbound/testcode/
H A Dfake_event.c246 int timenow = runtime->now->time_step; in pending_find_match() local
249 if(p->start_step <= timenow && timenow <= p->end_step && in pending_find_match()
255 "with entry line %d", timenow, in pending_find_match()
/freebsd/contrib/unbound/services/
H A Doutside_network.c3437 time_t timenow = 0; local
3481 timenow = *env->now;
3483 zonelen, timenow, env->cfg->ratelimit_backoff,
3513 zone, zonelen, timenow);
3521 zone, zonelen, timenow);
H A Dmesh.c340 time_t timenow = *qstate->env->now; in mesh_serve_expired_lookup() local
351 if(data->ttl < timenow) *is_expired = 1; in mesh_serve_expired_lookup()
352 msg = tomsg(qstate->env, &key->key, data, qstate->region, timenow, in mesh_serve_expired_lookup()
/freebsd/contrib/unbound/contrib/
H A Dfastrpz.patch3302 + sldns_buffer* pkt, size_t rrsets_before, time_t timenow,
3315 + pkt, num_rrs, timenow, region,
3339 + timenow, region, &tree, rr_offset);
/freebsd/sys/netinet/tcp_stacks/
H A Drack.c2103 uint64_t timenow, timeleft, lenleft, lengone, calcbw; in rack_rate_cap_bw() local
2120 timenow = tcp_tv_to_lusec(&tv); in rack_rate_cap_bw()
2121 if (timenow >= ent->deadline) { in rack_rate_cap_bw()
2129 timeleft = rack->r_ctl.rc_last_sft->deadline - timenow; in rack_rate_cap_bw()