rdatatype.h File Reference

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

Go to the source code of this file.

Defines

#define DNS_RDATATYPE_H   1
#define DNS_RDATATYPE_FORMATSIZE   sizeof("NSEC3PARAM")
 Minimum size of array to pass to dns_rdatatype_format(). May need to be adjusted if a new RR type with a very long name is defined.

Functions

ISC_LANG_BEGINDECLS isc_result_t dns_rdatatype_fromtext (dns_rdatatype_t *typep, isc_textregion_t *source)
 Convert the text 'source' refers to into a DNS rdata type.
isc_result_t dns_rdatatype_totext (dns_rdatatype_t type, isc_buffer_t *target)
 Put a textual representation of type 'type' into 'target'.
void dns_rdatatype_format (dns_rdatatype_t rdtype, char *array, unsigned int size)
 Format a human-readable representation of the type 'rdtype' into the character array 'array', which is of size 'size'. The resulting string is guaranteed to be null-terminated.


Detailed Description

Definition in file rdatatype.h.


Define Documentation

#define DNS_RDATATYPE_H   1

Definition at line 21 of file rdatatype.h.

#define DNS_RDATATYPE_FORMATSIZE   sizeof("NSEC3PARAM")

Minimum size of array to pass to dns_rdatatype_format(). May need to be adjusted if a new RR type with a very long name is defined.

Definition at line 74 of file rdatatype.h.

Referenced by answer_response(), cache_name(), deleterdataset(), diff_apply(), dns_badcache_print(), dns_sdlzssumatch(), dns_ssu_external_match(), dump_entry(), fctx_create(), load_text(), log_fetch(), log_query(), log_queryerror(), noanswer_response(), ns_client_aclmsg(), ns_client_dumprecursing(), ns_server_zonestatus(), printmessage(), printsection(), query_find(), recv_done(), report(), same_question(), trim_ns_ttl(), update_action(), validator_logcreate(), validator_logv(), view_find(), zone_postload(), and zone_rrset_check_dup().


Function Documentation

ISC_LANG_BEGINDECLS isc_result_t dns_rdatatype_fromtext ( dns_rdatatype_t typep,
isc_textregion_t source 
)

Convert the text 'source' refers to into a DNS rdata type.

Requires:

Returns:

Definition at line 1046 of file rdata.c.

References isc_textregion::base, DNS_R_UNKNOWN, hash, ISC_R_SUCCESS, and isc_textregion::length.

Referenced by addlookup(), check_orderent(), check_update_policy(), configure_zone_ssutable(), dash_option(), dns_sdb_putrr(), dns_sdlz_putrr(), fromtext_nsec(), fromtext_nsec3(), fromtext_nxt(), fromtext_rrsig(), fromtext_sig(), generate(), load_text(), make_prereq(), ns_config_gettype(), parse_args(), testtype(), and update_addordelete().

isc_result_t dns_rdatatype_totext ( dns_rdatatype_t  type,
isc_buffer_t target 
)

Put a textual representation of type 'type' into 'target'.

Requires:

Ensures, if the result is success: Returns:

Definition at line 1087 of file rdata.c.

References str_totext().

Referenced by check_ttls(), dns_rdatatype_format(), make_log_buf(), ncache_summary(), question_totext(), rdataset_totext(), say_message(), totext_nsec(), totext_nsec3(), totext_nxt(), totext_rrsig(), totext_sig(), and type_format().

void dns_rdatatype_format ( dns_rdatatype_t  rdtype,
char *  array,
unsigned int  size 
)

Format a human-readable representation of the type 'rdtype' into the character array 'array', which is of size 'size'. The resulting string is guaranteed to be null-terminated.

Definition at line 1096 of file rdata.c.

References dns_rdatatype_totext(), isc_buffer_availablelength, isc_buffer_init, isc_buffer_putuint8, ISC_R_NOSPACE, and ISC_R_SUCCESS.

Referenced by add_bad(), answer_response(), cache_name(), deleterdataset(), detailsection(), diff_apply(), dns_badcache_print(), dns_sdlzssumatch(), dns_ssu_external_match(), dump_entry(), fctx_create(), is_answeraddress_allowed(), is_answertarget_allowed(), load_text(), log_fetch(), log_query(), log_queryerror(), noanswer_response(), ns_client_aclmsg(), ns_client_dumprecursing(), ns_server_zonestatus(), pre_parse_args(), printmessage(), printsection(), query_find(), rdatasetstats_dump(), rdtypestat_dump(), recv_done(), report(), resquery_response(), same_question(), trim_ns_ttl(), update_action(), validator_logcreate(), validator_logv(), view_find(), zone_postload(), and zone_rrset_check_dup().


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