/*
* Copyright (C) 1999-2002, 2004, 2005, 2007, 2009, 2012, 2014-2016 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id: zone_test.c,v 1.35 2009/09/02 23:48:01 tbox Exp $ */
#include <config.h>
#include <unistd.h>
#include <stdlib.h>
#include <isc/commandline.h>
#include <dns/fixedname.h>
#include <dns/rdataclass.h>
#include <dns/rdataset.h>
#ifdef ISC_PLATFORM_NEEDSYSSELECTH
#endif
static int debug = 0;
static int quiet = 0;
static int stats = 0;
do { \
if (result != ISC_R_SUCCESS) { \
return; \
} \
} while (0)
if (result != ISC_R_SUCCESS) { \
continue; \
} else \
(void)NULL
static void
usage(void) {
"usage: zone_test [-dqsSM] [-c class] [-f file] zone\n");
exit(1);
}
static void
if (debug)
(isc_textregion_t *)(void*)®ion);
if (zonetype == dns_zone_slave)
}
static void
char t[1000];
isc_region_t r;
isc_buffer_init(&text, t, sizeof(t));
&text);
isc_buffer_usedregion(&text, &r);
if (result == ISC_R_SUCCESS)
else
}
static void
query(void) {
char *s;
if (result != ISC_R_SUCCESS) {
return;
}
do {
break;
}
if (s != NULL)
*s = '\0';
if (s != NULL)
*s = '\0';
continue;
}
continue;
NULL /*vesion*/,
0 /*options*/,
0 /*time*/,
NULL /*nodep*/,
switch (result) {
case DNS_R_DELEGATION:
break;
case ISC_R_SUCCESS:
break;
default:
break;
}
if (dns_rdataset_isassociated(&sigset))
} while (1);
dns_db_detach(&db);
}
int
int c;
switch (c) {
case 'c':
break;
case 'd':
debug++;
break;
case 'f':
usage();
break;
case 'm':
exit(1);
}
break;
case 'q':
quiet++;
break;
case 's':
stats++;
break;
case 'S':
break;
case 'M':
break;
default:
usage();
}
}
usage();
&zonemgr) == ISC_R_SUCCESS);
query();
return (0);
}