zoneconf.c revision 11156f82bab19b2e7f5d4df6184ae0c99518442f
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley * Copyright (C) 2004-2008 Internet Systems Consortium, Inc. ("ISC")
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley * Copyright (C) 1999-2003 Internet Software Consortium.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley * Permission to use, copy, modify, and/or distribute this software for any
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley * purpose with or without fee is hereby granted, provided that the above
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley * copyright notice and this permission notice appear in all copies.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
/* $Id: zoneconf.c,v 1.146 2008/05/21 23:47:00 tbox Exp $ */
#include <config.h>
} acl_type_t;
* library defaults defined in zone.c.
#define RETERR(x) do { \
return (_r); \
static isc_result_t
const char *aclname;
switch (acltype) {
case allow_notify:
case allow_query:
case allow_transfer:
case allow_update:
case allow_update_forwarding:
INSIST(0);
return (ISC_R_FAILURE);
goto parse_acl;
return (ISC_R_SUCCESS);
return (ISC_R_SUCCESS);
return (result);
return (ISC_R_SUCCESS);
static isc_result_t
return (ISC_R_SUCCESS);
return (result);
const char *str;
isc_buffer_t b;
INSIST(0);
INSIST(0);
goto cleanup;
goto cleanup;
goto cleanup;
INSIST(i < n);
n * sizeof(dns_rdatatype_t));
goto cleanup;
INSIST(i == n);
n, types);
goto cleanup;
return (result);
static inline dns_zonetype_t
static isc_result_t
char ***argvp, unsigned int n)
*argcp = n;
return (ISC_R_NOMEMORY);
return (result);
(*argvp)[n] = s;
return (ISC_R_SUCCESS);
static isc_result_t
switch (ztype) {
INSIST(0);
const char *zname;
char *cpval;
unsigned int dbargc;
char **dbargv;
int seconds;
return(ISC_R_NOMEMORY);
return (result);
return (result);
INSIST(0);
INSIST(0);
if (zonestats_on) {
INSIST(0);
return (result);
return (result);
value);
INSIST(0);
zname);
return (ISC_R_FAILURE);
INSIST(0);
INSIST(0);
INSIST(0);
switch (ztype) {
case dns_zone_slave:
case dns_zone_stub:
count = 0;
&count));
count);
return (ISC_R_SUCCESS);
const char *cfilename;
const char *zfilename;
return (ISC_FALSE);
return (ISC_FALSE);
return (ISC_TRUE);