Defines resource record types and constants. More...
Macros | |
#define | LDNS_RDATA_FIELD_DESCRIPTORS_COUNT (sizeof(rdata_field_descriptors)/sizeof(rdata_field_descriptors[0])) |
computes the number of rdata fields | |
Functions | |
const sldns_rr_descriptor * | sldns_rr_descript (uint16_t type) |
returns the resource record descriptor for the given rr type. More... | |
size_t | sldns_rr_descriptor_minimum (const sldns_rr_descriptor *descriptor) |
returns the minimum number of rdata fields of the rr type this descriptor describes. More... | |
size_t | sldns_rr_descriptor_maximum (const sldns_rr_descriptor *descriptor) |
returns the maximum number of rdata fields of the rr type this descriptor describes. More... | |
sldns_rdf_type | sldns_rr_descriptor_field_type (const sldns_rr_descriptor *descriptor, size_t index) |
returns the rdf type for the given rdata field number of the rr type for the given descriptor. More... | |
sldns_rr_type | sldns_get_rr_type_by_name (const char *name) |
retrieves a rrtype by looking up its name. More... | |
sldns_rr_class | sldns_get_rr_class_by_name (const char *name) |
retrieves a class by looking up its name. More... | |
Variables | |
static sldns_lookup_table | sldns_rr_classes_data [] |
sldns_lookup_table * | sldns_rr_classes = sldns_rr_classes_data |
lookuptable for rr classes | |
static const sldns_rdf_type | type_0_wireformat [] = { LDNS_RDF_TYPE_UNKNOWN } |
static const sldns_rdf_type | type_a_wireformat [] = { LDNS_RDF_TYPE_A } |
static const sldns_rdf_type | type_ns_wireformat [] = { LDNS_RDF_TYPE_DNAME } |
static const sldns_rdf_type | type_md_wireformat [] = { LDNS_RDF_TYPE_DNAME } |
static const sldns_rdf_type | type_mf_wireformat [] = { LDNS_RDF_TYPE_DNAME } |
static const sldns_rdf_type | type_cname_wireformat [] = { LDNS_RDF_TYPE_DNAME } |
static const sldns_rdf_type | type_soa_wireformat [] |
static const sldns_rdf_type | type_mb_wireformat [] = { LDNS_RDF_TYPE_DNAME } |
static const sldns_rdf_type | type_mg_wireformat [] = { LDNS_RDF_TYPE_DNAME } |
static const sldns_rdf_type | type_mr_wireformat [] = { LDNS_RDF_TYPE_DNAME } |
static const sldns_rdf_type | type_wks_wireformat [] |
static const sldns_rdf_type | type_ptr_wireformat [] = { LDNS_RDF_TYPE_DNAME } |
static const sldns_rdf_type | type_hinfo_wireformat [] |
static const sldns_rdf_type | type_minfo_wireformat [] |
static const sldns_rdf_type | type_mx_wireformat [] |
static const sldns_rdf_type | type_rp_wireformat [] |
static const sldns_rdf_type | type_afsdb_wireformat [] |
static const sldns_rdf_type | type_x25_wireformat [] = { LDNS_RDF_TYPE_STR } |
static const sldns_rdf_type | type_isdn_wireformat [] |
static const sldns_rdf_type | type_rt_wireformat [] |
static const sldns_rdf_type | type_nsap_wireformat [] |
static const sldns_rdf_type | type_nsap_ptr_wireformat [] |
static const sldns_rdf_type | type_sig_wireformat [] |
static const sldns_rdf_type | type_key_wireformat [] |
static const sldns_rdf_type | type_px_wireformat [] |
static const sldns_rdf_type | type_gpos_wireformat [] |
static const sldns_rdf_type | type_aaaa_wireformat [] = { LDNS_RDF_TYPE_AAAA } |
static const sldns_rdf_type | type_loc_wireformat [] = { LDNS_RDF_TYPE_LOC } |
static const sldns_rdf_type | type_nxt_wireformat [] |
static const sldns_rdf_type | type_eid_wireformat [] |
static const sldns_rdf_type | type_nimloc_wireformat [] |
static const sldns_rdf_type | type_srv_wireformat [] |
static const sldns_rdf_type | type_atma_wireformat [] |
static const sldns_rdf_type | type_naptr_wireformat [] |
static const sldns_rdf_type | type_kx_wireformat [] |
static const sldns_rdf_type | type_cert_wireformat [] |
static const sldns_rdf_type | type_a6_wireformat [] = { LDNS_RDF_TYPE_UNKNOWN } |
static const sldns_rdf_type | type_dname_wireformat [] = { LDNS_RDF_TYPE_DNAME } |
static const sldns_rdf_type | type_sink_wireformat [] |
static const sldns_rdf_type | type_apl_wireformat [] |
static const sldns_rdf_type | type_ds_wireformat [] |
static const sldns_rdf_type | type_sshfp_wireformat [] |
static const sldns_rdf_type | type_ipseckey_wireformat [] |
static const sldns_rdf_type | type_rrsig_wireformat [] |
static const sldns_rdf_type | type_nsec_wireformat [] |
static const sldns_rdf_type | type_dhcid_wireformat [] |
static const sldns_rdf_type | type_talink_wireformat [] |
static const sldns_rdf_type | type_openpgpkey_wireformat [] |
static const sldns_rdf_type | type_csync_wireformat [] |
static const sldns_rdf_type | type_zonemd_wireformat [] |
static const sldns_rdf_type | type_svcb_wireformat [] |
static const sldns_rdf_type | type_nsec3_wireformat [] |
static const sldns_rdf_type | type_nsec3param_wireformat [] |
static const sldns_rdf_type | type_dnskey_wireformat [] |
static const sldns_rdf_type | type_tkey_wireformat [] |
static const sldns_rdf_type | type_tsig_wireformat [] |
static const sldns_rdf_type | type_tlsa_wireformat [] |
static const sldns_rdf_type | type_hip_wireformat [] |
static const sldns_rdf_type | type_nid_wireformat [] |
static const sldns_rdf_type | type_l32_wireformat [] |
static const sldns_rdf_type | type_l64_wireformat [] |
static const sldns_rdf_type | type_lp_wireformat [] |
static const sldns_rdf_type | type_eui48_wireformat [] |
static const sldns_rdf_type | type_eui64_wireformat [] |
static const sldns_rdf_type | type_uri_wireformat [] |
static const sldns_rdf_type | type_caa_wireformat [] |
static sldns_rr_descriptor | rdata_field_descriptors [] |
Defines resource record types and constants.
const sldns_rr_descriptor* sldns_rr_descript | ( | uint16_t | type | ) |
returns the resource record descriptor for the given rr type.
[in] | type | the type value of the rr type |
Referenced by analyze_rr(), calc_size(), canonical_compare(), decompress_rr_into_buffer(), lowercase_rdata(), print_ext(), rrinternal_parse_rdata(), sldns_wire2str_rdata_scan(), sldns_wire2str_type_print(), and type_rdata_compressable().
size_t sldns_rr_descriptor_minimum | ( | const sldns_rr_descriptor * | descriptor | ) |
returns the minimum number of rdata fields of the rr type this descriptor describes.
[in] | descriptor | for an rr type |
References sldns_struct_rr_descriptor::_minimum.
Referenced by sldns_wire2str_rdata_scan().
size_t sldns_rr_descriptor_maximum | ( | const sldns_rr_descriptor * | descriptor | ) |
returns the maximum number of rdata fields of the rr type this descriptor describes.
[in] | descriptor | for an rr type |
References sldns_struct_rr_descriptor::_maximum, sldns_struct_rr_descriptor::_variable, and LDNS_RDF_TYPE_NONE.
Referenced by sldns_wire2str_rdata_scan().
sldns_rdf_type sldns_rr_descriptor_field_type | ( | const sldns_rr_descriptor * | descriptor, |
size_t | field | ||
) |
returns the rdf type for the given rdata field number of the rr type for the given descriptor.
[in] | descriptor | for an rr type |
[in] | field | the field number |
References sldns_struct_rr_descriptor::_variable, sldns_struct_rr_descriptor::_wireformat, and LDNS_RDF_TYPE_NONE.
Referenced by lowercase_rdata(), and sldns_wire2str_rdata_scan().
sldns_rr_type sldns_get_rr_type_by_name | ( | const char * | name | ) |
retrieves a rrtype by looking up its name.
[in] | name | a string with the name |
Referenced by do_flush_type(), massage_type(), and qlist_parse_line().
sldns_rr_class sldns_get_rr_class_by_name | ( | const char * | name | ) |
retrieves a class by looking up its name.
[in] | name | string with the name |
Referenced by massage_class(), and qlist_parse_line().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |