]> git.ipfire.org Git - thirdparty/bind9.git/commit
Refactor the 'max-cache-size' configuration handling
authorOndřej Surý <ondrej@isc.org>
Thu, 19 Feb 2026 09:03:45 +0000 (10:03 +0100)
committerOndřej Surý <ondrej@isc.org>
Mon, 30 Mar 2026 19:46:44 +0000 (21:46 +0200)
commit6fa415f71fd7f867c3b4d0071258bece0bc46b7b
treeb1777bd7c7c996846370cf37539cc9d7d8d57945
parentd7c99c14fcc007314ea18ea7ff40bead4cdb519a
Refactor the 'max-cache-size' configuration handling

Extract the inline max-cache-size logic from configure_view() into
reusable helpers: configure_max_cache_size(), default_max_cache_size(),
max_cache_size_as_percent(), and sanitized_max_cache_size().

Move DNS_CACHE_MINSIZE and DNS_ADB_MINADBSIZE to public headers and
remove the SIZE_AS_PERCENT sentinel.
bin/named/server.c
lib/dns/adb.c
lib/dns/cache.c
lib/dns/include/dns/adb.h
lib/dns/include/dns/cache.h