]> git.ipfire.org Git - thirdparty/bind9.git/commit
refactor filter-aaaa implementation
authorEvan Hunt <each@isc.org>
Tue, 7 Aug 2018 02:34:20 +0000 (19:34 -0700)
committerEvan Hunt <each@isc.org>
Thu, 6 Dec 2018 18:29:10 +0000 (10:29 -0800)
commitd43dcef139c71523fccaa88bae155b51e6c5196d
treeaf8e8d766208abc0b18ee31eccd9a38dffcc2b6b
parent29897b14dcf80e246464a67db9aef6c885506148
refactor filter-aaaa implementation

 - the goal of this change is for AAAA filtering to be fully contained
   in the query logic, and implemented at discrete points that can be
   replaced with hook callouts later on.
 - the new code may be slightly less efficient than the old filter-aaaa
   implementation, but maximum efficiency was never a priority for AAAA
   filtering anyway.
 - we now use the rdataset RENDERED attribute to indicate that an AAAA
   rdataset should not be included when rendering the message. (this
   flag was originally meant to indicate that an rdataset has already
   been rendered and should not be repeated, but it can also be used to
   prevent rendering in the first place.)
 - the DNS_MESSAGERENDER_FILTER_AAAA, NS_CLIENTATTR_FILTER_AAAA,
   and DNS_RDATASETGLUE_FILTERAAAA flags are all now unnecessary and
   have been removed.
13 files changed:
bin/tests/system/filter-aaaa/tests.sh
lib/dns/include/dns/db.h
lib/dns/include/dns/message.h
lib/dns/include/dns/rdataset.h
lib/dns/message.c
lib/dns/rbtdb.c
lib/dns/rdataset.c
lib/ns/client.c
lib/ns/include/ns/client.h
lib/ns/include/ns/hooks.h
lib/ns/include/ns/query.h
lib/ns/query.c
lib/ns/server.c