Lines Matching full:ttl
132 if( newd->ttl < timenow && timenow <= cached->ttl) in need_to_update_rrset()
146 * do not update the TTL - let it expire. */ 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()
158 * the NS RRset, but use the cached TTL for the new data, and in need_to_update_rrset()
159 * update to fetch the latest data. ttl is not expired, because in need_to_update_rrset()
163 newd->ttl = cached->ttl; in need_to_update_rrset()
165 if(newd->rr_ttl[i] > newd->ttl) in need_to_update_rrset()
166 newd->rr_ttl[i] = newd->ttl; in need_to_update_rrset()
298 /* check TTL */ in rrset_cache_lookup()
301 if(timenow > data->ttl) { in rrset_cache_lookup()
321 ->ttl) { in rrset_array_lock()
398 updata->ttl+now < cachedata->ttl || in rrset_update_sec_status()
399 cachedata->ttl < now || in rrset_update_sec_status()
401 cachedata->ttl = updata->ttl + now; in rrset_update_sec_status()
426 if(now > cachedata->ttl || !rrsetdata_equal(updata, cachedata)) { in rrset_check_sec_status()
434 updata->ttl = cachedata->ttl - now; in rrset_check_sec_status()
474 int expired = (now > data->ttl); in rrset_cache_remove_above()
512 if(now > data->ttl) { in rrset_cache_expired_above()