]> git.ipfire.org Git - thirdparty/bind9.git/commit
add semantics to dns_nametree to support bitfields
authorEvan Hunt <each@isc.org>
Thu, 17 Aug 2023 02:59:50 +0000 (19:59 -0700)
committerOndřej Surý <ondrej@isc.org>
Mon, 4 Sep 2023 08:19:48 +0000 (10:19 +0200)
commit9ed1dba9761db6011e2001e8485463ac0def07d1
treed5a6315a57c24f7dbe74b61dbd2dab45f5d2dbf8
parent54fc02410e8cda25b81765b1a3b154b5308915a8
add semantics to dns_nametree to support bitfields

name trees can now hold either boolean values or bit fields. the
type is selected when the name tree is created.

the behavior of dns_nametree_add() differs slightly beteween the types:
in a boolean tree adding an existing name will return ISC_R_EXISTS,
but in a bitfield tree it simply sets the specified bit in the bitfield
and returns ISC_R_SUCCESS.
bin/named/server.c
lib/dns/include/dns/nametree.h
lib/dns/nametree.c
lib/dns/resolver.c
tests/dns/nametree_test.c