named-checkzone.c File Reference

#include <config.h>
#include <stdlib.h>
#include <isc/app.h>
#include <isc/commandline.h>
#include <isc/dir.h>
#include <isc/entropy.h>
#include <isc/hash.h>
#include <isc/log.h>
#include <isc/mem.h>
#include <isc/socket.h>
#include <isc/string.h>
#include <isc/task.h>
#include <isc/timer.h>
#include <isc/util.h>
#include <dns/db.h>
#include <dns/fixedname.h>
#include <dns/log.h>
#include <dns/master.h>
#include <dns/masterdump.h>
#include <dns/name.h>
#include <dns/rdataclass.h>
#include <dns/rdataset.h>
#include <dns/result.h>
#include <dns/types.h>
#include <dns/zone.h>
#include "check-tool.h"

Go to the source code of this file.


#define ERRRET(result, function)
#define PROGCMP(X)   (strcasecmp(prog_name, X) == 0 || strcasecmp(prog_name, X ".exe") == 0)
#define ARGCMP(X)   (strcmp(isc_commandline_argument, X) == 0)


enum  { progmode_check, progmode_compile }


usage (void)
static void destroy (void)
int main (int argc, char **argv)
 main processing routine


static int quiet = 0
static isc_mem_tmctx = NULL
static isc_entropy_tectx = NULL
dns_zone_tzone = NULL
dns_zonetype_t zonetype = dns_zone_master
static int dumpzone = 0
static const char * output_filename
static char * prog_name = NULL
static const dns_master_style_toutputstyle = NULL
static enum { ... }  progmode

Detailed Description

Definition in file named-checkzone.c.

Define Documentation

#define ERRRET ( result,
function   ) 


do { \
                if (result != ISC_R_SUCCESS) { \
                        if (!quiet) \
                                fprintf(stderr, "%s() returned %s\n", \
                                        function, dns_result_totext(result)); \
                        return (result); \
                } \
        } while (0)

Definition at line 64 of file named-checkzone.c.

#define PROGCMP (  )     (strcasecmp(prog_name, X) == 0 || strcasecmp(prog_name, X ".exe") == 0)

Referenced by main().

#define ARGCMP (  )     (strcmp(isc_commandline_argument, X) == 0)

Referenced by main().

Enumeration Type Documentation

anonymous enum


Definition at line 62 of file named-checkzone.c.

Function Documentation

static ISC_PLATFORM_NORETURN_PRE void usage ( void   )  [static]

Definition at line 75 of file named-checkzone.c.

References prog_name, progmode, and progmode_check.

static void destroy ( void   )  [static]

Definition at line 95 of file named-checkzone.c.

References dns_name_destroy(), dns_zone_detach(), and zone.

int main ( int  argc,
char **  argv 

main processing routine

Definition at line 103 of file named-checkzone.c.

References ARGCMP, debug, destroy(), dns_master_initrawheader(), dns_master_style_default, dns_master_style_full, dns_masterformat_map, dns_masterformat_raw, dns_masterformat_text, DNS_MASTERRAW_SOURCESERIALSET, DNS_NAME_MAXWIRE, dns_result_register(), dns_zone_setrawdata(), DNS_ZONEOPT2_CHECKTTL, DNS_ZONEOPT_CHECKDUPRR, DNS_ZONEOPT_CHECKDUPRRFAIL, DNS_ZONEOPT_CHECKINTEGRITY, DNS_ZONEOPT_CHECKMX, DNS_ZONEOPT_CHECKMXFAIL, DNS_ZONEOPT_CHECKNAMES, DNS_ZONEOPT_CHECKNAMESFAIL, DNS_ZONEOPT_CHECKNS, DNS_ZONEOPT_CHECKSIBLING, DNS_ZONEOPT_CHECKSPF, DNS_ZONEOPT_CHECKWILDCARD, DNS_ZONEOPT_FATALNS, DNS_ZONEOPT_IGNOREMXCNAME, DNS_ZONEOPT_IGNORESRVCNAME, DNS_ZONEOPT_WARNMXCNAME, DNS_ZONEOPT_WARNSRVCNAME, docheckmx, docheckns, dochecksrv, dump_zone(), dumpzone, dns_masterrawheader::flags, header, inputformat, INSIST, isc_commandline_argument, isc_commandline_errprint, isc_commandline_index, isc_commandline_option, isc_commandline_parse(), isc_dir_chdir(), isc_dir_chroot(), isc_entropy_create(), isc_entropy_detach(), ISC_FALSE, isc_hash_create(), isc_hash_destroy(), isc_log_destroy(), isc_mem_create(), isc_mem_destroy(), ISC_R_SUCCESS, isc_result_totext(), ISC_TRUE, journal, lctx, load_zone(), maxttl, nomerge, origin, output_filename, outputformat, prog_name, PROGCMP, progmode, progmode_check, progmode_compile, quiet, rawversion, RUNTIME_CHECK, serialnum, setup_logging(), snset, dns_masterrawheader::sourceserial, usage(), VERSION, zone, zone_options, and zone_options2.

Variable Documentation

int quiet = 0 [static]

Definition at line 53 of file named-checkzone.c.

Referenced by main(), and rndc_recvdone().

isc_mem_t* mctx = NULL [static]

Definition at line 54 of file named-checkzone.c.

isc_entropy_t* ectx = NULL [static]

Definition at line 55 of file named-checkzone.c.

dns_zone_t* zone = NULL

Definition at line 56 of file named-checkzone.c.

Referenced by ATF_TC_BODY(), auto_detach(), bind9_getaddresses(), check_viewconf(), destroy(), dns_dlz_writeablezone(), dns_nsec3_noexistnodata(), dns_test_makezone(), dns_view_find2(), dns_view_findzonecut2(), dns_zt_apply2(), forward_action(), forward_callback(), get_addr(), inc_stats(), isc_netscope_pton(), load_zone(), main(), ns_notify_start(), ns_update_start(), ns_xfr_start(), query_addadditional(), query_addadditional2(), query_addbestns(), query_find(), query_getdb(), query_getzonedb(), redirect2(), rpz_rrset_find(), token_addr(), and update_action().

dns_zonetype_t zonetype = dns_zone_master

Definition at line 57 of file named-checkzone.c.

Referenced by ns_server_zonestatus().

int dumpzone = 0 [static]

Definition at line 58 of file named-checkzone.c.

Referenced by main(), and nzf_append().

const char* output_filename [static]

Definition at line 59 of file named-checkzone.c.

Referenced by main().

char* prog_name = NULL [static]

Definition at line 60 of file named-checkzone.c.

Referenced by main(), and usage().

const dns_master_style_t* outputstyle = NULL [static]

Definition at line 61 of file named-checkzone.c.

enum { ... } progmode [static]

Referenced by main(), and usage().

Generated on Tue Apr 28 17:41:06 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha