]> git.ipfire.org Git - thirdparty/bind9.git/commit
In dns_slabheader_t structure, change .ttl to .expire
authorOndřej Surý <ondrej@isc.org>
Sun, 2 Feb 2025 12:31:36 +0000 (13:31 +0100)
committerOndřej Surý <ondrej@isc.org>
Mon, 3 Feb 2025 13:39:06 +0000 (14:39 +0100)
commite07f5a4a5bb3aac984743bfba409da47ccc17e7d
tree18f7ccfd4cc9deac6b9460390c34888a11b005c0
parent1bbb57f81b50bb594327428938a129a51d8ca493
In dns_slabheader_t structure, change .ttl to .expire

The old name was misleading as it never meant time-to-live, e.g. number
of seconds from now when the header should expire.  The true meaning was
an expiration time e.g. now + ttl.  This was the original design bug
that caused the slip when we assigned header->ttl to rdataset->ttl.
Because the name was matching, nobody has questioned the correctness of
the code both during the MR review and during the numerous re-reviews
when we were searching for the cause of the 54 year TTL.
lib/dns/include/dns/rdataslab.h
lib/dns/qpcache.c
lib/dns/qpzone.c