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.
This commit is contained in:
Andreas Gustafsson
2000-06-23 01:34:38 +00:00
parent 9952491975
commit b92da7ece1
2 changed files with 11 additions and 7 deletions

View File

@@ -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 */

View File

@@ -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 <config.h>
@@ -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;