rootns.c File Reference

#include <config.h>
#include <isc/buffer.h>
#include <isc/string.h>
#include <isc/util.h>
#include <dns/callbacks.h>
#include <dns/db.h>
#include <dns/dbiterator.h>
#include <dns/fixedname.h>
#include <dns/log.h>
#include <dns/master.h>
#include <dns/rdata.h>
#include <dns/rdataset.h>
#include <dns/rdatasetiter.h>
#include <dns/rdatastruct.h>
#include <dns/rdatatype.h>
#include <dns/result.h>
#include <dns/rootns.h>
#include <dns/view.h>

Go to the source code of this file.

Functions

static isc_result_t in_rootns (dns_rdataset_t *rootns, dns_name_t *name)
static isc_result_t check_node (dns_rdataset_t *rootns, dns_name_t *name, dns_rdatasetiter_t *rdsiter)
static isc_result_t check_hints (dns_db_t *db)
isc_result_t dns_rootns_create (isc_mem_t *mctx, dns_rdataclass_t rdclass, const char *filename, dns_db_t **target)
static void report (dns_view_t *view, dns_name_t *name, isc_boolean_t missing, dns_rdata_t *rdata)
static isc_boolean_t inrrset (dns_rdataset_t *rrset, dns_rdata_t *rdata)
static void check_address_records (dns_view_t *view, dns_db_t *hints, dns_db_t *db, dns_name_t *name, isc_stdtime_t now)
void dns_root_checkhints (dns_view_t *view, dns_db_t *hints, dns_db_t *db)

Variables

static char root_ns []


Detailed Description

Definition in file rootns.c.


Function Documentation

static isc_result_t in_rootns ( dns_rdataset_t rootns,
dns_name_t name 
) [static]

Definition at line 87 of file rootns.c.

References dns_name_compare(), DNS_RDATA_INIT, dns_rdata_reset(), dns_rdata_tostruct(), dns_rdataset_current(), dns_rdataset_first(), dns_rdataset_isassociated(), dns_rdataset_next(), ISC_R_NOMORE, ISC_R_NOTFOUND, and ISC_R_SUCCESS.

Referenced by check_node(), and dns_root_checkhints().

static isc_result_t check_node ( dns_rdataset_t rootns,
dns_name_t name,
dns_rdatasetiter_t rdsiter 
) [static]

Definition at line 112 of file rootns.c.

References cleanup(), dns_name_compare(), dns_rdataset_disassociate(), dns_rdataset_init(), dns_rdataset_isassociated(), dns_rdatasetiter_current(), dns_rdatasetiter_first(), dns_rdatasetiter_next(), dns_rootname, in_rootns(), ISC_R_FAILURE, ISC_R_NOMORE, ISC_R_SUCCESS, and dns_rdataset::type.

Referenced by check_hints().

static isc_result_t check_hints ( dns_db_t db  )  [static]

Definition at line 148 of file rootns.c.

References check_node(), cleanup(), dns_db_allrdatasets(), dns_db_createiterator(), dns_db_detachnode(), dns_db_find(), dns_dbiterator_current(), dns_dbiterator_destroy(), dns_dbiterator_first(), dns_dbiterator_next(), dns_fixedname_init, dns_fixedname_name, dns_rdataset_disassociate(), dns_rdataset_init(), dns_rdataset_isassociated(), dns_rdatasetiter_destroy(), dns_rootname, ISC_R_NOMORE, ISC_R_SUCCESS, isc_stdtime_get(), name, and now.

Referenced by dns_rootns_create().

isc_result_t dns_rootns_create ( isc_mem_t mctx,
dns_rdataclass_t  rdclass,
const char *  filename,
dns_db_t **  target 
)

Definition at line 200 of file rootns.c.

References callbacks, check_hints(), dns_db_beginload(), dns_db_create(), dns_db_detach(), dns_db_endload(), dns_dbtype_zone, dns_lctx, DNS_LOGCATEGORY_GENERAL, DNS_LOGMODULE_HINTS, DNS_MASTER_HINT, dns_master_loadbuffer(), dns_master_loadfile(), DNS_R_SEENINCLUDE, dns_rdatacallbacks_init(), dns_rootname, isc_buffer_add, isc_buffer_init, ISC_LOG_ERROR, ISC_LOG_WARNING, isc_log_write(), ISC_R_NOTFOUND, ISC_R_SUCCESS, isc_result_totext(), dns_db::mctx, dns_db::origin, dns_db::rdclass, REQUIRE, and root_ns.

Referenced by configure_hint(), configure_hints(), and ns_server_create().

static void report ( dns_view_t view,
dns_name_t name,
isc_boolean_t  missing,
dns_rdata_t rdata 
) [static]

Definition at line 268 of file rootns.c.

References buffer, databuf, dns_lctx, DNS_LOGCATEGORY_GENERAL, DNS_LOGMODULE_HINTS, dns_name_format(), DNS_NAME_FORMATSIZE, dns_rdata_totext(), dns_rdatatype_format(), DNS_RDATATYPE_FORMATSIZE, isc_buffer_init, isc_buffer_usedlength, ISC_LOG_WARNING, isc_log_write(), ISC_R_SUCCESS, dns_view::name, namebuf, RUNTIME_CHECK, and dns_rdata::type.

Referenced by build_final_keylist(), check_address_records(), dns_dnssec_updatekeys(), mkdirpath(), publish_key(), remove_key(), and zone_from_args().

static isc_boolean_t inrrset ( dns_rdataset_t rrset,
dns_rdata_t rdata 
) [static]

Definition at line 305 of file rootns.c.

References dns_rdata_compare(), DNS_RDATA_INIT, dns_rdata_reset(), dns_rdataset_current(), dns_rdataset_first(), dns_rdataset_next(), ISC_FALSE, ISC_R_SUCCESS, and ISC_TRUE.

Referenced by check_address_records().

static void check_address_records ( dns_view_t view,
dns_db_t hints,
dns_db_t db,
dns_name_t name,
isc_stdtime_t  now 
) [static]

Definition at line 327 of file rootns.c.

References dns_db_find(), DNS_DBFIND_GLUEOK, dns_fixedname_init, dns_fixedname_name, DNS_R_GLUE, DNS_RDATA_INIT, dns_rdata_reset(), dns_rdataset_current(), dns_rdataset_disassociate(), dns_rdataset_first(), dns_rdataset_init(), dns_rdataset_isassociated(), dns_rdataset_next(), fixed, inrrset(), ISC_FALSE, ISC_R_NOTFOUND, ISC_R_SUCCESS, ISC_TRUE, and report().

Referenced by dns_root_checkhints().

void dns_root_checkhints ( dns_view_t view,
dns_db_t hints,
dns_db_t db 
)

Definition at line 427 of file rootns.c.

References check_address_records(), cleanup(), dns_db_find(), dns_fixedname_init, dns_fixedname_name, dns_lctx, DNS_LOGCATEGORY_GENERAL, DNS_LOGMODULE_HINTS, dns_name_format(), DNS_NAME_FORMATSIZE, DNS_RDATA_INIT, dns_rdata_reset(), dns_rdata_tostruct(), dns_rdataset_current(), dns_rdataset_disassociate(), dns_rdataset_first(), dns_rdataset_init(), dns_rdataset_isassociated(), dns_rdataset_next(), dns_result_totext(), dns_rootname, fixed, in_rootns(), ISC_LOG_WARNING, isc_log_write(), ISC_R_NOMORE, ISC_R_SUCCESS, isc_stdtime_get(), dns_view::name, name, namebuf, now, REQUIRE, and RUNTIME_CHECK.

Referenced by prime_done().


Variable Documentation

char root_ns[] [static]

Definition at line 44 of file rootns.c.

Referenced by dns_rootns_create().


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