]> git.ipfire.org Git - thirdparty/bind9.git/commit
Reuse rdatset->ttl when dumping ancient RRsets
authorMatthijs Mekking <matthijs@isc.org>
Thu, 27 May 2021 07:43:21 +0000 (09:43 +0200)
committerEvan Hunt <each@isc.org>
Sun, 30 May 2021 18:48:36 +0000 (11:48 -0700)
commitf7f543d99bcb7008808e0c55e35ccd6788cb32a7
tree00c4e71c27d8b38ed4d58f2f44757f65df2b5e45
parent0cdf85d20491eca328ed43f8c3f70513735757ba
Reuse rdatset->ttl when dumping ancient RRsets

Rather than having an expensive 'expired' (fka 'stale_ttl') in the
rdataset structure, that is only used to be printed in a comment on
ancient RRsets, reuse the TTL field of the RRset.
lib/dns/include/dns/rdataset.h
lib/dns/masterdump.c
lib/dns/rbtdb.c