]> git.ipfire.org Git - thirdparty/bind9.git/commit
add semantics to name trees to support counters
authorEvan Hunt <each@isc.org>
Thu, 17 Aug 2023 06:26:50 +0000 (23:26 -0700)
committerOndřej Surý <ondrej@isc.org>
Mon, 4 Sep 2023 08:19:48 +0000 (10:19 +0200)
commit0ebaa26da72689a27ead6dde2ce337138ac7c448
treebe5cb89457ddd5ec7644c5599523b3f980ae08c0
parentbc3fd1a2efc784ef36906db3d5876a1de6f7f8da
add semantics to name trees to support counters

name trees can now also hold trees of counters. each time a name
dns_nametree_add() is called with a given name, the counter for that
name is incremented; the name is not deleted until dns_nametree_delete()
is called the same number of times.

this is meant to be used for synth-from-dnssec, which is incremented for
each key defined at a name, and decremented when a key is removed, the
name must continue to exist until the number of keys has reached zero.
lib/dns/include/dns/nametree.h
lib/dns/nametree.c
tests/dns/nametree_test.c