]> git.ipfire.org Git - thirdparty/bind9.git/commit
Replace #define DNS_NAMEATTR_ with struct of bools
authorPetr Špaček <pspacek@isc.org>
Thu, 13 Oct 2022 08:33:41 +0000 (10:33 +0200)
committerPetr Špaček <pspacek@isc.org>
Thu, 13 Oct 2022 15:04:02 +0000 (17:04 +0200)
commit53b3ceacd471cd1e5245ac44e5d1500ecac0e562
tree34f2a24f1facb3739dfc054124258e511879a2fe
parent8a3aa8bda41946f1adf46201aa0be9555f4f2529
Replace #define DNS_NAMEATTR_ with struct of bools

sizeof(dns_name_t) did not change but the boolean attributes are now
separated as one-bit structure members. This allows debuggers to
pretty-print dns_name_t attributes without any special hacks, plus we
got rid of manual bit manipulation code.
17 files changed:
CHANGES
bin/nsupdate/nsupdate.c
lib/dns/compress.c
lib/dns/include/dns/name.h
lib/dns/include/dns/rbt.h
lib/dns/message.c
lib/dns/name.c
lib/dns/ncache.c
lib/dns/rbt.c
lib/dns/rbtdb.c
lib/dns/rdataset.c
lib/dns/resolver.c
lib/dns/rrl.c
lib/dns/tsig.c
lib/dns/xfrin.c
lib/ns/query.c
tests/dns/name_test.c