]> git.ipfire.org Git - thirdparty/bind9.git/commit
add additional hook points, plus some minor refactoring
authorEvan Hunt <each@isc.org>
Thu, 22 Nov 2018 09:15:13 +0000 (09:15 +0000)
committerEvan Hunt <each@isc.org>
Thu, 6 Dec 2018 18:29:12 +0000 (10:29 -0800)
commit9df0bdc99c154a917bbfb20c1fed47c1818e769d
tree34bced2e90d678af3f724170595460e87d48f70b
parentbaa38d6e94e3b0b50ec663a8fe2fdaf3c9011357
add additional hook points, plus some minor refactoring

- added some hook points that will be needed for a dns64 module later
- moved some code from the beginning of query_respond() to
  the end of query_prepresponse(); this has no effect on functionality
  but means we can have a hook point at the top of query_respond(),
  which seems nicer
- compressed duplicated code into query_zerottl_refetch() function
- added a qctx->answered flag so that a module can prevent
  query_addrrset() from being called from query_respond() when
  it's already been called from the module.
lib/ns/include/ns/hooks.h
lib/ns/query.c