rdataclass.h File Reference

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

Go to the source code of this file.

Defines

#define DNS_RDATACLASS_H   1
#define DNS_RDATACLASS_FORMATSIZE   sizeof("CLASS65535")
 Minimum size of array to pass to dns_rdataclass_format().

Functions

ISC_LANG_BEGINDECLS isc_result_t dns_rdataclass_fromtext (dns_rdataclass_t *classp, isc_textregion_t *source)
 Convert the text 'source' refers to into a DNS class.
isc_result_t dns_rdataclass_totext (dns_rdataclass_t rdclass, isc_buffer_t *target)
 Put a textual representation of class 'rdclass' into 'target'.
void dns_rdataclass_format (dns_rdataclass_t rdclass, char *array, unsigned int size)
 Format a human-readable representation of the class 'rdclass' into the character array 'array', which is of size 'size'. The resulting string is guaranteed to be null-terminated.


Detailed Description

Definition in file rdataclass.h.


Define Documentation

#define DNS_RDATACLASS_H   1

Definition at line 21 of file rdataclass.h.

#define DNS_RDATACLASS_FORMATSIZE   sizeof("CLASS65535")

Minimum size of array to pass to dns_rdataclass_format().

Definition at line 74 of file rdataclass.h.

Referenced by checkqueryacl(), checkupdateacl(), client_request(), diff_apply(), freezezones(), load_text(), log_query(), log_queryerror(), ns_client_aclmsg(), ns_client_dumprecursing(), ns_server_freeze(), ns_server_sync(), ns_xfr_start(), query_find(), recv_done(), same_question(), send_forward_event(), update_log(), and xfrout_logv().


Function Documentation

ISC_LANG_BEGINDECLS isc_result_t dns_rdataclass_fromtext ( dns_rdataclass_t classp,
isc_textregion_t source 
)

Convert the text 'source' refers to into a DNS class.

Requires:

Returns:

Definition at line 454 of file rcode.c.

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

Referenced by addlookup(), bind9_check_namedconf(), check_orderent(), check_zoneconf(), configure_hint(), dash_option(), dst_key_read_public(), evaluate_class(), load_text(), load_zone(), make_prereq(), ns_config_getclass(), ns_server_mkeys(), parse_args(), strtoclass(), testclass(), update_addordelete(), and zone_from_args().

isc_result_t dns_rdataclass_totext ( dns_rdataclass_t  rdclass,
isc_buffer_t target 
)

Put a textual representation of class 'rdclass' into 'target'.

Requires:

Ensures, if the result is success: Returns:

Definition at line 512 of file rcode.c.

References str_totext().

Referenced by dns_rdataclass_format(), emit(), make_log_buf(), question_totext(), rdataset_totext(), write_public_key(), zone_namerd_tostr(), and zone_rdclass_tostr().

void dns_rdataclass_format ( dns_rdataclass_t  rdclass,
char *  array,
unsigned int  size 
)

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

Definition at line 535 of file rcode.c.

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

Referenced by add_bad(), cache_name(), checkqueryacl(), checkupdateacl(), client_request(), detailsection(), diff_apply(), freezezones(), is_answeraddress_allowed(), is_answertarget_allowed(), load_text(), log_query(), log_queryerror(), ns_client_aclmsg(), ns_client_dumprecursing(), ns_server_freeze(), ns_server_sync(), ns_xfr_start(), query_find(), recv_done(), resquery_response(), same_question(), send_forward_event(), update_log(), and xfrout_logv().


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