zone.c revision a20e888bde4b307050d76e09266b2fb49f03bc30
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews * Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews * Copyright (C) 1999-2003 Internet Software Consortium.
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews * Permission to use, copy, modify, and distribute this software for any
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews * purpose with or without fee is hereby granted, provided that the above
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews * copyright notice and this permission notice appear in all copies.
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews * PERFORMANCE OF THIS SOFTWARE.
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews/* $Id: zone.c,v 1.443 2005/07/29 00:32:53 marka Exp $ */
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define ZONE_MAGIC ISC_MAGIC('Z', 'O', 'N', 'E')
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_ZONE_VALID(zone) ISC_MAGIC_VALID(zone, ZONE_MAGIC)
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define NOTIFY_MAGIC ISC_MAGIC('N', 't', 'f', 'y')
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_NOTIFY_VALID(notify) ISC_MAGIC_VALID(notify, NOTIFY_MAGIC)
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define STUB_MAGIC ISC_MAGIC('S', 't', 'u', 'b')
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_STUB_VALID(stub) ISC_MAGIC_VALID(stub, STUB_MAGIC)
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define ZONEMGR_MAGIC ISC_MAGIC('Z', 'm', 'g', 'r')
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_ZONEMGR_VALID(stub) ISC_MAGIC_VALID(stub, ZONEMGR_MAGIC)
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define LOAD_MAGIC ISC_MAGIC('L', 'o', 'a', 'd')
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_LOAD_VALID(load) ISC_MAGIC_VALID(load, LOAD_MAGIC)
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define FORWARD_MAGIC ISC_MAGIC('F', 'o', 'r', 'w')
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_FORWARD_VALID(load) ISC_MAGIC_VALID(load, FORWARD_MAGIC)
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_IO_VALID(load) ISC_MAGIC_VALID(load, IO_MAGIC)
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews * Ensure 'a' is at least 'min' but not more than 'max'.
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews (((a) < (min)) ? (min) : ((a) < (max) ? (a) : (max)))
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews * Default values.
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define MAX_XFER_TIME (2*3600) /*%< Documented default is 2 hours */
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_MAX_EXPIRE 14515200 /*%< 24 weeks */
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews do { (z)->locked = ISC_FALSE; UNLOCK(&(z)->lock); } while (0)
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define ZONEDB_INITLOCK(l) isc_rwlock_init((l), 0, 0)
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define ZONEDB_DESTROYLOCK(l) isc_rwlock_destroy(l)
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews /* Unlocked */
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews unsigned int magic;
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews /* Locked */
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews unsigned int irefs;
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews unsigned int flags;
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews unsigned int options;
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews unsigned int db_argc;
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews /* Access Control Lists */
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews * Zones in certain states such as "waiting for zone transfer"
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews * or "zone transfer in progress" are kept on per-state linked lists
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews * in the zone manager using the 'statelink' field. The 'statelist'
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews * field points at the list the zone is currently on. It the zone
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews * is not on any such list, statelist is NULL.
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews * Optional per-zone statistics counters (NULL if not present).
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_ZONE_FLAG(z,f) (ISC_TF(((z)->flags & (f)) != 0))
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_ZONE_SETFLAG(z,f) do { \
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews (z)->flags |= (f); \
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_ZONE_CLRFLAG(z,f) do { \
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews (z)->flags &= ~(f); \
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews /* XXX MPA these may need to go back into zone.h */
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_ZONEFLG_REFRESH 0x00000001U /*%< refresh check in progress */
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_ZONEFLG_NEEDDUMP 0x00000002U /*%< zone need consolidation */
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_ZONEFLG_USEVC 0x00000004U /*%< use tcp for refresh query */
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_ZONEFLG_DUMPING 0x00000008U /*%< a dump is in progress */
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_ZONEFLG_HASINCLUDE 0x00000010U /*%< $INCLUDE in zone file */
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_ZONEFLG_LOADED 0x00000020U /*%< database has loaded */
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_ZONEFLG_EXITING 0x00000040U /*%< zone is being destroyed */
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_ZONEFLG_EXPIRED 0x00000080U /*%< zone has expired */
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_ZONEFLG_NEEDREFRESH 0x00000100U /*%< refresh check needed */
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_ZONEFLG_UPTODATE 0x00000200U /*%< zone contents are
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews * uptodate */
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_ZONEFLG_NEEDNOTIFY 0x00000400U /*%< need to send out notify
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews * messages */
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_ZONEFLG_DIFFONRELOAD 0x00000800U /*%< generate a journal diff on
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_ZONEFLG_NOMASTERS 0x00001000U /*%< an attempt to refresh a
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews * zone with no masters
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews * occured */
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_ZONEFLG_LOADING 0x00002000U /*%< load from disk in progress*/
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_ZONEFLG_HAVETIMERS 0x00004000U /*%< timer values have been set
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews * from SOA (if not set, we
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews * are still using
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews * default timer values) */
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_ZONEFLG_FORCEXFER 0x00008000U /*%< Force a zone xfer */
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_ZONEFLAG_NOIXFR 0x00100000U /*%< IXFR failed, force AXFR */
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_ZONE_OPTION(z,o) (((z)->options & (o)) != 0)
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews/* Flags for zone_load() */
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews#define DNS_ZONELOADFLAG_NOSTAT 0x00000001U /* Do not stat() master files */
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews unsigned int magic;
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews /* Locked by rwlock. */
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews /* Configuration data. */
d76ed813a51465e5c47d521ab09ea20c06f1428dMark Andrews /* Locked by iolock */
struct dns_notify {
unsigned int magic;
unsigned int flags;
struct dns_stub {
unsigned int magic;
struct dns_load {
unsigned int magic;
struct dns_forward {
unsigned int magic;
void *callback_arg;
struct dns_io {
unsigned int magic;
unsigned int flags,
static isc_result_t
unsigned int *cnames);
const char *templat);
#define DNS_ZONE_JITTER_ADD(a, b, c) \
#define DNS_ZONE_TIME_ADD(a, b, c) \
return (ISC_R_NOMEMORY);
goto free_zone;
goto free_mutex;
#ifdef DNS_ZONE_CHECKLOCK
goto free_dblock;
goto free_erefs;
return (ISC_R_SUCCESS);
return (result);
== ISC_R_SUCCESS);
== ISC_R_SUCCESS);
goto nomem;
for (i = 0; i < dbargc; i++)
for (i = 0; i < dbargc; i++) {
goto nomem;
goto unlock;
for (i = 0; i < dbargc; i++) {
return (result);
return (result);
static isc_result_t
char *copy;
return (ISC_R_NOMEMORY);
return (ISC_R_SUCCESS);
return (result);
static isc_result_t
char *journal;
return (ISC_R_NOMEMORY);
return (result);
return (result);
static isc_boolean_t
static isc_result_t
goto cleanup;
goto cleanup;
goto cleanup;
goto cleanup;
goto cleanup;
goto cleanup;
&db);
goto cleanup;
goto cleanup;
goto cleanup;
return (result);
unsigned int options;
goto fail;
goto fail;
fail:
goto fail;
goto fail;
fail:
static isc_result_t
unsigned int options;
return (ISC_R_NOMEMORY);
goto cleanup;
goto cleanup;
return (result);
return (result);
return (result);
static isc_boolean_t
int level;
return (ISC_TRUE);
return (ISC_TRUE);
return (ISC_TRUE);
return (ISC_FALSE);
return (ISC_FALSE);
return (ISC_FALSE);
return (ISC_TRUE);
static isc_boolean_t
int level;
return (ISC_TRUE);
return (ISC_TRUE);
return (ISC_TRUE);
return (ISC_FALSE);
return (ISC_FALSE);
return (ISC_FALSE);
return (ISC_TRUE);
static isc_boolean_t
int level;
return (ISC_TRUE);
dns_rdataset_init(&a);
return (ISC_TRUE);
return (ISC_TRUE);
&a, &aaaa);
if (dns_rdataset_isassociated(&a))
return (answer);
const char *what;
if (dns_rdataset_isassociated(&a))
return (answer);
static isc_boolean_t
return (ISC_TRUE);
goto cleanup;
goto next;
goto checkmx;
goto checkmx;
goto checksrv;
goto next;
goto next;
next:
return (ok);
static isc_result_t
unsigned int soacount = 0;
unsigned int nscount = 0;
unsigned int cnames = 0;
goto cleanup;
goto cleanup;
goto cleanup;
&cnames);
case dns_zone_master:
case dns_zone_slave:
case dns_zone_stub:
if (nscount == 0) {
goto cleanup;
goto cleanup;
goto cleanup;
goto cleanup;
isc_time_t t;
goto cleanup;
zone,
sizeof(isc_event_t));
goto cleanup;
if (needdump)
return (result);
return (result);
static isc_boolean_t
return (ISC_TRUE);
return (ISC_FALSE);
static isc_boolean_t
int level;
return (ISC_TRUE);
return (ISC_TRUE);
namebuf);
return (ISC_FALSE);
namebuf);
return (ISC_FALSE);
return (ISC_FALSE);
return (ISC_TRUE);
static isc_result_t
unsigned int *cnames)
unsigned int count = 0;
unsigned int ccount = 0;
goto success;
goto invalidate_rdataset;
ccount++;
count++;
return (result);
static isc_result_t
unsigned int *soacount,
unsigned int count;
*soacount = 0;
*serial = 0;
*refresh = 0;
*retry = 0;
*expire = 0;
*minimum = 0;
goto invalidate_rdataset;
goto invalidate_rdataset;
count = 0;
count++;
if (count > 0) {
return (result);
static isc_result_t
unsigned int *cnames)
goto closeversion;
minimum);
return (answer);
unsigned int refs;
if (refs == 0) {
if (free_now)
if (free_needed)
if (value)
if (value)
return (ISC_R_SUCCESS);
return (ISC_R_SUCCESS);
return (ISC_R_SUCCESS);
return (ISC_R_SUCCESS);
return (ISC_R_SUCCESS);
return (ISC_R_SUCCESS);
if (count != 0) {
return (ISC_R_NOMEMORY);
return (ISC_R_SUCCESS);
return (result);
sizeof(dns_name_t));
if (count == 0)
goto unlock;
goto unlock;
goto unlock;
for (i = 0; i < count; i++)
goto unlock;
for (i = 0; i < count; i++)
for (i = 0; i < count; i++) {
sizeof(dns_name_t));
goto allocfail;
newname[i]);
for (i = 0; i < count; i++)
newname[i],
goto unlock;
return (result);
return (result);
static inline isc_boolean_t
if (!dumping) {
return (dumping);
case dns_zone_slave:
case dns_zone_stub:
case dns_zone_slave:
case dns_zone_stub:
case dns_zone_master:
case dns_zone_slave:
if (!dumping) {
case dns_zone_master:
case dns_zone_slave:
goto unlock;
goto unlock;
if (!dumping)
return (result);
if (!dumping)
return (result);
switch (tresult) {
case ISC_R_SUCCESS:
case ISC_R_NOSPACE:
case ISC_R_NOTFOUND:
if (again)
static isc_result_t
redo:
goto fail;
goto fail;
if (compact) {
fail:
if (again)
goto redo;
return (result);
static isc_result_t
return (DNS_R_NOTLOADED);
return (result);
static isc_boolean_t
return (ISC_TRUE);
return (ISC_TRUE);
return (ISC_FALSE);
static isc_boolean_t
return (ISC_FALSE);
case PF_INET:
case PF_INET6:
return (ISC_FALSE);
return (isself);
if (!locked)
if (!locked)
if (locked)
static isc_result_t
return (ISC_R_NOMEMORY);
return (ISC_R_SUCCESS);
unsigned int options;
goto destroy;
goto destroy;
static isc_result_t
isc_event_t *e;
if (e == NULL)
return (ISC_R_NOMEMORY);
isc_event_free(&e);
return (result);
int timeout;
goto cleanup;
goto cleanup;
addrbuf);
goto cleanup;
goto cleanup;
addrbuf);
case PF_INET:
case PF_INET6:
goto cleanup_key;
&new);
goto cleanup;
goto cleanup;
unsigned int flags = 0;
goto cleanup1;
goto cleanup2;
goto cleanup3;
goto cleanup3;
if (!loggednotify) {
serial);
goto cleanup3;
goto cleanup3;
if (!loggednotify) {
serial);
if (isqueued) {
static inline isc_result_t
goto fail;
goto fail;
goto fail;
&rdataset);
goto fail;
goto fail;
&rdataset);
goto fail;
goto fail;
goto fail;
return (ISC_R_SUCCESS);
fail:
return (result);
goto next_master;
goto same_master;
goto next_master;
goto next_master;
goto next_master;
goto same_master;
goto next_master;
goto next_master;
goto same_master;
goto next_master;
if (cnamecnt != 0) {
goto next_master;
if (nscnt == 0) {
goto next_master;
goto next_master;
goto free_stub;
if (!exiting &&
if (!done) {
goto free_stub;
goto free_stub;
goto done;
done:
goto same_master;
goto tcp_transfer;
goto next_master;
goto next_master;
goto next_master;
goto same_master;
goto tcp_transfer;
goto next_master;
goto tcp_transfer;
goto next_master;
goto same_master;
goto next_master;
if (cnamecnt != 0) {
goto next_master;
goto next_master;
goto next_master;
goto next_master;
goto next_master;
goto next_master;
&now);
&now);
goto next_master;
goto next_master;
goto detach;
if (!done) {
goto requeue;
goto detach;
goto detach;
isc_event_t *e;
if (e == NULL) {
isc_event_free(&e);
static inline isc_result_t
&message);
goto cleanup;
goto cleanup;
goto cleanup;
return (ISC_R_SUCCESS);
return (result);
static isc_result_t
goto cleanup;
goto cleanup;
goto cleanup;
== ISC_R_SUCCESS);
return (result);
int timeout;
goto cleanup;
goto cleanup;
udpsize =
case PF_INET:
goto skip_master;
} else if (!have_xfrsource)
case PF_INET6:
goto skip_master;
} else if (!have_xfrsource)
goto cleanup;
DNS_REQUESTOPT_TCP : 0;
goto cleanup;
if (cancel)
goto again;
goto cleanup;
int timeout;
goto cleanup;
goto cleanup;
&node);
goto cleanup;
goto cleanup;
udpsize =
case PF_INET:
else if (!have_xfrsource)
case PF_INET6:
else if (!have_xfrsource)
goto cleanup;
goto cleanup;
goto unlock;
if (linked) {
if (free_needed)
case dns_zone_master:
case dns_zone_slave:
case dns_zone_stub:
static isc_result_t
isc_region_t r;
&message);
return (result);
goto cleanup;
goto cleanup;
goto done;
goto soa_cleanup;
goto soa_cleanup;
goto soa_cleanup;
goto soa_cleanup;
goto soa_cleanup;
NULL);
goto soa_cleanup;
goto soa_cleanup;
goto soa_cleanup;
isc_buffer_usedregion(b, &r);
goto soa_cleanup;
goto soa_cleanup;
done:
return (ISC_R_SUCCESS);
return (result);
int match = 0;
return (DNS_R_FORMERR);
return (DNS_R_NOTIMP);
return (ISC_R_SUCCESS);
match > 0)
return (DNS_R_REFUSED);
&rdataset);
fromtext);
return (ISC_R_SUCCESS);
fromtext);
return (ISC_R_SUCCESS);
return (ISC_R_SUCCESS);
const char *fmt, ...)
int count = 0;
count++;
return (count);
if (idlein == 0)
return (result);
static isc_result_t
unsigned int soacount = 0;
unsigned int nscount = 0;
if (nscount == 0) {
return (result);
return (result);
goto fail;
goto fail;
goto fail;
if (dump)
switch (result) {
case ISC_R_SUCCESS:
case ISC_R_NOSPACE:
case ISC_R_NOTFOUND:
goto fail;
return (ISC_R_SUCCESS);
fail:
return (result);
unsigned int soacount;
unsigned int nscount;
switch (result) {
case ISC_R_SUCCESS:
case DNS_R_UPTODATE:
goto same_master;
nscount = 0;
soacount = 0;
if (nscount == 0) {
goto next_master;
sizeof(namebuf));
namebuf);
&now);
case DNS_R_BADIXFR:
goto same_master;
if (free_needed)
goto cleanup;
static isc_result_t
return (ISC_R_NOMORE);
case PF_INET:
case PF_INET6:
goto unlock;
return (result);
goto next_master;
goto next_master;
goto next_master;
case dns_rcode_noerror:
case dns_rcode_yxdomain:
case dns_rcode_yxrrset:
case dns_rcode_nxrrset:
case dns_rcode_refused:
case dns_rcode_nxdomain:
case dns_rcode_notzone:
case dns_rcode_notauth: {
goto next_master;
case dns_rcode_formerr:
case dns_rcode_servfail:
case dns_rcode_notimp:
case dns_rcode_badvers:
goto next_master;
return (ISC_R_NOMEMORY);
goto cleanup;
goto cleanup;
goto cleanup;
return (result);
return (ISC_R_NOMORE);
return (ISC_R_SUCCESS);
return (ISC_R_NOMORE);
return (ISC_R_SUCCESS);
return (ISC_R_NOMEMORY);
goto free_mem;
goto free_rwlock;
goto free_taskpool;
goto free_task;
goto free_rl;
return (ISC_R_SUCCESS);
return (result);
goto cleanup_task;
goto unlock;
return (result);
if (free_now)
if (free_now)
dns_zone_t *p;
p != NULL;
return (ISC_R_SUCCESS);
if (multi)
static isc_result_t
dns_zone_t *x;
isc_event_t *e;
x != NULL;
nxfrsin++;
nxfrsperns++;
return (ISC_R_QUOTA);
return (ISC_R_QUOTA);
sizeof(isc_event_t));
if (e == NULL)
return (ISC_R_NOMEMORY);
return (ISC_R_SUCCESS);
static isc_result_t
return (ISC_R_NOMEMORY);
return (ISC_R_NOMEMORY);
if (queue) {
if (!queue) {
return (ISC_R_SUCCESS);
if (send_event) {
char *buf;
int buflen;
goto cleanup;
goto cleanup;
if (value == 0)
ns = 0;
if (on) {
goto done;
goto done;
done:
return (result);
switch (dialup) {
case dns_dialuptype_no:
case dns_dialuptype_yes:
case dns_dialuptype_notify:
case dns_dialuptype_refresh:
case dns_dialuptype_passive:
INSIST(0);
return (result);
unsigned int count = 0;
switch (state) {
count++;
count++;
case DNS_ZONESTATE_SOAQUERY:
count++;
case DNS_ZONESTATE_ANY:
count++;
INSIST(0);
return (count);
return (ISC_R_SUCCESS);
if (!ok) {
if (fail)
return (DNS_R_BADOWNERNAME);
if (!ok) {
if (fail)
return (DNS_R_BADNAME);
return (ISC_R_SUCCESS);