]> git.ipfire.org Git - thirdparty/bind9.git/commit
ns_query refactoring for hook-based recursion
authorJINMEI Tatuya <jtatuya@infoblox.com>
Wed, 16 Sep 2020 20:19:03 +0000 (13:19 -0700)
committerEvan Hunt <each@isc.org>
Tue, 24 Nov 2020 23:11:39 +0000 (15:11 -0800)
commit9c8dae041daaf3d4a9c40f52185839abe5bead0b
tree0a9f4d79d459bfd495742bc3ea3e9d3e5c926f12
parentbdb8729f8887ff8ad86dbb5ab6b76054e66acca0
ns_query refactoring for hook-based recursion

several small changes to query processing to make it easier to
use hook-based recursion (and other asynchronous functionlity)
later.

- recursion quota check is now a separate function,
  check_recursionquota(), which is called by ns_query_recurse().
- pass isc_result to query_nxdomain() instead of bool.
  the value of 'empty_wild' will be determined in the function
  based on the passed result.  this is similar to query_nodata(),
  and makes the signatures of the two functions more consistent.
- pass the current 'result' value into plugin hooks.
lib/ns/query.c