]> git.ipfire.org Git - thirdparty/bind9.git/commit
refactor the slab rdataset implementation
authorEvan Hunt <each@isc.org>
Tue, 25 Apr 2023 16:26:47 +0000 (17:26 +0100)
committerOndřej Surý <ondrej@isc.org>
Mon, 17 Jul 2023 12:50:25 +0000 (14:50 +0200)
commit9330fada3a81cdd6f72cb037d87da7bf5c2a54f4
tree65e03def24cf9eaabb4c43e096fb4a422be94d5b
parent83a33c35552f3c1ee9ffe0bf33bda94f7221bbbd
refactor the slab rdataset implementation

- use externally accessible functions for attachnode/detachnode
  so these functions can be moved outside rbtdb.c
- simplify and tidy up some other functions
- use struct initializers when appropriate
- remove the flag RDATASET_ATTR_RETAIN; it was never being set
- renamed the rdataset attributes to
- remove the 'slab_methods' rdataset implementation. this was
  a reduced set of slab rdataset methods, omitting 'setownercase()'
  and 'getownercase()'. we can get the identical result by using
  an DNS_RDATASETATTR_KEEPCASE attribute in rdatasets that
  shouldn't have their case modified, and then we only need one
  set of rdataset methods.
lib/dns/include/dns/rdataset.h
lib/dns/rbtdb.c
lib/dns/rdataset.c