server.c revision df7596a03eea7f1c2df89bd63d3bd4b73f274565
69e617cf887e3dd232dc47154a7d43f9698763afMark Andrews * Copyright (C) 1999-2001 Internet Software Consortium.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews * Permission to use, copy, modify, and distribute this software for any
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * purpose with or without fee is hereby granted, provided that the above
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * copyright notice and this permission notice appear in all copies.
69e617cf887e3dd232dc47154a7d43f9698763afMark Andrews * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
69e617cf887e3dd232dc47154a7d43f9698763afMark Andrews * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
69e617cf887e3dd232dc47154a7d43f9698763afMark Andrews * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
a0d411c05f12c36b298d811af3b4f2c9f08e86d4Mark Andrews * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
576009560152f135a54862c2d9620872b9434f60Evan Hunt * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
576009560152f135a54862c2d9620872b9434f60Evan Hunt * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
576009560152f135a54862c2d9620872b9434f60Evan Hunt * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
a0d411c05f12c36b298d811af3b4f2c9f08e86d4Mark Andrews * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
69e617cf887e3dd232dc47154a7d43f9698763afMark Andrews/* $Id: server.c,v 1.349 2001/10/08 07:46:06 marka Exp $ */
#include <stdlib.h>
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,
INSIST(0);
return (result);
static isc_result_t
return (result);
static isc_result_t
char *versiontext;
isc_region_t r;
return (result);
static isc_result_t
char *hostnametext;
isc_region_t r;
if (len == 0)
return (ISC_R_SUCCESS);
return (result);
static isc_result_t
static const char *authors[] = {
NULL,
return (ISC_R_SUCCESS);
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
if (p == NULL)
return (ISC_R_NOMEMORY);
return (ISC_R_SUCCESS);
static isc_result_t
if (p == NULL)
return (ISC_R_NOMEMORY);
return (ISC_R_SUCCESS);
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));
&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);