Lines Matching defs:now
61 * @param now: current time.
72 * earlier than the time in now. The time is used to determine if RRsets
78 store_rrsets(struct module_env* env, struct reply_info* rep, time_t now,
91 LDNS_RR_TYPE_NS && !pside)?qstarttime:now) + leeway)) {
103 rep->ref[i].key, region, now);
172 reply_info_set_ttls(rep, *env->now);
173 store_rrsets(env, rep, *env->now, leeway, pside, qrep, region,
209 uint16_t qclass, time_t now, uint16_t searchtype, int stripfront,
225 qnamelen, searchtype, qclass, 0, now, 0))) {
244 &qnamelen, searchtype, qclass, now, expiretop,
252 searchtype, qclass, 0, now, 0))) {
271 struct dns_msg* msg, time_t now)
274 packed_rrset_copy_region(rrset, region, now))) {
283 uint16_t qtype, uint16_t qclass, uint16_t flags, time_t now, int wr)
298 if( now > ((struct reply_info*)e->data)->ttl ) {
308 struct regional* region, struct delegpt* dp, time_t now,
316 ns->namelen, LDNS_RR_TYPE_A, qclass, 0, now, 0);
323 addr_to_additional(akey, region, *msg, now);
329 LDNS_RR_TYPE_A, qclass, 0, now, 0);
336 ns->namelen, LDNS_RR_TYPE_AAAA, qclass, 0, now, 0);
343 addr_to_additional(akey, region, *msg, now);
349 LDNS_RR_TYPE_AAAA, qclass, 0, now, 0);
356 LDNS_RR_TYPE_AAAA, qclass, BIT_CD, now, 0);
374 time_t now = *env->now;
380 ns->namelen, LDNS_RR_TYPE_A, qclass, flags, now, 0);
394 LDNS_RR_TYPE_A, qclass, 0, now, 0);
401 ns->namelen, LDNS_RR_TYPE_AAAA, qclass, flags, now, 0);
415 LDNS_RR_TYPE_AAAA, qclass, 0, now, 0);
422 LDNS_RR_TYPE_AAAA, qclass, BIT_CD, now, 0);
435 struct dns_msg* msg, struct delegpt* dp, time_t now)
440 msg->qinfo.qclass, 0, now, 0);
446 0, now, 0);
458 packed_rrset_copy_region(rrset, region, now))) {
501 struct ub_packed_rrset_key* rrset, time_t now)
504 packed_rrset_copy_region(rrset, region, now)))
512 struct ub_packed_rrset_key* rrset, time_t now)
515 packed_rrset_copy_region(rrset, region, now)))
524 struct regional* region, struct dns_msg** msg, time_t now,
532 nskey = find_closest_of_type(env, qname, qnamelen, qclass, now,
553 if(!*msg || !dns_msg_authadd(*msg, region, nskey, now)) {
564 find_add_ds(env, region, *msg, dp, now);
566 if(!find_add_addrs(env, qclass, region, dp, now, msg))
602 struct regional* region, time_t now, int allow_expired,
608 time_t now_control = now;
609 if(now > r->ttl) {
611 if(!allow_expired || !reply_info_can_answer_expired(r, now))
625 :r->ttl - now;
626 if(r->prefetch_ttl > now)
627 msg->rep->prefetch_ttl = r->prefetch_ttl - now;
649 /* cname chain is now invalid, reconstruct msg */
660 region, now);
699 time_t now, struct query_info* q)
704 if(now > d->ttl)
712 msg->rep->ttl = d->ttl - now;
722 msg->rep->rrsets[0] = packed_rrset_copy_region(rrset, region, now);
731 time_t now, struct query_info* q, enum sec_status* sec_status)
739 if(now > d->ttl)
752 msg->rep->ttl = d->ttl - now;
762 msg->rep->rrsets[0] = packed_rrset_copy_region(rrset, region, now);
804 newd->ttl = d->ttl - now; /* RFC6672: synth CNAME TTL == DNAME TTL */
829 time_t now = *env->now;
854 qclass, 0, now, 0);
880 if(!dns_msg_ansadd(msg, region, rrset, now)) {
898 time_t now = *env->now;
912 struct dns_msg* msg = tomsg(env, &key->key, data, region, now, 0,
926 (rrset=find_closest_of_type(env, qname, qnamelen, qclass, now,
930 struct dns_msg* msg = synth_dname_msg(rrset, region, now, &k,
935 /* now, after unlocking the DNAME rrset lock,
949 LDNS_RR_TYPE_CNAME, qclass, 0, now, 0);
966 LDNS_RR_TYPE_CNAME, qclass, 0, now, 0))) {
973 struct dns_msg* msg = rrset_msg(rrset, region, now, &k);
985 qtype, qclass, 0, now, 0))) {
1000 struct dns_msg* msg = rrset_msg(rrset, region, now, &k);
1034 && (msg=tomsg(env, &k, data, region, now, 0, scratch))) {
1072 if(cached->ttl < *env->now
1073 && reply_info_could_use_expired(cached, *env->now)
1105 NORR_TTL + *env->now;
1108 < *env->now +
1116 *env->now +
1134 * the env->now is added to message and RRsets in this routine. */
1142 rep->rrsets[i]->entry.data, *env->now);
1150 && !pside) ? qstarttime:*env->now + leeway));
1186 qinfo->qtype, qinfo->qclass, flags, *env->now, 1);