]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add delegdb configuration struct
authorColin Vidal <colin@isc.org>
Tue, 26 May 2026 16:11:12 +0000 (18:11 +0200)
committerColin Vidal <colin@isc.org>
Thu, 28 May 2026 11:59:38 +0000 (13:59 +0200)
commit3610fd2df9af72f6244bfaac0cd7835e424e34ca
tree19368e72e296de321aceec50dd3640828cc2e675
parentac342bf6528b41210d43abe4c6767407dce1100e
Add delegdb configuration struct

Instead of having independent APIs to configure various aspects of the
delegdb (i.e. cache size, other settings that may come up later), a
single configuration struct is passed to `dns_delegdb_setconfig()`, which
internally does all the plumbing. To avoid relying on
atomics/synchronization, `dns_delegdb_setconfig()` must be called from
exclusive mode (for now).

The configuration can be retrieved at any time (not necessarily from
exclusive mode) using `dns_delegdb_getconfig()`. This is useful, for
instance, to flush the delegdb without losing its parameters.
bin/named/server.c
lib/dns/deleg.c
lib/dns/include/dns/deleg.h
tests/dns/deleg_test.c