server.c revision d2e371201c683867029675d9a6f0c4e515d15c23
94315060c2b0d9deafabe72d6a0482405fd9d377Evan Hunt * Copyright (C) 1999-2001 Internet Software Consortium.
94315060c2b0d9deafabe72d6a0482405fd9d377Evan Hunt * Permission to use, copy, modify, and distribute this software for any
94315060c2b0d9deafabe72d6a0482405fd9d377Evan Hunt * purpose with or without fee is hereby granted, provided that the above
94315060c2b0d9deafabe72d6a0482405fd9d377Evan Hunt * copyright notice and this permission notice appear in all copies.
94315060c2b0d9deafabe72d6a0482405fd9d377Evan Hunt * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
94315060c2b0d9deafabe72d6a0482405fd9d377Evan Hunt * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
94315060c2b0d9deafabe72d6a0482405fd9d377Evan Hunt * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
94315060c2b0d9deafabe72d6a0482405fd9d377Evan Hunt * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
94315060c2b0d9deafabe72d6a0482405fd9d377Evan Hunt * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
94315060c2b0d9deafabe72d6a0482405fd9d377Evan Hunt * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
94315060c2b0d9deafabe72d6a0482405fd9d377Evan Hunt * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
94315060c2b0d9deafabe72d6a0482405fd9d377Evan Hunt * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
94315060c2b0d9deafabe72d6a0482405fd9d377Evan Hunt/* $Id: server.c,v 1.363 2001/11/20 22:30:35 gson Exp $ */
goto cleanup; \
static isc_result_t
static isc_result_t
static isc_result_t
static isc_result_t
static isc_result_t
return (ISC_R_SUCCESS);
return (result);
static isc_result_t
isc_region_t r;
&viewclass));
NULL));
return (ISC_R_SUCCESS);
return (result);
static isc_result_t
return (result);
static isc_result_t
switch (af) {
case AF_INET:
case AF_INET6:
INSIST(0);
switch (af) {
case AF_INET:
case AF_INET6:
INSIST(0);
return (ISC_R_SUCCESS);
attrs = 0;
switch (af) {
case AF_INET:
case AF_INET6:
attrmask = 0;
return (result);
return (ISC_R_SUCCESS);
static isc_result_t
char *str;
return (result);
INSIST(0);
goto cleanup;
return (ISC_R_SUCCESS);
return (result);
static isc_result_t
char *str;
actx));
&pview);
goto cleanup;
if (!reused_cache)
value);
goto cleanup;
0, ns_g_dispatchmgr,
max_adb_size = 0;
if (max_cache_size != 0) {
if (max_adb_size == 0)
if (need_hints)
INSIST(0);
return (result);
static isc_result_t
return (result);
static isc_result_t
return (ISC_R_RANGE);
goto cleanup;
INSIST(0);
goto cleanup;
return (result);
static isc_result_t
const char *viewname;
&viewclass);
return (ISC_R_EXISTS);
return (result);
return (result);
return (ISC_R_SUCCESS);
static isc_result_t
const char *zname;
const char *ztypestr;
goto cleanup;
return (ISC_R_FAILURE);
zname);
goto cleanup;
zname);
goto cleanup;
goto cleanup;
goto cleanup;
&pview);
goto cleanup;
goto cleanup;
forwardtype));
return (result);
static isc_result_t
char *directory;
return (result);
return (ISC_R_SUCCESS);
static isc_result_t
char *copy;
return (ISC_R_NOMEMORY);
return (ISC_R_SUCCESS);
static isc_result_t
char *resource;
static isc_result_t
if (first_time) {
&ns_g_defaults) ==
filename);
&config);
* option where the above parsing failed, parse resolv.conf.
if (ns_g_lwresdonly &&
&config);
if (ns_g_port != 0)
&listenon);
} else if (!ns_g_lwresdonly) {
listenon);
&listenon);
} else if (!ns_g_lwresdonly) {
listenon);
if (interface_interval == 0) {
if (heartbeat_interval == 0) {
&aclconfctx),
if (first_time) {
if (first_time)
* files specified in named.conf get created by the
if (ns_g_logstderr) {
if (first_time) {
char *str;
else if (ns_g_lwresdonly)
return (result);
static isc_result_t
return (result);
static isc_result_t
return (result);
if (ns_g_lwresdonly)
ISC_TRUE),
if (flush)
sizeof(isc_event_t));
static isc_result_t
return (result);
cleanup: ;
cleanup: ;
char *res;
return (res);
static isc_result_t
const char *zonetxt;
char *classtxt;
return (ISC_R_UNEXPECTEDEND);
return (ISC_R_SUCCESS);
goto fail1;
goto fail1;
goto fail1;
goto fail2;
return (result);
return (result);
return (ISC_R_UNEXPECTEDEND);
return (result);
return (result);
return (ISC_R_SUCCESS);
return (ISC_R_SUCCESS);
return (result);
return (ISC_R_UNEXPECTEDEND);
return (ISC_R_SUCCESS);
return (ISC_R_SUCCESS);
static isc_result_t
return (result);
goto cleanup;
return (ISC_R_SUCCESS);
return (result);
static isc_result_t
if (ns_g_port != 0) {
return (result);
return (ISC_R_RANGE);
return (result);
return (result);
return (ISC_R_SUCCESS);
int ncounters;
for (i = 0; i < ncounters; i++)
char *viewname;
for (i = 0; i < ncounters; i++) {
zonestats[i],
zonename);
return (result);
return (result);
char *ptr;
char *levelstr;
char *endp;
long newlevel;
return (ISC_R_UNEXPECTEDEND);
return (ISC_R_RANGE);
return (ISC_R_SUCCESS);
return (ISC_R_UNEXPECTEDEND);
goto out;
if (flushed)
out:
return (result);
return (ISC_R_NOSPACE);
return (ISC_R_SUCCESS);