check-tool.h File Reference

#include <isc/lang.h>
#include <isc/stdio.h>
#include <isc/types.h>
#include <dns/masterdump.h>
#include <dns/types.h>

Go to the source code of this file.

Functions

ISC_LANG_BEGINDECLS isc_result_t setup_logging (isc_mem_t *mctx, FILE *errout, isc_log_t **logp)
isc_result_t load_zone (isc_mem_t *mctx, const char *zonename, const char *filename, dns_masterformat_t fileformat, const char *classname, dns_ttl_t maxttl, dns_zone_t **zonep)
 load the zone
isc_result_t dump_zone (const char *zonename, dns_zone_t *zone, const char *filename, dns_masterformat_t fileformat, const dns_master_style_t *style, const isc_uint32_t rawversion)
 dump the zone

Variables

int debug
const char * journal
isc_boolean_t nomerge
isc_boolean_t docheckmx
isc_boolean_t docheckns
isc_boolean_t dochecksrv
unsigned int zone_options
unsigned int zone_options2


Detailed Description

Definition in file check-tool.h.


Function Documentation

ISC_LANG_BEGINDECLS isc_result_t setup_logging ( isc_mem_t mctx,
FILE *  errout,
isc_log_t **  logp 
)

Definition at line 558 of file check-tool.c.

References cfg_log_init(), dns_log_init(), dns_log_setcontext(), isc_logdestination::file, isc_log_create(), isc_log_createchannel(), ISC_LOG_DYNAMIC, isc_log_registercategories(), ISC_LOG_ROLLNEVER, isc_log_setcontext(), ISC_LOG_TOFILEDESC, isc_log_usechannel(), ISC_R_SUCCESS, isc_logfile::maximum_size, isc_logfile::name, RUNTIME_CHECK, isc_logfile::stream, and isc_logfile::versions.

Referenced by main().

isc_result_t load_zone ( isc_mem_t mctx,
const char *  zonename,
const char *  filename,
dns_masterformat_t  fileformat,
const char *  classname,
dns_ttl_t  maxttl,
dns_zone_t **  zonep 
)

load the zone

Definition at line 669 of file check-tool.c.

References isc_textregion::base, buffer, CHECK, check_ttls(), checkmx(), checkns(), checksrv(), cleanup(), dbtype, DE_CONST, debug, dns_fixedname_init, dns_fixedname_name, dns_masterformat_map, dns_name_fromtext(), dns_rdataclass_fromtext(), dns_rootname, dns_zone_create(), dns_zone_detach(), dns_zone_load(), dns_zone_master, dns_zone_setcheckmx(), dns_zone_setcheckns(), dns_zone_setchecksrv(), dns_zone_setclass(), dns_zone_setdbtype(), dns_zone_setfile2(), dns_zone_setjournal(), dns_zone_setmaxttl(), dns_zone_setoption(), dns_zone_setoption2(), dns_zone_setorigin(), dns_zone_settype(), DNS_ZONEOPT_NOMERGE, docheckmx, docheckns, dochecksrv, isc_buffer_add, isc_buffer_constinit, ISC_TRUE, journal, isc_textregion::length, nomerge, origin, rdclass, REQUIRE, zone, zone_options, and zone_options2.

Referenced by configure_zone(), and main().

isc_result_t dump_zone ( const char *  zonename,
dns_zone_t zone,
const char *  filename,
dns_masterformat_t  fileformat,
const dns_master_style_t style,
const isc_uint32_t  rawversion 
)

dump the zone

Definition at line 743 of file check-tool.c.

References debug, dns_masterformat_text, dns_zone_dumptostream3(), ISC_R_FAILURE, ISC_R_SUCCESS, isc_stdio_close(), isc_stdio_open(), and output().

Referenced by main().


Variable Documentation

int debug

Definition at line 93 of file check-tool.c.

Referenced by add_opt(), add_question(), addlookup(), bringup_timer(), cancel_all(), cancel_lookup(), check_for_more_data(), check_if_done(), check_next_lookup(), clear_query(), clone_lookup(), clone_server_list(), connect_done(), connect_timeout(), copy_server_list(), create_search_list(), dash_option(), destroy_libs(), destroy_lookup(), detailsection(), dighost_shutdown(), do_lookup(), dump_zone(), flush_server_list(), followup_lookup(), force_timeout(), insert_soa(), launch_next_query(), load_zone(), main(), make_empty_lookup(), make_server(), next_origin(), parse_args(), printmessage(), printsection(), recv_done(), requeue_lookup(), send_done(), send_tcp_connect(), send_udp(), setup_file_key(), setup_keyfile(), setup_keystr(), setup_libs(), setup_lookup(), setup_system(), setup_text_key(), start_lookup(), tcp_length_done(), and try_clear_lookup().

const char* journal

Definition at line 94 of file check-tool.c.

Referenced by default_journal(), dns_db_diffx(), ISC_LIST(), load_zone(), main(), synczone(), update_action(), zone_journal(), and zone_postload().

isc_boolean_t nomerge

Definition at line 95 of file check-tool.c.

Referenced by load_zone(), and main().

isc_boolean_t docheckmx

Definition at line 97 of file check-tool.c.

Referenced by load_zone(), and main().

isc_boolean_t docheckns

Definition at line 99 of file check-tool.c.

Referenced by load_zone(), and main().

isc_boolean_t dochecksrv

Definition at line 98 of file check-tool.c.

Referenced by load_zone(), and main().

unsigned int zone_options

Definition at line 104 of file check-tool.c.

Referenced by checkmx(), checksrv(), configure_zone(), load_zone(), and main().

unsigned int zone_options2

Definition at line 115 of file check-tool.c.

Referenced by configure_zone(), load_zone(), and main().


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