confzone.c revision 7c337a9ca9a322af783ee3b7e3a97b8fac6b2959
/*
* Copyright (C) 1999 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
* CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
* SOFTWARE.
*/
#include <config.h>
#include <isc/assertions.h>
#include <dns/confzone.h>
#include <dns/confcommon.h>
#include "confpvt.h"
/*
* Bit positions in the dns_c_masterzone_t structure setflags field.
*/
#define MZ_CHECK_NAME_BIT 0
#define MZ_DIALUP_BIT 1
#define MZ_NOTIFY_BIT 2
#define MZ_MAINT_IXFR_BASE_BIT 3
#define MZ_MAX_IXFR_LOG_BIT 4
/*
* Bit positions in the dns_c_slavezone_t structure setflags field.
*/
#define SZ_CHECK_NAME_BIT 0
#define SZ_DIALUP_BIT 1
#define SZ_MASTER_PORT_BIT 2
#define SZ_TRANSFER_SOURCE_BIT 3
#define SZ_MAX_TRANS_TIME_IN_BIT 4
#define SZ_NOTIFY_BIT 5
#define SZ_MAINT_IXFR_BASE_BIT 6
#define SZ_MAX_IXFR_LOG_BIT 7
#define TZ_CHECK_NAME_BIT 0
#define TZ_DIALUP_BIT 1
#define TZ_MASTER_PORT_BIT 2
#define TZ_TRANSFER_SOURCE_BIT 3
#define TZ_MAX_TRANS_TIME_IN_BIT 4
/*
* Bit positions in the dns_c_forwardzone_t structure setflags field.
*/
#define FZ_CHECK_NAME_BIT 0
#define FZ_FORWARD_BIT 1
/*
* Bit positions in the dns_c_hintzone_t structure setflags field.
*/
#define HZ_CHECK_NAME_BIT 0
{
return (ISC_R_NOMEMORY);
}
return (ISC_R_SUCCESS);
}
{
return (ISC_R_SUCCESS);
}
return (res);
}
}
return (ISC_R_SUCCESS);
}
{
break;
}
}
}
}
{
if (res == ISC_R_SUCCESS) {
}
return (res);
}
{
return (res);
}
void
{
}
void
{
}
void
{
}
static void
{
return;
}
}
}
}
return;
}
/* ************************************************************************ */
/* ******************************** ZONEs ********************************* */
/* ************************************************************************ */
{
return (ISC_R_NOMEMORY);
}
switch (ztype) {
case dns_c_zone_master:
break;
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
break;
case dns_c_zone_hint:
break;
case dns_c_zone_forward:
break;
}
return (ISC_R_SUCCESS);
}
void
{
return;
}
}
case dns_c_zone_master:
break;
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
break;
case dns_c_zone_hint:
break;
case dns_c_zone_forward:
break;
}
}
{
char **p = NULL;
case dns_c_zone_master:
break;
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
break;
case dns_c_zone_hint:
break;
case dns_c_zone_forward:
dns_c_error(0, "Forward zones do not have a file field\n");
return (ISC_R_FAILURE);
}
if (*p != NULL) {
res = ISC_R_EXISTS;
} else {
res = ISC_R_SUCCESS;
}
if (*p == NULL) {
}
return (res);
}
{
dns_c_severity_t *p = NULL;
int bit = 0;
case dns_c_zone_master:
break;
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
break;
case dns_c_zone_hint:
break;
case dns_c_zone_forward:
break;
}
res = ISC_R_EXISTS;
} else {
res = ISC_R_SUCCESS;
}
*p = severity;
return (res);
}
{
dns_c_ipmatchlist_t **p = NULL;
case dns_c_zone_master:
break;
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
break;
case dns_c_zone_hint:
dns_c_error(0, "Hint zones do not have an allow_update field");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0,
"Forward zones do not have an allow_update field");
return (ISC_R_FAILURE);
}
res = ISC_R_EXISTS;
}
return (res);
}
{
dns_c_ipmatchlist_t **p = NULL;
case dns_c_zone_master:
break;
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
break;
case dns_c_zone_hint:
dns_c_error(0, "Hint zones do not have an allow_query field");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0,
"Forward zones do not have an allow_query field");
return (ISC_R_FAILURE);
}
res = ISC_R_EXISTS;
}
return (res);
}
{
dns_c_ipmatchlist_t **p = NULL;
case dns_c_zone_master:
break;
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
break;
case dns_c_zone_hint:
dns_c_error(0,
"Hint zones do not have an allow_transfer field");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0,
"Forward zones do not have an allow_transfer field");
return (ISC_R_FAILURE);
}
res = ISC_R_EXISTS;
}
return (res);
}
{
case dns_c_zone_master:
break;
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
break;
case dns_c_zone_hint:
dns_c_error(0, "Hint zones do not have a dialup field");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0, "Forward zones do not have a dialup field");
return (ISC_R_FAILURE);
}
}
{
case dns_c_zone_master:
break;
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
dns_c_error(0, "Stub zones do not have a notify field");
return (ISC_R_FAILURE);
case dns_c_zone_hint:
dns_c_error(0, "Hint zones do not have a notify field");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0, "Forward zones do not have a notify field");
return (ISC_R_FAILURE);
}
}
{
case dns_c_zone_master:
break;
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
dns_c_error(0, "Stub zones do not have a "
"maintain-xfer-base field");
return (ISC_R_FAILURE);
case dns_c_zone_hint:
dns_c_error(0, "Hint zones do not have a "
"maintain-xfer-base field");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0, "Forward zones do not have a "
"maintain-xfer-base field");
return (ISC_R_FAILURE);
}
}
{
dns_c_iplist_t **p = NULL;
case dns_c_zone_master:
break;
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
dns_c_error(0, "Stub zones do not have a also_notify field");
return (ISC_R_FAILURE);
case dns_c_zone_hint:
dns_c_error(0, "Hint zones do not have a also_notify field");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0,
"Forward zones do not have a also_notify field");
return (ISC_R_FAILURE);
}
res = ISC_R_EXISTS;
}
return (res);
}
{
char **p = NULL;
case dns_c_zone_master:
break;
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
dns_c_error(0, "Stub zones do not have a ixfr_base field\n");
return (ISC_R_FAILURE);
case dns_c_zone_hint:
dns_c_error(0, "Hint zones do not have a ixfr_base field\n");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0, "Forward zones do not have a file field\n");
return (ISC_R_FAILURE);
}
if (*p != NULL) {
} else {
}
if (*p == NULL) {
return (ISC_R_NOMEMORY);
}
}
{
char **p = NULL;
case dns_c_zone_master:
break;
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
dns_c_error(0, "Stub zones do not have a ixfr_tmp field\n");
return (ISC_R_FAILURE);
case dns_c_zone_hint:
dns_c_error(0, "Hint zones do not have a ixfr_tmp field\n");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0, "Forward zones do not have a file field\n");
return (ISC_R_FAILURE);
}
if (*p != NULL) {
} else {
}
if (*p == NULL) {
return (ISC_R_NOMEMORY);
}
}
{
dns_c_pubkey_t **p = NULL;
case dns_c_zone_master:
break;
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
break;
case dns_c_zone_hint:
dns_c_error(0, "Hint zones do not have a pubkey field\n");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0, "Forward zones do not have a pubkey field\n");
return (ISC_R_FAILURE);
}
if (*p != NULL) {
} else {
}
if (deepcopy) {
} else {
*p = pubkey;
res = ISC_R_SUCCESS;
}
res = ISC_R_EXISTS;
}
return (res);
}
{
case dns_c_zone_master:
dns_c_error(0,
"Forward zones do not have a master_port field\n");
return (ISC_R_FAILURE);
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
break;
case dns_c_zone_hint:
dns_c_error(0, "Hint zones do not have a master_port field\n");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0,
"Forward zones do not have a master_port field\n");
return (ISC_R_FAILURE);
}
}
{
dns_c_iplist_t **p;
case dns_c_zone_master:
dns_c_error(0, "Master zones do not have a master_ips field");
return (ISC_R_FAILURE);
case dns_c_zone_slave:
case dns_c_zone_stub:
} else {
}
res = ISC_R_EXISTS;
}
break;
case dns_c_zone_hint:
dns_c_error(0, "Hint zones do not have a master_ips field");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0, "Forward zones do not have a master_ips field");
return (ISC_R_FAILURE);
}
return (res);
}
{
case dns_c_zone_master:
dns_c_error(0,
"Master zones do not have a transfer_source field");
return (ISC_R_FAILURE);
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
break;
case dns_c_zone_hint:
dns_c_error(0, "Hint zones do not have a master_ips field");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0, "Forward zones do not have a master_ips field");
return (ISC_R_FAILURE);
}
}
{
case dns_c_zone_master:
dns_c_error(0,
"Master zones do not have a max_trans_time_in field");
return (ISC_R_FAILURE);
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
break;
case dns_c_zone_hint:
dns_c_error(0,
"Hint zones do not have a max_trans_time_in field");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0,
"Forward zones do not have a max_trans_time_in field");
return (ISC_R_FAILURE);
}
}
{
isc_int32_t *p = NULL;
int bit = 0;
case dns_c_zone_master:
break;
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
dns_c_error(0,
"Stub zones do not have a max-ixfr-log field\n");
return (ISC_R_FAILURE);
case dns_c_zone_hint:
dns_c_error(0,
"Hint zones do not have a max-ixfr-log field\n");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0,
"Forward zones do not have a max-ixfr-log field\n");
return (ISC_R_FAILURE);
}
res = ISC_R_EXISTS;
} else {
res = ISC_R_SUCCESS;
}
*p = newval;
return (res);
}
{
case dns_c_zone_master:
dns_c_error(0, "Master zones do not have a forward field");
return (ISC_R_FAILURE);
case dns_c_zone_slave:
dns_c_error(0, "Slave zones do not have a forward field");
return (ISC_R_FAILURE);
case dns_c_zone_stub:
dns_c_error(0, "Stub zones do not have a forward field");
return (ISC_R_FAILURE);
case dns_c_zone_hint:
dns_c_error(0, "Hint zones do not have a forward field");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
break;
}
}
{
dns_c_iplist_t **p = NULL;
case dns_c_zone_master:
dns_c_error(0, "Master zones do not have a forwarders field");
return (ISC_R_FAILURE);
case dns_c_zone_slave:
dns_c_error(0, "Slave zones do not have a forwarders field");
return (ISC_R_FAILURE);
case dns_c_zone_stub:
dns_c_error(0, "Stub zones do not have a forwarders field");
return (ISC_R_FAILURE);
case dns_c_zone_hint:
dns_c_error(0, "Hint zones do not have a forwarders field");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
break;
}
res = ISC_R_EXISTS;
}
return (res);
}
{
return (ISC_R_SUCCESS);
}
{
const char *p = NULL;
case dns_c_zone_master:
break;
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
break;
case dns_c_zone_hint:
break;
case dns_c_zone_forward:
dns_c_error(0, "Forward zones do not have a file field\n");
return (ISC_R_FAILURE);
}
if (p != NULL) {
*retval = p;
res = ISC_R_SUCCESS;
} else {
}
return (res);
}
{
dns_c_severity_t *p = NULL;
int bit = 0;
case dns_c_zone_master:
break;
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
break;
case dns_c_zone_hint:
break;
case dns_c_zone_forward:
break;
}
*retval = *p;
res = ISC_R_SUCCESS;
} else {
}
return (res);
}
{
dns_c_ipmatchlist_t *p = NULL;
case dns_c_zone_master:
break;
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
break;
case dns_c_zone_hint:
dns_c_error(0, "Hint zones do not have an allow_update field");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0,
"Forward zones do not have an allow_update field");
return (ISC_R_FAILURE);
}
if (p != NULL) {
*retval = p;
res = ISC_R_SUCCESS;
} else {
}
return (res);
}
{
dns_c_ipmatchlist_t *p = NULL;
case dns_c_zone_master:
break;
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
break;
case dns_c_zone_hint:
dns_c_error(0, "Hint zones do not have an allow_query field");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0,
"Forward zones do not have an allow_query field");
return (ISC_R_FAILURE);
}
if (p != NULL) {
*retval = p;
res = ISC_R_SUCCESS;
} else {
}
return (res);
}
{
dns_c_ipmatchlist_t *p = NULL;
case dns_c_zone_master:
break;
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
break;
case dns_c_zone_hint:
dns_c_error(0,
"Hint zones do not have an allow_transfer field");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0,
"Forward zones do not have an allow_transfere field");
return (ISC_R_FAILURE);
}
if (p != NULL) {
*retval = p;
res = ISC_R_SUCCESS;
} else {
}
return (res);
}
{
case dns_c_zone_master:
res = ISC_R_SUCCESS;
} else {
}
break;
case dns_c_zone_slave:
res = ISC_R_SUCCESS;
} else {
}
break;
case dns_c_zone_stub:
res = ISC_R_SUCCESS;
} else {
}
break;
case dns_c_zone_hint:
dns_c_error(0, "Hint zones do not have a dialup field");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0, "Forward zones do not have a dialup field");
return (ISC_R_FAILURE);
}
return (res);
}
{
int bit = 0;
case dns_c_zone_master:
bit = MZ_DIALUP_BIT;
break;
case dns_c_zone_slave:
bit = SZ_DIALUP_BIT;
break;
case dns_c_zone_stub:
dns_c_error(0, "Stub zones do not have a notify field");
return (ISC_R_FAILURE);
case dns_c_zone_hint:
dns_c_error(0, "Hint zones do not have a notify field");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0, "Forward zones do not have a notify field");
return (ISC_R_FAILURE);
}
res = ISC_R_SUCCESS;
} else {
}
return (res);
}
{
int bit = 0;
case dns_c_zone_master:
break;
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
dns_c_error(0, "Stub zones do not have a notify field");
return (ISC_R_FAILURE);
case dns_c_zone_hint:
dns_c_error(0, "Hint zones do not have a notify field");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0, "Forward zones do not have a notify field");
return (ISC_R_FAILURE);
}
res = ISC_R_SUCCESS;
} else {
}
return (res);
}
{
dns_c_iplist_t *p = NULL;
case dns_c_zone_master:
break;
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
dns_c_error(0, "Stub zones do not have a also_notify field");
return (ISC_R_FAILURE);
case dns_c_zone_hint:
dns_c_error(0, "Hint zones do not have a also_notify field");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0,
"Forward zones do not have a also_notify field");
return (ISC_R_FAILURE);
}
if (p != NULL) {
*retval = p;
res = ISC_R_SUCCESS;
} else {
}
return (res);
}
{
char *p = NULL;
case dns_c_zone_master:
break;
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
dns_c_error(0, "Stub zones do not have a ixfr_base field\n");
return (ISC_R_FAILURE);
case dns_c_zone_hint:
dns_c_error(0, "Hint zones do not have a ixfr_base field\n");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0, "Forward zones do not have a file field\n");
return (ISC_R_FAILURE);
}
if (p != NULL) {
*retval = p;
res = ISC_R_SUCCESS;
} else {
}
return (res);
}
{
char *p = NULL;
case dns_c_zone_master:
break;
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
dns_c_error(0, "Stub zones do not have a ixfr_tmp field\n");
return (ISC_R_FAILURE);
case dns_c_zone_hint:
dns_c_error(0, "Hint zones do not have a ixfr_tmp field\n");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0, "Forward zones do not have a file field\n");
return (ISC_R_FAILURE);
}
if (p != NULL) {
*retval = p;
res = ISC_R_SUCCESS;
} else {
}
return (res);
}
{
dns_c_pubkey_t *p = NULL;
case dns_c_zone_master:
break;
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
break;
case dns_c_zone_hint:
dns_c_error(0, "Hint zones do not have a pubkey field\n");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0, "Forward zones do not have a pubkey field\n");
return (ISC_R_FAILURE);
}
if (p != NULL) {
*retval = p;
res = ISC_R_SUCCESS;
} else {
}
return (res);
}
{
case dns_c_zone_master:
dns_c_error(0,
"Forward zones do not have a master_port field\n");
return (ISC_R_FAILURE);
case dns_c_zone_slave:
res = ISC_R_SUCCESS;
} else {
}
break;
case dns_c_zone_stub:
res = ISC_R_SUCCESS;
} else {
}
break;
case dns_c_zone_hint:
dns_c_error(0, "Hint zones do not have a master_port field\n");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0,
"Forward zones do not have a master_port field\n");
return (ISC_R_FAILURE);
}
return (res);
}
{
case dns_c_zone_master:
dns_c_error(0, "Master zones do not have a master_ips field");
return (ISC_R_FAILURE);
case dns_c_zone_slave:
res = ISC_R_SUCCESS;
} else {
}
break;
case dns_c_zone_stub:
res = ISC_R_SUCCESS;
} else {
}
break;
case dns_c_zone_hint:
dns_c_error(0, "Hint zones do not have a master_ips field");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0, "Forward zones do not have a master_ips field");
return (ISC_R_FAILURE);
}
return (res);
}
{
case dns_c_zone_master:
dns_c_error(0,
"Master zones do not have a transfer_source field");
return (ISC_R_FAILURE);
case dns_c_zone_slave:
res = ISC_R_SUCCESS;
} else {
}
break;
case dns_c_zone_stub:
res = ISC_R_SUCCESS;
} else {
}
break;
case dns_c_zone_hint:
dns_c_error(0, "Hint zones do not have a master_ips field");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0, "Forward zones do not have a master_ips field");
return (ISC_R_FAILURE);
}
return (res);
}
{
case dns_c_zone_master:
dns_c_error(0,
"Master zones do not have a max_trans_time_in field");
return (ISC_R_FAILURE);
case dns_c_zone_slave:
res = ISC_R_SUCCESS;
} else {
}
break;
case dns_c_zone_stub:
res = ISC_R_SUCCESS;
} else {
}
break;
case dns_c_zone_hint:
dns_c_error(0,
"Hint zones do not have a max_trans_time_in field");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0,
"Forward zones do not have a max_trans_time_in field");
return (ISC_R_FAILURE);
}
return (res);
}
{
int bit = 0;
case dns_c_zone_master:
break;
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
dns_c_error(0,
"Stub zones do not have a max_ixfr_log field");
return (ISC_R_FAILURE);
case dns_c_zone_hint:
dns_c_error(0,
"Hint zones do not have a max_ixfr_log field");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
dns_c_error(0,
"Forward zones do not have a max_ixfr_log field");
return (ISC_R_FAILURE);
}
res = ISC_R_SUCCESS;
} else {
}
return (res);
}
{
case dns_c_zone_master:
dns_c_error(0, "Master zones do not have a forward field");
return (ISC_R_FAILURE);
case dns_c_zone_slave:
dns_c_error(0, "Slave zones do not have a forward field");
return (ISC_R_FAILURE);
case dns_c_zone_stub:
dns_c_error(0, "Stub zones do not have a forward field");
return (ISC_R_FAILURE);
case dns_c_zone_hint:
dns_c_error(0, "Hint zones do not have a forward field");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
res = ISC_R_SUCCESS;
} else {
}
break;
}
return (res);
}
{
case dns_c_zone_master:
dns_c_error(0, "Master zones do not have a forwarders field");
return (ISC_R_FAILURE);
case dns_c_zone_slave:
dns_c_error(0, "Slave zones do not have a forwarders field");
return (ISC_R_FAILURE);
case dns_c_zone_stub:
dns_c_error(0, "Stub zones do not have a forwarders field");
return (ISC_R_FAILURE);
case dns_c_zone_hint:
dns_c_error(0, "Hint zones do not have a forwarders field");
return (ISC_R_FAILURE);
case dns_c_zone_forward:
res = ISC_R_SUCCESS;
} else {
}
break;
}
return (res);
}
/*
* Zone privates
*/
static void
{
}
ISC_TRUE));
}
}
mzone->allow_query);
}
}
}
}
}
}
}
}
}
static void
{
}
ISC_TRUE));
}
}
}
}
}
} else {
}
}
szone->allow_query);
}
}
}
}
}
}
}
}
static void
{
}
ISC_TRUE));
}
}
}
} else {
}
}
szone->allow_query);
}
}
}
}
}
}
static void
{
}
ISC_TRUE));
}
}
static void
{
ISC_TRUE));
}
}
fzone->forwarders);
}
}
static isc_result_t
{
return (ISC_R_SUCCESS);
}
static isc_result_t
{
return (ISC_R_SUCCESS);
}
static isc_result_t
{
return (ISC_R_SUCCESS);
}
static isc_result_t
{
return (ISC_R_SUCCESS);
}
static isc_result_t
{
return (ISC_R_SUCCESS);
}
static isc_result_t
{
dns_c_zone_t *z;
z = *zone;
switch(z->ztype) {
case dns_c_zone_master:
break;
case dns_c_zone_slave:
break;
case dns_c_zone_stub:
break;
case dns_c_zone_hint:
break;
case dns_c_zone_forward:
break;
}
return (res);
}
static isc_result_t
{
return (ISC_R_SUCCESS);
}
}
}
}
return (ISC_R_SUCCESS);
}
static isc_result_t
{
return (ISC_R_SUCCESS);
}
}
}
}
return (ISC_R_SUCCESS);
}
static isc_result_t
{
return (ISC_R_SUCCESS);
}
}
return (ISC_R_SUCCESS);
}
static isc_result_t
{
return (ISC_R_SUCCESS);
}
(void) mem; /* lint happiness */
return (ISC_R_SUCCESS);
}
static isc_result_t
{
return (ISC_R_SUCCESS);
}
}
return (ISC_R_SUCCESS);
}
/**************************************************/
static isc_result_t
{
if (res != ISC_R_SUCCESS) {
return (res);
}
}
if (deepcopy) {
} else {
res = ISC_R_SUCCESS;
}
return (res);
}
static isc_result_t
{
if (res != ISC_R_SUCCESS) {
return (res);
}
}
if (deepcopy) {
} else {
res = ISC_R_SUCCESS;
}
return (res);
}