bind9/lib
Matthijs Mekking 16a1c5a623 Prepend qpkey with denial byte
In preparation to merge the three qp tries (tree, nsec, nsec3) into
one, add the piece of information into the qpkey. This is the most
significant bit of information, so prepend the denial type to the qpkey.

This means we need to pass on the denial type when constructing the
qpkey from a name, or doing a lookup.

Reuse the the DNS_DB_NSEC_* values. Most qp tries in the code we just
pass on 0 (nta, rpz, zt, etc.), because there is no need for denial of
existence, but for qpzone and qpcache we must pass the right value.

Change the code, so that node->nsec no longer can have the value
DNS_DB_NSEC_HAS_NSEC, instead track this in a new attribute 'havensec'.

Since we use node->nsec to convert names to keys, the value MUST be set
before inserting the node into the qp-trie.

Update the fuzzing and unit tests accordingly. This only adds a few
extra test cases, more are needed.

In the qp_test.c we can remove test code for empty keys as this is
no longer possible.
2025-07-10 13:52:59 +00:00
..
dns Prepend qpkey with denial byte 2025-07-10 13:52:59 +00:00
isc Use regular reference counting macro for isc_nm_t structure 2025-07-09 21:22:48 +02:00
isccc replace the build system with meson 2025-06-11 10:30:12 +03:00
isccfg Use clang-format-20 to update formatting 2025-06-25 12:44:22 +10:00
ns Convert DNS_RDATASETATTR_ bitfield manipulation to struct of bools 2025-07-10 11:17:19 +02:00
.gitignore The isc/platform.h header has been completely removed 2021-07-06 05:33:48 +00:00
meson.build replace the build system with meson 2025-06-11 10:30:12 +03:00