zone2_test.c revision 3ddd814a97de1d152ba0913c592d6e6dc83d38a6
/*
* Copyright (C) 1999 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
* CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
* SOFTWARE.
*/
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <config.h>
#include <dns/confparser.h>
do { \
if (result != DNS_R_SUCCESS) { \
return; \
} \
} while (0)
if (result != DNS_R_SUCCESS) { \
continue; \
} else \
(void)NULL
static void
char t[1000];
isc_region_t r;
&text);
isc_buffer_used(&text, &r);
if (result == DNS_R_SUCCESS)
else
}
static void
char buf[1024];
char *s;
int reload = 0;
do {
break;
}
if (s != NULL)
*s = '\0';
if (s != NULL)
*s = '\0';
reload = 0;
continue;
}
break;
reload = 1;
continue;
}
reload = 0;
continue;
}
if (reload) {
&zone);
if (result != DNS_R_SUCCESS) {
if (result == DNS_R_PARTIALMATCH)
reload = 0;
continue;
}
reload = 0;
} else {
dns_rdatatype_a, 0, 0,
switch (result) {
case DNS_R_SUCCESS:
&rdataset);
break;
default:
continue;
}
}
} while (1);
}
int
char *conf = "named.conf";
int c;
char *dir;
switch (c) {
case 'c':
break;
case 'q':
quiet = 1;
break;
case 's':
stats = 1;
break;
default:
break;
}
}
#if 0
#endif
/*
RUNTIME_CHECK(dns_view_create(mctx, dns_rdataclass_in,
RUNTIME_CHECK(dns_view_create(mctx, dns_rdataclass_in,
*/
}
/* mv new ->old */
/*
view = ISC_LIST_HEAD(cba.newviews);
while (view != NULL) {
dns_view_t *next;
next = ISC_LIST_NEXT(view, link);
ISC_LIST_UNLINK(cba.newviews, view, link);
ISC_LIST_APPEND(cba.oldviews, view, link);
view = next;
}
*/
if (result == DNS_R_SUCCESS) {
if (result == DNS_R_SUCCESS)
}
} else {
}
}
/* cleanup */
}
}
exit(0);
}