soa_6.c File Reference

Go to the source code of this file.

Defines

#define RRTYPE_SOA_ATTRIBUTES   (DNS_RDATATYPEATTR_SINGLETON)

Functions

static isc_result_t fromtext_soa (ARGS_FROMTEXT)
static isc_result_t totext_soa (ARGS_TOTEXT)
static isc_result_t fromwire_soa (ARGS_FROMWIRE)
static isc_result_t towire_soa (ARGS_TOWIRE)
static int compare_soa (ARGS_COMPARE)
static isc_result_t fromstruct_soa (ARGS_FROMSTRUCT)
static isc_result_t tostruct_soa (ARGS_TOSTRUCT)
static void freestruct_soa (ARGS_FREESTRUCT)
static isc_result_t additionaldata_soa (ARGS_ADDLDATA)
static isc_result_t digest_soa (ARGS_DIGEST)
static isc_boolean_t checkowner_soa (ARGS_CHECKOWNER)
static isc_boolean_t checknames_soa (ARGS_CHECKNAMES)
static int casecompare_soa (ARGS_COMPARE)

Variables

static const char * soa_fieldnames [5]


Define Documentation

#define RRTYPE_SOA_ATTRIBUTES   (DNS_RDATATYPEATTR_SINGLETON)

Definition at line 25 of file soa_6.c.


Function Documentation

static isc_result_t fromtext_soa ( ARGS_FROMTEXT   )  [inline, static]

Definition at line 28 of file soa_6.c.

References isc_tokenvalue_t::as_region, isc_tokenvalue_t::as_textregion, isc_tokenvalue_t::as_ulong, buffer, buffer_fromregion(), callbacks, dns_counter_fromtext(), dns_name_fromtext(), dns_name_init(), dns_name_ishostname(), dns_name_ismailbox(), DNS_R_BADNAME, DNS_RDATA_CHECKNAMES, DNS_RDATA_CHECKNAMESFAIL, dns_rootname, ISC_FALSE, isc_lex_getmastertoken(), ISC_R_SUCCESS, isc_tokentype_number, isc_tokentype_string, ISC_TRUE, name, origin, rdclass, REQUIRE, RETERR, RETTOK, token, uint32_tobuffer(), UNUSED, isc_token::value, and warn_badname().

static isc_result_t totext_soa ( ARGS_TOTEXT   )  [inline, static]

Definition at line 90 of file soa_6.c.

References dns_name_fromregion(), dns_name_init(), dns_name_totext(), dns_rdata_toregion(), DNS_STYLEFLAG_MULTILINE, DNS_STYLEFLAG_RRCOMMENT, dns_ttl_totext(), ISC_FALSE, ISC_R_SUCCESS, isc_region_consume, ISC_TF, ISC_TRUE, multiline, name_length(), name_prefix(), REQUIRE, RETERR, soa_fieldnames, str_totext(), and uint32_fromregion().

static isc_result_t fromwire_soa ( ARGS_FROMWIRE   )  [inline, static]

Definition at line 162 of file soa_6.c.

References isc_region::base, DNS_COMPRESS_GLOBAL14, dns_decompress_setmethods(), dns_name_fromwire(), dns_name_init(), isc_buffer_activeregion, isc_buffer_add, isc_buffer_availableregion, isc_buffer_forward, ISC_R_NOSPACE, ISC_R_SUCCESS, ISC_R_UNEXPECTEDEND, isc_region::length, rdclass, REQUIRE, RETERR, and UNUSED.

static isc_result_t towire_soa ( ARGS_TOWIRE   )  [inline, static]

Definition at line 197 of file soa_6.c.

References isc_region::base, DNS_COMPRESS_GLOBAL14, dns_compress_setmethods(), dns_name_fromregion(), dns_name_init(), dns_name_towire(), dns_rdata_toregion(), isc_buffer_add, isc_buffer_availableregion, ISC_R_NOSPACE, ISC_R_SUCCESS, isc_region_consume, isc_region::length, name_length(), REQUIRE, and RETERR.

static int compare_soa ( ARGS_COMPARE   )  [inline, static]

Definition at line 233 of file soa_6.c.

References dns_name_fromregion(), dns_name_init(), dns_name_rdatacompare(), dns_rdata_toregion(), isc_region_compare(), isc_region_consume, name_length(), and REQUIRE.

Referenced by casecompare_soa().

static isc_result_t fromstruct_soa ( ARGS_FROMSTRUCT   )  [inline, static]

Definition at line 279 of file soa_6.c.

References dns_name_toregion(), isc_buffer_copyregion(), rdclass, REQUIRE, RETERR, uint32_tobuffer(), and UNUSED.

static isc_result_t tostruct_soa ( ARGS_TOSTRUCT   )  [inline, static]

Definition at line 303 of file soa_6.c.

References cleanup(), dns_name_free(), dns_name_fromregion(), dns_name_init(), dns_rdata_toregion(), ISC_LINK_INIT, ISC_R_NOMEMORY, ISC_R_SUCCESS, isc_region_consume, mctx, name, name_duporclone(), name_length(), REQUIRE, RETERR, and uint32_fromregion().

static void freestruct_soa ( ARGS_FREESTRUCT   )  [inline, static]

Definition at line 357 of file soa_6.c.

References dns_name_free(), and REQUIRE.

static isc_result_t additionaldata_soa ( ARGS_ADDLDATA   )  [inline, static]

Definition at line 372 of file soa_6.c.

References arg, ISC_R_SUCCESS, REQUIRE, and UNUSED.

static isc_result_t digest_soa ( ARGS_DIGEST   )  [inline, static]

Definition at line 383 of file soa_6.c.

References arg, digest, dns_name_digest(), dns_name_fromregion(), dns_name_init(), dns_rdata_toregion(), isc_region_consume, name, name_length(), r, REQUIRE, and RETERR.

static isc_boolean_t checkowner_soa ( ARGS_CHECKOWNER   )  [inline, static]

Definition at line 405 of file soa_6.c.

References ISC_TRUE, name, rdclass, REQUIRE, and UNUSED.

static isc_boolean_t checknames_soa ( ARGS_CHECKNAMES   )  [inline, static]

Definition at line 418 of file soa_6.c.

References dns_name_clone(), dns_name_fromregion(), dns_name_init(), dns_name_ishostname(), dns_name_ismailbox(), dns_rdata_toregion(), ISC_FALSE, isc_region_consume, ISC_TRUE, name, name_length(), REQUIRE, and UNUSED.

static int casecompare_soa ( ARGS_COMPARE   )  [inline, static]

Definition at line 445 of file soa_6.c.

References compare_soa().


Variable Documentation

const char* soa_fieldnames[5] [static]

Initial value:

 {
        "serial", "refresh", "retry", "expire", "minimum"
}

Definition at line 85 of file soa_6.c.

Referenced by totext_soa().


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