named-checkzone.c revision a7038d1a0513c8e804937ebc95fc9cb3a46c04f5
/*
* Copyright (C) 1999-2002 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.
*/
/* $Id: named-checkzone.c,v 1.20 2002/02/20 03:32:53 marka Exp $ */
#include <config.h>
#include <stdlib.h>
#include <isc/commandline.h>
#include <dns/fixedname.h>
#include <dns/rdataclass.h>
#include <dns/rdataset.h>
#include "check-tool.h"
static int quiet = 0;
do { \
if (result != ISC_R_SUCCESS) { \
if (!quiet) \
return (result); \
} \
} while (0)
static void
usage(void) {
"usage: named-checkzone [-dqv] [-c class] zonename filename\n");
exit(1);
}
static void
destroy(void) {
}
int
int c;
char classname_in[] = "IN";
char *classname = classname_in;
switch (c) {
case 'c':
break;
case 'd':
debug++;
break;
case 'q':
quiet++;
break;
case 't':
if (result != ISC_R_SUCCESS) {
exit(1);
}
if (result != ISC_R_SUCCESS) {
exit(1);
}
break;
case 'v':
exit(0);
case 'w':
break;
default:
usage();
}
}
if (result != ISC_R_SUCCESS) {
exit(1);
}
}
usage();
if (!quiet) {
}
destroy();
}