*/
isc_stdtime_t resign;
- /*
- * When a cache rdataset's TTL has expired but it hasn't been
- * cleaned up yet, it will have this value set so that the time
- * it expired can be printed by dns_master_dump*().
- */
- isc_stdtime_t expired;
-
/*@{*/
/*%
* These are for use by the rdataset implementation, and MUST NOT
isc_result_t result;
if (STALE(rds)) {
fprintf(f, "; stale\n");
- } else if (ANCIENT(rds) && rds->expired != 0) {
+ } else if (ANCIENT(rds)) {
isc_buffer_t b;
char buf[sizeof("YYYYMMDDHHMMSS")];
memset(buf, 0, sizeof(buf));
isc_buffer_init(&b, buf, sizeof(buf) - 1);
- dns_time64_totext((uint64_t)rds->expired, &b);
+ dns_time64_totext((uint64_t)rds->ttl, &b);
fprintf(f,
"; expired since %s "
"(awaiting cleanup)\n",
rdataset->type = RBTDB_RDATATYPE_BASE(header->type);
rdataset->covers = RBTDB_RDATATYPE_EXT(header->type);
rdataset->ttl = header->rdh_ttl - now;
- rdataset->expired = 0;
rdataset->trust = header->trust;
if (NEGATIVE(header)) {
rdataset->attributes |= DNS_RDATASETATTR_STALE;
} else if (IS_CACHE(rbtdb) && !ACTIVE(header, now)) {
rdataset->attributes |= DNS_RDATASETATTR_ANCIENT;
- rdataset->expired = header->rdh_ttl;
- rdataset->ttl = 0;
+ rdataset->ttl = header->rdh_ttl;
}
rdataset->private1 = rbtdb;