Lines Matching refs:ttl
83 time_t ttl, min_ttl = rep->ttl;
116 /* if ref was updated make sure the message ttl is updated to
118 ttl = ((struct packed_rrset_data*)rep->rrsets[i]->entry.data)->ttl;
119 if(ttl < min_ttl) min_ttl = ttl;
121 if(min_ttl < rep->ttl) {
122 rep->ttl = min_ttl;
123 rep->prefetch_ttl = PREFETCH_TTL_CALC(rep->ttl);
124 rep->serve_expired_ttl = rep->ttl + SERVE_EXPIRED_TTL;
152 time_t ttl = rep->ttl;
166 if(ttl == 0 && !(flags & DNSCACHE_STORE_ZEROTTL)) {
288 if( now > ((struct reply_info*)e->data)->ttl ) {
585 if(now > r->ttl) {
605 now_control = r->ttl - env->cfg->serve_expired_reply_ttl;
613 msg->rep->ttl = is_expired
615 :r->ttl - now;
619 msg->rep->prefetch_ttl = PREFETCH_TTL_CALC(msg->rep->ttl);
620 msg->rep->serve_expired_ttl = msg->rep->ttl + SERVE_EXPIRED_TTL;
693 if(now > d->ttl)
701 msg->rep->ttl = d->ttl - now;
702 msg->rep->prefetch_ttl = PREFETCH_TTL_CALC(msg->rep->ttl);
703 msg->rep->serve_expired_ttl = msg->rep->ttl + SERVE_EXPIRED_TTL;
727 if(now > d->ttl)
740 msg->rep->ttl = d->ttl - now;
741 msg->rep->prefetch_ttl = PREFETCH_TTL_CALC(msg->rep->ttl);
742 msg->rep->serve_expired_ttl = msg->rep->ttl + SERVE_EXPIRED_TTL;
791 newd->ttl = d->ttl - now; /* RFC6672: synth CNAME TTL == DNAME TTL */
799 newd->rr_ttl[0] = newd->ttl;
800 msg->rep->ttl = newd->ttl;
801 msg->rep->prefetch_ttl = PREFETCH_TTL_CALC(newd->ttl);
802 msg->rep->serve_expired_ttl = newd->ttl + SERVE_EXPIRED_TTL;
1054 /* ttl must be relative ;i.e. 0..86400 not time(0)+86400.