2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

2920. [func] Allow 'filter-aaaa-on-v4' to be applied selectively

to IPv4 clients.  New acl 'filter-aaaa' (default any).
This commit is contained in:
Mark Andrews
2010-06-22 04:03:38 +00:00
parent 86d12575ff
commit 48dfee7150
52 changed files with 1699 additions and 40 deletions

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: view.c,v 1.164 2010/06/02 00:38:28 marka Exp $ */
/* $Id: view.c,v 1.165 2010/06/22 03:58:38 marka Exp $ */
/*! \file */
@@ -179,9 +179,8 @@ dns_view_create(isc_mem_t *mctx, dns_rdataclass_t rdclass,
view->flush = ISC_FALSE;
view->dlv = NULL;
view->maxudp = 0;
#ifdef ALLOW_FILTER_AAAA_ON_V4
view->v4_aaaa = dns_v4_aaaa_ok;
#endif
view->v4_aaaa_acl = NULL;
dns_fixedname_init(&view->dlv_fixed);
view->managed_keys = NULL;
@@ -315,6 +314,8 @@ destroy(dns_view_t *view) {
dns_acl_detach(&view->upfwdacl);
if (view->denyansweracl != NULL)
dns_acl_detach(&view->denyansweracl);
if (view->v4_aaaa_acl != NULL)
dns_acl_detach(&view->v4_aaaa_acl);
if (view->answeracl_exclude != NULL)
dns_rbt_destroy(&view->answeracl_exclude);
if (view->denyanswernames != NULL)