mx_15.c File Reference

#include <string.h>
#include <isc/net.h>

Go to the source code of this file.

Defines

#define RRTYPE_MX_ATTRIBUTES   (0)

Functions

static isc_boolean_t check_mx (isc_token_t *token)
static isc_result_t fromtext_mx (ARGS_FROMTEXT)
static isc_result_t totext_mx (ARGS_TOTEXT)
static isc_result_t fromwire_mx (ARGS_FROMWIRE)
static isc_result_t towire_mx (ARGS_TOWIRE)
static int compare_mx (ARGS_COMPARE)
static isc_result_t fromstruct_mx (ARGS_FROMSTRUCT)
static isc_result_t tostruct_mx (ARGS_TOSTRUCT)
static void freestruct_mx (ARGS_FREESTRUCT)
static isc_result_t additionaldata_mx (ARGS_ADDLDATA)
static isc_result_t digest_mx (ARGS_DIGEST)
static isc_boolean_t checkowner_mx (ARGS_CHECKOWNER)
static isc_boolean_t checknames_mx (ARGS_CHECKNAMES)
static int casecompare_mx (ARGS_COMPARE)


Define Documentation

#define RRTYPE_MX_ATTRIBUTES   (0)

Definition at line 29 of file mx_15.c.


Function Documentation

static isc_boolean_t check_mx ( isc_token_t token  )  [static]

Definition at line 32 of file mx_15.c.

References AF_INET6, DNS_AS_STR, inet_aton, ISC_FALSE, and ISC_TRUE.

Referenced by fromtext_mx(), and update_action().

static isc_result_t fromtext_mx ( ARGS_FROMTEXT   )  [inline, static]

Definition at line 50 of file mx_15.c.

References isc_tokenvalue_t::as_region, isc_tokenvalue_t::as_ulong, buffer, buffer_fromregion(), callbacks, check_mx(), dns_name_fromtext(), dns_name_init(), dns_name_ishostname(), DNS_R_BADNAME, DNS_R_MXISADDRESS, DNS_RDATA_CHECKMX, DNS_RDATA_CHECKMXFAIL, DNS_RDATA_CHECKNAMES, DNS_RDATA_CHECKNAMESFAIL, dns_rootname, ISC_FALSE, isc_lex_getmastertoken(), ISC_R_RANGE, ISC_R_SUCCESS, isc_tokentype_number, isc_tokentype_string, ISC_TRUE, name, origin, rdclass, REQUIRE, RETERR, RETTOK, token, uint16_tobuffer(), UNUSED, isc_token::value, warn_badmx(), and warn_badname().

static isc_result_t totext_mx ( ARGS_TOTEXT   )  [inline, static]

Definition at line 93 of file mx_15.c.

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

static isc_result_t fromwire_mx ( ARGS_FROMWIRE   )  [inline, static]

Definition at line 121 of file mx_15.c.

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

static isc_result_t towire_mx ( ARGS_TOWIRE   )  [inline, static]

Definition at line 143 of file mx_15.c.

References isc_region::base, DNS_COMPRESS_GLOBAL14, 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_mx ( ARGS_COMPARE   )  [inline, static]

Definition at line 164 of file mx_15.c.

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

Referenced by casecompare_mx().

static isc_result_t fromstruct_mx ( ARGS_FROMSTRUCT   )  [inline, static]

Definition at line 197 of file mx_15.c.

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

static isc_result_t tostruct_mx ( ARGS_TOSTRUCT   )  [inline, static]

Definition at line 215 of file mx_15.c.

References dns_name_fromregion(), dns_name_init(), dns_rdata_toregion(), ISC_LINK_INIT, ISC_R_SUCCESS, isc_region_consume, mctx, name, name_duporclone(), REQUIRE, RETERR, and uint16_fromregion().

static void freestruct_mx ( ARGS_FREESTRUCT   )  [inline, static]

Definition at line 240 of file mx_15.c.

References dns_name_free(), and REQUIRE.

static isc_result_t additionaldata_mx ( ARGS_ADDLDATA   )  [inline, static]

Definition at line 254 of file mx_15.c.

References arg, dns_name_fromregion(), dns_name_init(), dns_rdata_toregion(), isc_region_consume, name, and REQUIRE.

static isc_result_t digest_mx ( ARGS_DIGEST   )  [inline, static]

Definition at line 270 of file mx_15.c.

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

static isc_boolean_t checkowner_mx ( ARGS_CHECKOWNER   )  [inline, static]

Definition at line 287 of file mx_15.c.

References dns_name_ishostname(), name, rdclass, REQUIRE, and UNUSED.

static isc_boolean_t checknames_mx ( ARGS_CHECKNAMES   )  [inline, static]

Definition at line 298 of file mx_15.c.

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

static int casecompare_mx ( ARGS_COMPARE   )  [inline, static]

Definition at line 319 of file mx_15.c.

References compare_mx().


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