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:
@@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* 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
|
#ifndef NAMED_LISTENLIST_H
|
||||||
#define NAMED_LISTENLIST_H 1
|
#define NAMED_LISTENLIST_H 1
|
||||||
@@ -92,10 +92,11 @@ ns_listenlist_detach(ns_listenlist_t **listp);
|
|||||||
|
|
||||||
isc_result_t
|
isc_result_t
|
||||||
ns_listenlist_default(isc_mem_t *mctx, in_port_t port,
|
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
|
* 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 */
|
#endif /* NAMED_LISTENLIST_H */
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* 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>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -99,15 +99,18 @@ ns_listenlist_detach(ns_listenlist_t **listp) {
|
|||||||
|
|
||||||
isc_result_t
|
isc_result_t
|
||||||
ns_listenlist_default(isc_mem_t *mctx, in_port_t port,
|
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;
|
isc_result_t result;
|
||||||
dns_acl_t *acl = NULL;
|
dns_acl_t *acl = NULL;
|
||||||
ns_listenelt_t *elt = NULL;
|
ns_listenelt_t *elt = NULL;
|
||||||
ns_listenlist_t *list = NULL;
|
ns_listenlist_t *list = NULL;
|
||||||
|
|
||||||
REQUIRE(target != NULL && *target == NULL);
|
REQUIRE(target != NULL && *target == NULL);
|
||||||
result = dns_acl_any(mctx, &acl);
|
if (enabled)
|
||||||
|
result = dns_acl_any(mctx, &acl);
|
||||||
|
else
|
||||||
|
result = dns_acl_none(mctx, &acl);
|
||||||
if (result != ISC_R_SUCCESS)
|
if (result != ISC_R_SUCCESS)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user