naptr_35.c File Reference

#include <isc/regex.h>

Go to the source code of this file.

Defines

#define RRTYPE_NAPTR_ATTRIBUTES   (0)

Functions

static isc_result_t txt_valid_regex (const unsigned char *txt)
static isc_result_t fromtext_naptr (ARGS_FROMTEXT)
static isc_result_t totext_naptr (ARGS_TOTEXT)
static isc_result_t fromwire_naptr (ARGS_FROMWIRE)
static isc_result_t towire_naptr (ARGS_TOWIRE)
static int compare_naptr (ARGS_COMPARE)
static isc_result_t fromstruct_naptr (ARGS_FROMSTRUCT)
static isc_result_t tostruct_naptr (ARGS_TOSTRUCT)
static void freestruct_naptr (ARGS_FREESTRUCT)
static isc_result_t additionaldata_naptr (ARGS_ADDLDATA)
static isc_result_t digest_naptr (ARGS_DIGEST)
static isc_boolean_t checkowner_naptr (ARGS_CHECKOWNER)
static isc_boolean_t checknames_naptr (ARGS_CHECKNAMES)
static int casecompare_naptr (ARGS_COMPARE)


Define Documentation

#define RRTYPE_NAPTR_ATTRIBUTES   (0)

Definition at line 27 of file naptr_35.c.


Function Documentation

static isc_result_t txt_valid_regex ( const unsigned char *  txt  )  [inline, static]

Definition at line 36 of file naptr_35.c.

References DNS_R_SYNTAX, ISC_FALSE, ISC_R_SUCCESS, isc_regex_validate(), and ISC_TRUE.

Referenced by fromtext_naptr(), and fromwire_naptr().

static isc_result_t fromtext_naptr ( ARGS_FROMTEXT   )  [inline, static]

Definition at line 124 of file naptr_35.c.

References isc_tokenvalue_t::as_region, isc_tokenvalue_t::as_textregion, isc_tokenvalue_t::as_ulong, buffer, buffer_fromregion(), callbacks, dns_name_fromtext(), dns_name_init(), dns_rootname, isc_buffer_used, ISC_FALSE, isc_lex_getmastertoken(), ISC_R_RANGE, ISC_R_SUCCESS, isc_tokentype_number, isc_tokentype_qstring, isc_tokentype_string, name, origin, rdclass, REQUIRE, RETERR, RETTOK, token, txt_fromtext(), txt_valid_regex(), uint16_tobuffer(), UNUSED, and isc_token::value.

static isc_result_t totext_naptr ( ARGS_TOTEXT   )  [inline, static]

Definition at line 190 of file naptr_35.c.

References dns_name_fromregion(), dns_name_init(), dns_name_totext(), dns_rdata_toregion(), isc_region_consume, ISC_TRUE, name, name_prefix(), REQUIRE, RETERR, str_totext(), txt_totext(), and uint16_fromregion().

static isc_result_t fromwire_naptr ( ARGS_FROMWIRE   )  [inline, static]

Definition at line 251 of file naptr_35.c.

References isc_region::base, DNS_COMPRESS_NONE, dns_decompress_setmethods(), dns_name_fromwire(), dns_name_init(), isc_buffer_activeregion, isc_buffer_forward, isc_buffer_used, ISC_R_UNEXPECTEDEND, isc_region::length, mem_tobuffer(), name, rdclass, REQUIRE, RETERR, txt_fromwire(), txt_valid_regex(), and UNUSED.

static isc_result_t towire_naptr ( ARGS_TOWIRE   )  [inline, static]

Definition at line 298 of file naptr_35.c.

References isc_region::base, DNS_COMPRESS_NONE, dns_compress_setmethods(), dns_name_fromregion(), dns_name_init(), dns_name_towire(), dns_rdata_toregion(), isc_region_consume, mem_tobuffer(), name, REQUIRE, and RETERR.

static int compare_naptr ( ARGS_COMPARE   )  [inline, static]

Definition at line 341 of file naptr_35.c.

References isc_region::base, dns_name_fromregion(), dns_name_init(), dns_name_rdatacompare(), dns_rdata_toregion(), ISC_MIN, isc_region_consume, and REQUIRE.

Referenced by casecompare_naptr().

static isc_result_t fromstruct_naptr ( ARGS_FROMSTRUCT   )  [inline, static]

Definition at line 409 of file naptr_35.c.

References dns_name_toregion(), isc_buffer_copyregion(), mem_tobuffer(), rdclass, REQUIRE, RETERR, uint16_tobuffer(), uint8_tobuffer(), and UNUSED.

static isc_result_t tostruct_naptr ( ARGS_TOSTRUCT   )  [inline, static]

Definition at line 437 of file naptr_35.c.

References isc_region::base, cleanup(), dns_name_fromregion(), dns_name_init(), dns_rdata_toregion(), INSIST, ISC_LINK_INIT, isc_mem_free, ISC_R_NOMEMORY, ISC_R_SUCCESS, isc_region_consume, isc_region::length, mctx, mem_maybedup(), name, name_duporclone(), r, REQUIRE, uint16_fromregion(), and uint8_fromregion().

static void freestruct_naptr ( ARGS_FREESTRUCT   )  [inline, static]

Definition at line 507 of file naptr_35.c.

References dns_name_free(), isc_mem_free, and REQUIRE.

static isc_result_t additionaldata_naptr ( ARGS_ADDLDATA   )  [inline, static]

Definition at line 527 of file naptr_35.c.

References arg, isc_region::base, dns_name_fromregion(), dns_name_init(), dns_rdata_toregion(), ISC_R_SUCCESS, isc_region_consume, name, and REQUIRE.

static isc_result_t digest_naptr ( ARGS_DIGEST   )  [inline, static]

Definition at line 584 of file naptr_35.c.

References arg, isc_region::base, digest, dns_name_digest(), dns_name_fromregion(), dns_name_init(), dns_rdata_toregion(), ISC_R_SUCCESS, isc_region_consume, isc_region::length, name, r1, r2, and REQUIRE.

static isc_boolean_t checkowner_naptr ( ARGS_CHECKOWNER   )  [inline, static]

Definition at line 642 of file naptr_35.c.

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

static isc_boolean_t checknames_naptr ( ARGS_CHECKNAMES   )  [inline, static]

Definition at line 655 of file naptr_35.c.

References ISC_TRUE, REQUIRE, and UNUSED.

static int casecompare_naptr ( ARGS_COMPARE   )  [inline, static]

Definition at line 667 of file naptr_35.c.

References compare_naptr().


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