confzone.c revision 15a44745412679c30a6d022733925af70a38b715
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews * Copyright (C) 1999, 2000 Internet Software Consortium.
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews * Permission to use, copy, modify, and distribute this software for any
/* $Id: confzone.c,v 1.51 2000/07/27 09:47:14 tale Exp $ */
#include <config.h>
#include "confpvt.h"
#define MZ_CHECK_NAME_BIT 0
#define SZ_CHECK_NAME_BIT 0
#define TZ_CHECK_NAME_BIT 0
#define FZ_CHECK_NAME_BIT 0
#define HZ_CHECK_NAME_BIT 0
return (ISC_R_NOMEMORY);
return (ISC_R_SUCCESS);
return (res);
return (ISC_R_SUCCESS);
return (result);
return (res);
return (ISC_R_NOMEMORY);
return (ISC_R_SUCCESS);
return (res);
return (NULL);
return (NULL);
return (ISC_R_NOMEMORY);
switch (ztype) {
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
case dns_c_zone_forward:
return (ISC_R_SUCCESS);
return (res);
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
case dns_c_zone_forward:
&ssutable);
return (result);
return (ISC_R_SUCCESS);
return (ISC_R_SUCCESS);
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
if (p != NULL) {
*retval = p;
return (res);
char **p = NULL;
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
case dns_c_zone_forward:
return (ISC_R_FAILURE);
if (*p != NULL) {
if (*p == NULL) {
return (res);
const char *p = NULL;
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
case dns_c_zone_forward:
return (ISC_R_FAILURE);
if (p != NULL) {
*retval = p;
return (res);
int bit = 0;
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
case dns_c_zone_forward:
*p = severity;
return (res);
int bit = 0;
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
case dns_c_zone_forward:
*retval = *p;
return (res);
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
return (res);
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
if (p != NULL) {
return (res);
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
*p = ssu;
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
if (p != NULL) {
*retval = p;
return (res);
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
return (res);
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
if (p != NULL) {
return (res);
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
return (res);
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
if (p != NULL) {
return (res);
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
return (res);
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
return (ISC_R_FAILURE);
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
int bit = 0;
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
return (ISC_R_FAILURE);
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
return (res);
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
return (ISC_R_FAILURE);
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
return (res);
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
return (ISC_R_FAILURE);
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
if (p != NULL) {
return (res);
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
return (ISC_R_FAILURE);
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
int bit = 0;
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
return (ISC_R_FAILURE);
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
return (res);
char **p = NULL;
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
return (ISC_R_FAILURE);
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
if (*p != NULL) {
if (*p == NULL) {
return (ISC_R_NOMEMORY);
char *p = NULL;
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
return (ISC_R_FAILURE);
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
if (p != NULL) {
*retval = p;
return (res);
char **p = NULL;
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
return (ISC_R_FAILURE);
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
if (*p != NULL) {
if (*p == NULL) {
return (ISC_R_NOMEMORY);
char *p = NULL;
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
return (ISC_R_FAILURE);
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
if (p != NULL) {
*retval = p;
return (res);
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
if (*p == NULL) {
return (res);
return (res);
case dns_c_zone_master:
return (ISC_R_FAILURE);
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
case dns_c_zone_master:
return (ISC_R_FAILURE);
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
return (res);
dns_c_iplist_t **p;
case dns_c_zone_master:
return (ISC_R_FAILURE);
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
return (res);
case dns_c_zone_master:
return (ISC_R_FAILURE);
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
return (res);
case dns_c_zone_master:
return (ISC_R_FAILURE);
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
case dns_c_zone_master:
return (ISC_R_FAILURE);
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
return (res);
case dns_c_zone_master:
return (ISC_R_FAILURE);
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
case dns_c_zone_master:
return (ISC_R_FAILURE);
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
return (res);
case dns_c_zone_master:
return (ISC_R_FAILURE);
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
case dns_c_zone_master:
return (ISC_R_FAILURE);
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
return (res);
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
return (ISC_R_FAILURE);
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
return (ISC_R_FAILURE);
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
return (res);
case dns_c_zone_master:
return (ISC_R_FAILURE);
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
case dns_c_zone_master:
return (ISC_R_FAILURE);
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
return (res);
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
return (ISC_R_FAILURE);
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
return (ISC_R_FAILURE);
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
return (res);
case dns_c_zone_master:
case dns_c_zone_slave:
return (ISC_R_FAILURE);
case dns_c_zone_stub:
return (ISC_R_FAILURE);
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
case dns_c_zone_master:
case dns_c_zone_slave:
return (ISC_R_FAILURE);
case dns_c_zone_stub:
return (ISC_R_FAILURE);
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
return (res);
int bit = 0;
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
return (ISC_R_FAILURE);
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
*p = newval;
return (res);
int bit = 0;
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
return (ISC_R_FAILURE);
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
return (res);
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (res);
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (res);
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (res);
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
return (res);
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
if (p != NULL) {
return (res);
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
return (ISC_R_FAILURE);
case dns_c_zone_forward:
return (ISC_R_FAILURE);
if (*p != NULL) {
return (ISC_R_SUCCESS);
return (ISC_R_NOTFOUND);
return (ISC_R_NOMEMORY);
} else if (existed) {
return (ISC_R_EXISTS);
return (ISC_R_SUCCESS);
return (ISC_R_NOTFOUND);
return (ISC_R_SUCCESS);
return (ISC_R_NOTFOUND);
return (ISC_R_SUCCESS);
if (existed) {
return (ISC_R_EXISTS);
return (ISC_R_SUCCESS);
return (ISC_R_NOTFOUND);
return (ISC_R_SUCCESS);
return (ISC_R_NOTFOUND);
return (ISC_R_SUCCESS);
ISC_TRUE));
ISC_TRUE));
ISC_TRUE));
ISC_TRUE));
ISC_TRUE));
static isc_result_t
dns_c_zone_t *z;
z = *zone;
switch(z->ztype) {
case dns_c_zone_master:
case dns_c_zone_slave:
case dns_c_zone_stub:
case dns_c_zone_hint:
case dns_c_zone_forward:
z->magic = 0;
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);
return (ISC_R_SUCCESS);
static isc_result_t
return (ISC_R_SUCCESS);
return (ISC_R_SUCCESS);
static isc_result_t
return (res);
if (deepcopy) {
return (res);
static isc_result_t
return (res);
if (deepcopy) {
return (res);