/freebsd/contrib/unbound/services/cache/ |
H A D | infra.c | 490 time_t timenow) in data_entry_init() argument 493 data->ttl = timenow + infra->host_ttl; in data_entry_init() 549 socklen_t addrlen, uint8_t* nm, size_t nmlen, time_t timenow, in infra_host() argument 556 if(e && ((struct infra_data*)e->data)->ttl < timenow) { in infra_host() 569 data_entry_init(infra, e, timenow); in infra_host() 584 if(!(e = new_entry(infra, addr, addrlen, nm, nmlen, timenow))) in infra_host() 613 data->probedelay = timenow + ((*to)+1999)/1000; in infra_host() 621 socklen_t addrlen, uint8_t* nm, size_t nmlen, time_t timenow, in infra_set_lame() argument 630 if(!(e = new_entry(infra, addr, addrlen, nm, nmlen, timenow))) { in infra_set_lame() 635 } else if( ((struct infra_data*)e->data)->ttl < timenow) { in infra_set_lame() [all …]
|
H A D | infra.h | 270 time_t timenow, int* edns_vs, uint8_t* edns_lame_known, int* to); 289 uint8_t* name, size_t namelen, time_t timenow, int dnsseclame, 309 int roundtrip, int orig_rtt, time_t timenow); 337 uint8_t* name, size_t namelen, int edns_version, time_t timenow); 360 int* lame, int* dnsseclame, int* reclame, int* rtt, time_t timenow); 380 size_t namelen, struct rtt_info* rtt, int* delay, time_t timenow, 397 size_t namelen, time_t timenow, int backoff, struct query_info* qinfo, 411 size_t namelen, time_t timenow); 424 size_t namelen, time_t timenow, int backoff); 446 struct sockaddr_storage* addr, socklen_t addrlen, time_t timenow, [all …]
|
H A D | rrset.c | 127 need_to_update_rrset(void* nd, void* cd, time_t timenow, int equal, int ns) in need_to_update_rrset() argument 132 if( newd->ttl < timenow && timenow <= cached->ttl) in need_to_update_rrset() 147 if(equal && cached->ttl >= timenow && in need_to_update_rrset() 153 if( cached->ttl < timenow ) in need_to_update_rrset() 191 struct alloc_cache* alloc, time_t timenow) in rrset_cache_update() argument 213 if(!need_to_update_rrset(k->entry.data, e->data, timenow, in rrset_cache_update() 248 struct alloc_cache* alloc, time_t timenow) in rrset_cache_update_wildcard() argument 252 rrset = packed_rrset_copy_alloc(rrset, alloc, timenow); in rrset_cache_update_wildcard() 276 (void)rrset_cache_update(rrset_cache, &ref, alloc, timenow); in rrset_cache_update_wildcard() 281 uint16_t qtype, uint16_t qclass, uint32_t flags, time_t timenow, in rrset_cache_lookup() argument [all …]
|
H A D | rrset.h | 134 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 D | dns.h | 147 struct regional* region, struct dns_msg** msg, time_t timenow,
|
/freebsd/crypto/heimdal/lib/kadm5/ |
H A D | check-cracklib.pl | 66 my $timenow = scalar(time()); 74 if (!$DB{$key} || ($timenow - $DB{$key} < $reusetime)) { 76 $DB{$key}=$timenow;
|
/freebsd/contrib/unbound/util/data/ |
H A D | msgencode.c | 462 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 D | msgencode.h | 70 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 D | msgreply.c | 179 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 D | msgreply.h | 341 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/crypto/openssl/ssl/ |
H A D | d1_lib.c | 306 struct timeval timenow; in dtls1_get_timeout() local 314 get_current_time(&timenow); in dtls1_get_timeout() 317 if (s->d1->next_timeout.tv_sec < timenow.tv_sec || in dtls1_get_timeout() 318 (s->d1->next_timeout.tv_sec == timenow.tv_sec && in dtls1_get_timeout() 319 s->d1->next_timeout.tv_usec <= timenow.tv_usec)) { in dtls1_get_timeout() 326 timeleft->tv_sec -= timenow.tv_sec; in dtls1_get_timeout() 327 timeleft->tv_usec -= timenow.tv_usec; in dtls1_get_timeout()
|
/freebsd/usr.sbin/newsyslog/ |
H A D | newsyslog.c | 258 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() 804 ptime_free(timenow); in parse_args() 805 timenow = dbg_timenow; in parse_args() 1393 ptimeget_secs(timenow), ep + 1); in parse_file() [all …]
|
/freebsd/crypto/openssl/crypto/bio/ |
H A D | bss_dgram.c | 201 struct timeval timenow, timeleft; in dgram_adjust_rcv_timeout() local 225 get_current_time(&timenow); in dgram_adjust_rcv_timeout() 229 if (timeleft.tv_usec < timenow.tv_usec) { in dgram_adjust_rcv_timeout() 230 timeleft.tv_usec = 1000000 - timenow.tv_usec + timeleft.tv_usec; in dgram_adjust_rcv_timeout() 233 timeleft.tv_usec -= timenow.tv_usec; in dgram_adjust_rcv_timeout() 235 if (timeleft.tv_sec < timenow.tv_sec) { in dgram_adjust_rcv_timeout() 239 timeleft.tv_sec -= timenow.tv_sec; in dgram_adjust_rcv_timeout()
|
/freebsd/crypto/heimdal/lib/hx509/ |
H A D | hx_locl.h | 151 time_t timenow; member
|
H A D | cms.c | 296 q.timenow = time_now; in find_CMSIdentifier() 298 q.timenow = time(NULL); in find_CMSIdentifier()
|
H A D | cert.c | 1094 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/contrib/unbound/daemon/ |
H A D | worker.c | 480 time_t timenow = *worker->env.now; in answer_norec_from_cache() local 489 worker->scratchpad, &msg, timenow, 0, NULL, 0); in answer_norec_from_cache() 651 time_t timenow = *worker->env.now; in answer_from_cache() local 661 if(rep->ttl < timenow) { in answer_from_cache() 669 timenow < rep->serve_expired_norec_ttl) in answer_from_cache() 675 if(!reply_info_can_answer_expired(rep, timenow)) in answer_from_cache() 688 if(!rrset_array_lock(rep->ref, rep->rrset_count, timenow)) in answer_from_cache() 803 repinfo->c->buffer, timenow, 1, worker->scratchpad, in answer_from_cache()
|
/freebsd/contrib/unbound/services/ |
H A D | outside_network.c | 3422 time_t timenow = 0; local 3466 timenow = *env->now; 3468 zonelen, timenow, env->cfg->ratelimit_backoff, 3498 zone, zonelen, timenow); 3506 zone, zonelen, timenow);
|
H A D | mesh.c | 321 time_t timenow = *qstate->env->now; in mesh_serve_expired_lookup() local 332 if(data->ttl < timenow) *is_expired = 1; in mesh_serve_expired_lookup() 333 msg = tomsg(qstate->env, &key->key, data, qstate->region, timenow, in mesh_serve_expired_lookup()
|
/freebsd/contrib/unbound/contrib/ |
H A D | fastrpz.patch | 3302 + 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 D | rack.c | 2231 uint64_t timenow, timeleft, lenleft, lengone, calcbw; in rack_rate_cap_bw() local 2248 timenow = tcp_tv_to_lusectick(&tv); in rack_rate_cap_bw() 2249 if (timenow >= ent->deadline) { in rack_rate_cap_bw() 2257 timeleft = rack->r_ctl.rc_last_sft->deadline - timenow; in rack_rate_cap_bw()
|