]> git.ipfire.org Git - thirdparty/bind9.git/commit
Replace query and client attribute bitfield with named bools
authorOndřej Surý <ondrej@isc.org>
Sat, 21 Mar 2026 16:13:56 +0000 (17:13 +0100)
committerOndřej Surý <ondrej@isc.org>
Thu, 2 Jul 2026 11:27:11 +0000 (13:27 +0200)
commit430ce335ad2a5032aedec8d5e138785035d4e58c
treefbc162c8d3533d9cfba676f4e1cf156c238daed5
parent03c495def670147b26b96b8e3ba1f0b5ed04f279
Replace query and client attribute bitfield with named bools

Replace the unsigned int attributes field in struct ns_query with
individual bool bitfields.  This removes the NS_QUERYATTR_* constants
and the 12 accessor macros (USECACHE, RECURSIONOK, RECURSING, etc.)
from query.c, replacing all bit manipulation with direct bool access.

And replace the unsigned int attributes field in struct ns_client_inner
with individual bool bitfields.  This removes the NS_CLIENTATTR_*
constants and the accessor macros (TCP, WANTDNSSEC, etc.), replacing
all bit manipulation with direct bool access.
bin/plugins/filter-a.c
bin/plugins/filter-aaaa.c
lib/ns/client.c
lib/ns/include/ns/client.h
lib/ns/include/ns/query.h
lib/ns/query.c
lib/ns/update.c
lib/ns/xfrout.c
tests/libtest/ns.c