From b92da7ece1ca5db330cf84a28487a1bca140f426 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Fri, 23 Jun 2000 01:34:38 +0000 Subject: [PATCH] 273. [func] The default for the 'transfer-format' option is now 'many-answers'. This will break zone transfers to BIND 4.9.5 and older unless there is an explicit 'one-answer' configuration. --- bin/named/include/named/listenlist.h | 7 ++++--- bin/named/listenlist.c | 11 +++++++---- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/bin/named/include/named/listenlist.h b/bin/named/include/named/listenlist.h index e42ca21fdd..9b0126b6d8 100644 --- a/bin/named/include/named/listenlist.h +++ b/bin/named/include/named/listenlist.h @@ -15,7 +15,7 @@ * SOFTWARE. */ -/* $Id: listenlist.h,v 1.6 2000/06/22 21:49:41 tale Exp $ */ +/* $Id: listenlist.h,v 1.7 2000/06/23 01:34:38 gson Exp $ */ #ifndef NAMED_LISTENLIST_H #define NAMED_LISTENLIST_H 1 @@ -92,10 +92,11 @@ ns_listenlist_detach(ns_listenlist_t **listp); isc_result_t ns_listenlist_default(isc_mem_t *mctx, in_port_t port, - ns_listenlist_t **target); + isc_boolean_t enabled, ns_listenlist_t **target); /* * Create a listen-on list with default contents, matching - * all addresses with port 'port'. + * all addresses with port 'port' (if 'enabled' is ISC_TRUE), + * or no addresses (if 'enabled' is ISC_FALSE). */ #endif /* NAMED_LISTENLIST_H */ diff --git a/bin/named/listenlist.c b/bin/named/listenlist.c index da1203bdfe..ca097f6d3f 100644 --- a/bin/named/listenlist.c +++ b/bin/named/listenlist.c @@ -15,7 +15,7 @@ * SOFTWARE. */ -/* $Id: listenlist.c,v 1.5 2000/06/22 21:49:21 tale Exp $ */ +/* $Id: listenlist.c,v 1.6 2000/06/23 01:34:36 gson Exp $ */ #include @@ -99,15 +99,18 @@ ns_listenlist_detach(ns_listenlist_t **listp) { isc_result_t ns_listenlist_default(isc_mem_t *mctx, in_port_t port, - ns_listenlist_t **target) + isc_boolean_t enabled, ns_listenlist_t **target) { isc_result_t result; dns_acl_t *acl = NULL; ns_listenelt_t *elt = NULL; ns_listenlist_t *list = NULL; - REQUIRE(target != NULL && *target == NULL); - result = dns_acl_any(mctx, &acl); + REQUIRE(target != NULL && *target == NULL); + if (enabled) + result = dns_acl_any(mctx, &acl); + else + result = dns_acl_none(mctx, &acl); if (result != ISC_R_SUCCESS) goto cleanup;