]> git.ipfire.org Git - thirdparty/bind9.git/commit
refactor query.c to make qctx more accessible
authorEvan Hunt <each@isc.org>
Tue, 7 Aug 2018 08:05:55 +0000 (01:05 -0700)
committerEvan Hunt <each@isc.org>
Thu, 6 Dec 2018 18:29:10 +0000 (10:29 -0800)
commit29897b14dcf80e246464a67db9aef6c885506148
tree116a173f3d0d21740539de22da55440a0599ce17
parent70cc3f803e40e60c9127edf458f6ada11ac0d737
refactor query.c to make qctx more accessible

- the purpose of this change is allow for more well-defined hook points
  to be available in the query processing logic. some functions that
  formerly didn't have access to 'qctx' do now; this is needed because
  'qctx' is what gets passed when calling a hook function.
- query_addrdataset() has been broken up into three separate functions
  since it used to do three unrelated things, and what was formerly
  query_addadditional() has been renamed query_additional_cb() for
  clarity.
- client->filter_aaaa is now qctx->filter_aaaa. (later, it will be moved
  into opaque storage in the qctx, for use by the filter-aaaa module.)
- cleaned up style and braces
lib/ns/client.c
lib/ns/include/ns/client.h
lib/ns/include/ns/query.h
lib/ns/query.c