ldns  1.7.0
rr.h
Go to the documentation of this file.
1 /*
2  * rr.h - resource record definitions
3  *
4  * a Net::DNS like library for C
5  *
6  * (c) NLnet Labs, 2005-2006
7  *
8  * See the file LICENSE for the license
9  */
10 
18 #ifndef LDNS_RR_H
19 #define LDNS_RR_H
20 
21 #include <ldns/common.h>
22 #include <ldns/rdata.h>
23 #include <ldns/buffer.h>
24 #include <ldns/error.h>
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
31 #define LDNS_MAX_LABELLEN 63
32 
33 #define LDNS_MAX_DOMAINLEN 255
34 
35 #define LDNS_MAX_POINTERS 65535
36 
37 #define LDNS_RR_OVERHEAD 10
38 
39 /* The first fields are contiguous and can be referenced instantly */
40 #define LDNS_RDATA_FIELD_DESCRIPTORS_COMMON 259
41 
42 
43 
48 {
59 
63 };
65 
70 {
74 };
76 
81 {
169  LDNS_RR_TYPE_SSHFP = 44, /* RFC 4255 */
171  LDNS_RR_TYPE_IPSECKEY = 45, /* RFC 4025 */
173  LDNS_RR_TYPE_RRSIG = 46, /* RFC 4034 */
174  LDNS_RR_TYPE_NSEC = 47, /* RFC 4034 */
175  LDNS_RR_TYPE_DNSKEY = 48, /* RFC 4034 */
176 
177  LDNS_RR_TYPE_DHCID = 49, /* RFC 4701 */
178  /* NSEC3 */
179  LDNS_RR_TYPE_NSEC3 = 50, /* RFC 5155 */
180  LDNS_RR_TYPE_NSEC3PARAM = 51, /* RFC 5155 */
182  LDNS_RR_TYPE_TLSA = 52, /* RFC 6698 */
183  LDNS_RR_TYPE_SMIMEA = 53, /* draft-ietf-dane-smime */
184 
185  LDNS_RR_TYPE_HIP = 55, /* RFC 5205 */
186 
193  LDNS_RR_TYPE_CDS = 59, /* RFC 7344 */
194  LDNS_RR_TYPE_CDNSKEY = 60, /* RFC 7344 */
195  LDNS_RR_TYPE_OPENPGPKEY = 61, /* RFC 7929 */
196  LDNS_RR_TYPE_CSYNC = 62, /* RFC 7477 */
197 
198  LDNS_RR_TYPE_SPF = 99, /* RFC 4408 */
199 
204 
205  LDNS_RR_TYPE_NID = 104, /* RFC 6742 */
206  LDNS_RR_TYPE_L32 = 105, /* RFC 6742 */
207  LDNS_RR_TYPE_L64 = 106, /* RFC 6742 */
208  LDNS_RR_TYPE_LP = 107, /* RFC 6742 */
209 
210  LDNS_RR_TYPE_EUI48 = 108, /* RFC 7043 */
211  LDNS_RR_TYPE_EUI64 = 109, /* RFC 7043 */
212 
213  LDNS_RR_TYPE_TKEY = 249, /* RFC 2930 */
223  LDNS_RR_TYPE_URI = 256, /* RFC 7553 */
224  LDNS_RR_TYPE_CAA = 257, /* RFC 6844 */
225  LDNS_RR_TYPE_AVC = 258, /* Cisco's DNS-AS RR, see www.dns-as.org */
226 
229  /* RFC 4431, 5074, DNSSEC Lookaside Validation */
231 
232  /* type codes from nsec3 experimental phase
233  LDNS_RR_TYPE_NSEC3 = 65324,
234  LDNS_RR_TYPE_NSEC3PARAMS = 65325, */
238 };
240 
303 {
307  uint32_t _ttl;
309  size_t _rd_count;
311  ldns_rr_type _rr_type;
313  ldns_rr_class _rr_class;
314  /* everything in the rdata is in network order */
321 };
322 typedef struct ldns_struct_rr ldns_rr;
323 
331 {
332  size_t _rr_count;
333  size_t _rr_capacity;
335 };
337 
344 {
346  ldns_rr_type _type;
348  const char *_name;
350  uint8_t _minimum;
352  uint8_t _maximum;
358  ldns_rr_compress _compress;
360  uint8_t _dname_count;
361 };
363 
364 
372 
379 
380 
385 ldns_rr* ldns_rr_new(void);
386 
391 ldns_rr* ldns_rr_new_frm_type(ldns_rr_type t);
392 
398 void ldns_rr_free(ldns_rr *rr);
399 
416 ldns_status ldns_rr_new_frm_str(ldns_rr **n, const char *str,
417  uint32_t default_ttl, const ldns_rdf *origin,
418  ldns_rdf **prev);
419 
434  const ldns_rdf *origin, ldns_rdf **prev);
435 
450 ldns_status ldns_rr_new_frm_fp(ldns_rr **rr, FILE *fp, uint32_t *default_ttl, ldns_rdf **origin, ldns_rdf **prev);
451 
467 ldns_status ldns_rr_new_frm_fp_l(ldns_rr **rr, FILE *fp, uint32_t *default_ttl, ldns_rdf **origin, ldns_rdf **prev, int *line_nr);
468 
475 void ldns_rr_set_owner(ldns_rr *rr, ldns_rdf *owner);
476 
483 void ldns_rr_set_question(ldns_rr *rr, bool question);
484 
491 void ldns_rr_set_ttl(ldns_rr *rr, uint32_t ttl);
492 
499 void ldns_rr_set_rd_count(ldns_rr *rr, size_t count);
500 
507 void ldns_rr_set_type(ldns_rr *rr, ldns_rr_type rr_type);
508 
515 void ldns_rr_set_class(ldns_rr *rr, ldns_rr_class rr_class);
516 
525 ldns_rdf* ldns_rr_set_rdf(ldns_rr *rr, const ldns_rdf *f, size_t position);
526 
534 bool ldns_rr_push_rdf(ldns_rr *rr, const ldns_rdf *f);
535 
543 
550 ldns_rdf* ldns_rr_rdf(const ldns_rr *rr, size_t nr);
551 
557 ldns_rdf* ldns_rr_owner(const ldns_rr *rr);
558 
564 bool ldns_rr_is_question(const ldns_rr *rr);
565 
571 uint32_t ldns_rr_ttl(const ldns_rr *rr);
572 
578 size_t ldns_rr_rd_count(const ldns_rr *rr);
579 
585 ldns_rr_type ldns_rr_get_type(const ldns_rr *rr);
586 
592 ldns_rr_class ldns_rr_get_class(const ldns_rr *rr);
593 
594 /* rr_lists */
595 
601 size_t ldns_rr_list_rr_count(const ldns_rr_list *rr_list);
602 
609 void ldns_rr_list_set_rr_count(ldns_rr_list *rr_list, size_t count);
610 
619 ldns_rr * ldns_rr_list_set_rr(ldns_rr_list *rr_list, const ldns_rr *r, size_t count);
620 
627 ldns_rr* ldns_rr_list_rr(const ldns_rr_list *rr_list, size_t nr);
628 
634 
639 void ldns_rr_list_free(ldns_rr_list *rr_list);
640 
645 void ldns_rr_list_deep_free(ldns_rr_list *rr_list);
646 
654 bool ldns_rr_list_cat(ldns_rr_list *left, const ldns_rr_list *right);
655 
664 
671 bool ldns_rr_list_push_rr(ldns_rr_list *rr_list, const ldns_rr *rr);
672 
679 bool ldns_rr_list_push_rr_list(ldns_rr_list *rr_list, const ldns_rr_list *push_list);
680 
687 
694 ldns_rr_list* ldns_rr_list_pop_rr_list(ldns_rr_list *rr_list, size_t size);
695 
703 bool ldns_rr_list_contains_rr(const ldns_rr_list *rr_list, const ldns_rr *rr);
704 
710 bool ldns_is_rrset(const ldns_rr_list *rr_list);
711 
718 bool ldns_rr_set_push_rr(ldns_rr_list *rr_list, ldns_rr *rr);
719 
728 
735 
736 
742 ldns_rr_type ldns_get_rr_type_by_name(const char *name);
743 
749 ldns_rr_class ldns_get_rr_class_by_name(const char *name);
750 
756 ldns_rr* ldns_rr_clone(const ldns_rr *rr);
757 
764 
770 void ldns_rr_list_sort(ldns_rr_list *unsorted);
771 
780 int ldns_rr_compare(const ldns_rr *rr1, const ldns_rr *rr2);
781 
790 int ldns_rr_compare_no_rdata(const ldns_rr *rr1, const ldns_rr *rr2);
791 
800 int ldns_rr_compare_wire(const ldns_buffer *rr1_buf, const ldns_buffer *rr2_buf);
801 
810 bool ldns_rr_compare_ds(const ldns_rr *rr1, const ldns_rr *rr2);
811 
820 int ldns_rr_list_compare(const ldns_rr_list *rrl1, const ldns_rr_list *rrl2);
821 
827 size_t ldns_rr_uncompressed_size(const ldns_rr *r);
828 
834 void ldns_rr2canonical(ldns_rr *rr);
835 
841 void ldns_rr_list2canonical(const ldns_rr_list *rr_list);
842 
848 uint8_t ldns_rr_label_count(const ldns_rr *rr);
849 
856 const ldns_rr_descriptor *ldns_rr_descript(uint16_t type);
857 
864 size_t ldns_rr_descriptor_minimum(const ldns_rr_descriptor *descriptor);
865 
872 size_t ldns_rr_descriptor_maximum(const ldns_rr_descriptor *descriptor);
873 
881 ldns_rdf_type ldns_rr_descriptor_field_type(const ldns_rr_descriptor *descriptor, size_t field);
882 
894 ldns_rr_list *ldns_rr_list_subtype_by_rdf(const ldns_rr_list *l, const ldns_rdf *r, size_t pos);
895 
904 ldns_rr_type ldns_rdf2rr_type(const ldns_rdf *rd);
905 
913 ldns_rr_type
914 ldns_rr_list_type(const ldns_rr_list *rr_list);
915 
923 ldns_rdf *
924 ldns_rr_list_owner(const ldns_rr_list *rr_list);
925 
926 #ifdef __cplusplus
927 }
928 #endif
929 
930 #endif /* LDNS_RR_H */
RFC1183.
Definition: rr.h:121
implementation of buffers to ease operations
Definition: buffer.h:50
mailbox or mail list information
Definition: rr.h:109
RFC1183.
Definition: rr.h:123
void ldns_rr_set_type(ldns_rr *rr, ldns_rr_type rr_type)
sets the type in the rr.
Definition: rr.c:814
ldns_status ldns_rr_new_frm_fp_l(ldns_rr **rr, FILE *fp, uint32_t *default_ttl, ldns_rdf **origin, ldns_rdf **prev, int *line_nr)
creates a new rr from a file containing a string.
Definition: rr.c:706
void ldns_rr_free(ldns_rr *rr)
frees an RR structure
Definition: rr.c:75
size_t _rr_count
Definition: rr.h:332
ldns_rr_class ldns_get_rr_class_by_name(const char *name)
retrieves a class by looking up its name.
Definition: rr.c:2667
ldns_rr * ldns_rr_new(void)
creates a new rr structure.
Definition: rr.c:24
void ldns_rr_list_sort(ldns_rr_list *unsorted)
sorts an rr_list (canonical wire format).
Definition: rr.c:1501
2535typecode
Definition: rr.h:141
RFC1183.
Definition: rr.h:117
the canonical name for an alias
Definition: rr.h:91
a host address
Definition: rr.h:83
DNSSEC.
Definition: rr.h:173
Defines ldns_rdf and functions to manipulate those.
Pseudo OPT record...
Definition: rr.h:163
Chaos class.
Definition: rr.h:52
enum ldns_enum_rr_class ldns_rr_class
Definition: rr.h:64
compression is allowed
Definition: rr.h:72
ldns_status ldns_rdf_bitmap_known_rr_types_space(ldns_rdf **rdf)
Create a rr type bitmap rdf providing enough space to set all known (to ldns) rr types.
Definition: rr.c:2554
List or Set of Resource Records.
Definition: rr.h:330
a null RR (EXPERIMENTAL)
Definition: rr.h:101
ldns_rr_compress _compress
Specifies whether compression can be used for dnames in this RR type.
Definition: rr.h:358
ldns_rdf_type ldns_rr_descriptor_field_type(const ldns_rr_descriptor *descriptor, size_t field)
returns the rdf type for the given rdata field number of the rr type for the given descriptor...
Definition: rr.c:2613
A request for mailbox-related records (MB, MG or MR)
Definition: rr.h:218
int ldns_rr_compare(const ldns_rr *rr1, const ldns_rr *rr2)
compares two rrs.
Definition: rr.c:1623
RFC2163.
Definition: rr.h:133
size_t ldns_rr_uncompressed_size(const ldns_rr *r)
calculates the uncompressed size of an RR.
Definition: rr.c:1749
RFC2538.
Definition: rr.h:155
const ldns_rr_descriptor * ldns_rr_descript(uint16_t type)
returns the resource record descriptor for the given rr type.
Definition: rr.c:2569
ldns_rr * ldns_rr_new_frm_type(ldns_rr_type t)
creates a new rr structure, based on the given type.
Definition: rr.c:42
RFC2230.
Definition: rr.h:153
void ldns_rr_set_rd_count(ldns_rr *rr, size_t count)
sets the rd_count in the rr.
Definition: rr.c:808
signed char ldns_rr_push_rdf(ldns_rr *rr, const ldns_rdf *f)
sets rd_field member, it will be placed in the next available spot.
Definition: rr.c:843
ldns_rr_class _rr_class
Class of the resource record.
Definition: rr.h:313
ldns_rr_type ldns_rr_get_type(const ldns_rr *rr)
returns the type of the rr.
Definition: rr.c:929
ldns_rdf * ldns_rr_rdf(const ldns_rr *rr, size_t nr)
returns the rdata field member counter.
Definition: rr.c:895
http://www.jhsoft.com/rfc/af-saa-0069.000.rtf
Definition: rr.h:149
uint8_t _maximum
Maximum number of rdata fields in the RRs of this type.
Definition: rr.h:352
ldns_rr_list * ldns_rr_list_new(void)
creates a new rr_list structure.
Definition: rr.c:986
void ldns_rr_set_class(ldns_rr *rr, ldns_rr_class rr_class)
sets the class in the rr.
Definition: rr.c:820
ldns_rdf * ldns_rr_set_rdf(ldns_rr *rr, const ldns_rdf *f, size_t position)
sets a rdf member, it will be set on the position given.
Definition: rr.c:826
int ldns_rr_list_compare(const ldns_rr_list *rrl1, const ldns_rr_list *rrl2)
compares two rr listss.
Definition: rr.c:1722
2535typecode
Definition: rr.h:131
size_t ldns_rr_descriptor_maximum(const ldns_rr_descriptor *descriptor)
returns the maximum number of rdata fields of the rr type this descriptor describes.
Definition: rr.c:2598
ldns_rr * ldns_rr_list_pop_rr(ldns_rr_list *rr_list)
pops the last rr from an rrlist.
Definition: rr.c:1163
ldns_enum_rr_class
The different RR classes.
Definition: rr.h:47
Resource Record.
Definition: rr.h:302
text strings
Definition: rr.h:113
a mailbox domain name (EXPERIMENTAL)
Definition: rr.h:95
size_t _rd_count
Number of data fields.
Definition: rr.h:309
ipv6 address
Definition: rr.h:137
marks the start of a zone of authority
Definition: rr.h:93
ldns_rdf * ldns_rr_pop_rdf(ldns_rr *rr)
removes a rd_field member, it will be popped from the last position.
Definition: rr.c:866
Defines error numbers and functions to translate those to a readable string.
void ldns_rr_set_question(ldns_rr *rr, signed char question)
sets the question flag in the rr structure.
draft-reid-dnsext-zs
Definition: rr.h:188
SSH Key Fingerprint.
Definition: rr.h:169
void ldns_rr_list2canonical(const ldns_rr_list *rr_list)
converts each dname in each rr in a rr_list to its canonical form.
Definition: rr.c:1818
size_t ldns_rr_rd_count(const ldns_rr *rr)
returns the rd_count of an rr structure.
Definition: rr.c:923
size_t _rr_capacity
Definition: rr.h:333
enum ldns_enum_rdf_type ldns_rdf_type
Definition: rdata.h:145
signed char ldns_rr_list_cat(ldns_rr_list *left, const ldns_rr_list *right)
concatenates two ldns_rr_lists together.
Definition: rr.c:1022
ldns_rdf_type _variable
Special rdf types.
Definition: rr.h:356
RFC1183.
Definition: rr.h:119
size_t ldns_rr_list_rr_count(const ldns_rr_list *rr_list)
returns the number of rr&#39;s in an rr_list.
Definition: rr.c:943
ldns_rr_list * ldns_rr_list_pop_rrset(ldns_rr_list *rr_list)
pops the first rrset from the list, the list must be sorted, so that all rr&#39;s from each rrset are nex...
Definition: rr.c:1333
int ldns_rr_compare_no_rdata(const ldns_rr *rr1, const ldns_rr *rr2)
compares two rrs, up to the rdata.
Definition: rr.c:1544
void ldns_rr_list_deep_free(ldns_rr_list *rr_list)
frees an rr_list structure and all rrs contained therein.
Definition: rr.c:1006
void ldns_rr_set_ttl(ldns_rr *rr, uint32_t ttl)
sets the ttl in the rr structure.
Definition: rr.c:802
ldns_rr * ldns_rr_clone(const ldns_rr *rr)
clones a rr and all its data
Definition: rr.c:1385
None class, dynamic update.
Definition: rr.h:56
ldns_status ldns_rr_new_question_frm_str(ldns_rr **n, const char *str, const ldns_rdf *origin, ldns_rdf **prev)
creates an rr for the question section from a string, i.e.
Definition: rr.c:672
ldns_rr_type ldns_rr_list_type(const ldns_rr_list *rr_list)
Returns the type of the first element of the RR If there are no elements present, 0 is returned...
Definition: rr.c:2704
ldns_rr_list * ldns_rr_list_pop_rr_list(ldns_rr_list *rr_list, size_t size)
pops an rr_list of size s from an rrlist.
Definition: rr.c:1195
signed char ldns_rr_is_question(const ldns_rr *rr)
returns the question flag of an rr structure.
Definition: rr.c:911
the Internet
Definition: rr.h:50
a well known service description
Definition: rr.h:103
signed char ldns_rr_list_contains_rr(const ldns_rr_list *rr_list, const ldns_rr *rr)
returns true if the given rr is one of the rrs in the list, or if it is equal to one ...
Definition: rr.c:1225
dnsind-kitchen-sink-02.txt
Definition: rr.h:161
Contains all information about resource record types.
Definition: rr.h:343
draft-reid-dnsext-rkey
Definition: rr.h:190
IPsec Key.
Definition: rr.h:171
RFC4034, RFC3658.
Definition: rr.h:167
ldns_rr_list * ldns_rr_list_cat_clone(const ldns_rr_list *left, const ldns_rr_list *right)
concatenates two ldns_rr_lists together, but makes clones of the rr&#39;s (instead of pointer copying)...
Definition: rr.c:1045
RFC1706.
Definition: rr.h:125
a domain name pointer
Definition: rr.h:105
ldns_rr * ldns_rr_list_rr(const ldns_rr_list *rr_list, size_t nr)
returns a specific rr of an rrlist.
Definition: rr.c:976
RFC2874.
Definition: rr.h:157
ldns_rdf * ldns_rr_list_owner(const ldns_rr_list *rr_list)
Returns the owner domain name rdf of the first element of the RR If there are no elements present...
Definition: rr.c:2714
DNSSEC Trust Authorities.
Definition: rr.h:228
RFC1712.
Definition: rr.h:135
ldns_rr * ldns_rr_list_set_rr(ldns_rr_list *rr_list, const ldns_rr *r, size_t count)
set a rr on a specific index in a ldns_rr_list
Definition: rr.c:953
draft-ietf-nimrod-dns-01.txt
Definition: rr.h:143
ldns_rr_list * ldns_rr_list_subtype_by_rdf(const ldns_rr_list *l, const ldns_rdf *r, size_t pos)
Return the rr_list which matches the rdf at position field.
Definition: rr.c:1084
A request for mail agent RRs (Obsolete - see MX)
Definition: rr.h:220
a mail group member (EXPERIMENTAL)
Definition: rr.h:97
uint8_t ldns_rr_label_count(const ldns_rr *rr)
counts the number of labels of the ownername.
Definition: rr.c:1827
enum ldns_enum_status ldns_status
Definition: error.h:134
a mail destination (Obsolete - use MX)
Definition: rr.h:87
2535typecode
Definition: rr.h:129
ldns_rr ** _rrs
Definition: rr.h:334
void ldns_rr_list_free(ldns_rr_list *rr_list)
frees an rr_list structure.
Definition: rr.c:997
This file contains the definition of ldns_buffer, and functions to manipulate those.
ldns_status ldns_rr_new_frm_fp(ldns_rr **rr, FILE *fp, uint32_t *default_ttl, ldns_rdf **origin, ldns_rdf **prev)
creates a new rr from a file containing a string.
Definition: rr.c:700
LOC record RFC1876.
Definition: rr.h:139
signed char ldns_is_rrset(const ldns_rr_list *rr_list)
checks if an rr_list is a rrset.
Definition: rr.c:1244
signed char ldns_rr_list_push_rr_list(ldns_rr_list *rr_list, const ldns_rr_list *push_list)
pushes an rr_list to an rrlist.
Definition: rr.c:1149
ldns_rdf * _owner
Owner name, uncompressed.
Definition: rr.h:305
SRV record RFC2782.
Definition: rr.h:147
ldns_rr_class ldns_rr_get_class(const ldns_rr *rr)
returns the class of the rr.
Definition: rr.c:935
Hesiod (Dyer 87)
Definition: rr.h:54
uint8_t _minimum
Minimum number of rdata fields in the RRs of this type.
Definition: rr.h:350
host information
Definition: rr.h:107
RFC1348.
Definition: rr.h:127
signed char ldns_rr_set_push_rr(ldns_rr_list *rr_list, ldns_rr *rr)
pushes an rr to an rrset (which really are rr_list&#39;s).
Definition: rr.c:1279
a mail rename domain name (EXPERIMENTAL)
Definition: rr.h:99
uint32_t _ttl
Time to live.
Definition: rr.h:307
RFC2915.
Definition: rr.h:151
uint8_t _dname_count
The number of DNAMEs in the _wireformat string, for parsing.
Definition: rr.h:360
Resource record data field.
Definition: rdata.h:174
ldns_enum_rr_compress
Used to specify whether compression is allowed.
Definition: rr.h:69
void ldns_rr_list_set_rr_count(ldns_rr_list *rr_list, size_t count)
sets the number of rr&#39;s in an rr_list.
Definition: rr.c:969
Common definitions for LDNS.
RFC3123.
Definition: rr.h:165
ldns_status ldns_rr_new_frm_str(ldns_rr **n, const char *str, uint32_t default_ttl, const ldns_rdf *origin, ldns_rdf **prev)
creates an rr from a string.
Definition: rr.c:659
ldns_status ldns_rdf_bitmap_known_rr_types(ldns_rdf **rdf)
Create a rr type bitmap rdf with at least all known (to ldns) rr types set.
Definition: rr.c:2560
enum ldns_enum_rr_compress ldns_rr_compress
Definition: rr.h:75
ldns_enum_rr_type
The different RR types.
Definition: rr.h:80
void ldns_rr_set_owner(ldns_rr *rr, ldns_rdf *owner)
sets the owner in the rr structure.
Definition: rr.c:790
enum ldns_enum_rr_type ldns_rr_type
Definition: rr.h:239
const char * _name
Textual name of the RR type.
Definition: rr.h:348
an authoritative name server
Definition: rr.h:85
void ldns_rr2canonical(ldns_rr *rr)
converts each dname in a rr to its canonical form.
Definition: rr.c:1766
signed char ldns_rr_list_push_rr(ldns_rr_list *rr_list, const ldns_rr *rr)
pushes an rr to an rrlist.
Definition: rr.c:1118
ldns_rdf ** _rdata_fields
The array of rdata&#39;s.
Definition: rr.h:316
signed char _rr_question
question rr [it would be nicer if thous is after _rd_count] ABI change: Fix this in next major releas...
Definition: rr.h:320
ldns_rr_type ldns_get_rr_type_by_name(const char *name)
retrieves a rrtype by looking up its name.
Definition: rr.c:2627
ldns_rdf * ldns_rr_owner(const ldns_rr *rr)
returns the owner name of an rr structure.
Definition: rr.c:905
Any class.
Definition: rr.h:58
draft-ietf-dnsop-trust-history
Definition: rr.h:192
mail exchange
Definition: rr.h:111
RFC1183.
Definition: rr.h:115
uint32_t ldns_rr_ttl(const ldns_rr *rr)
returns the ttl of an rr structure.
Definition: rr.c:917
ldns_rr_type _rr_type
the type of the RR.
Definition: rr.h:311
ldns_rr * ldns_rr_set_pop_rr(ldns_rr_list *rr_list)
pops the last rr from an rrset.
Definition: rr.c:1327
draft-ietf-nimrod-dns-01.txt
Definition: rr.h:145
int ldns_rr_compare_wire(const ldns_buffer *rr1_buf, const ldns_buffer *rr2_buf)
compares the wireformat of two rrs, contained in the given buffers.
Definition: rr.c:1585
RFC2672.
Definition: rr.h:159
signed char ldns_rr_compare_ds(const ldns_rr *rr1, const ldns_rr *rr2)
returns true of the given rr&#39;s are equal.
Definition: rr.c:1695
ldns_rr_type ldns_rdf2rr_type(const ldns_rdf *rd)
convert an rdf of type LDNS_RDF_TYPE_TYPE to an actual LDNS_RR_TYPE.
Definition: rr.c:2687
a mail forwarder (Obsolete - use MX)
Definition: rr.h:89
any type (wildcard)
Definition: rr.h:222
ldns_rr_type _type
Type of the RR that is described here.
Definition: rr.h:346
size_t ldns_rr_descriptor_minimum(const ldns_rr_descriptor *descriptor)
returns the minimum number of rdata fields of the rr type this descriptor describes.
Definition: rr.c:2588
const ldns_rdf_type * _wireformat
Wireformat specification for the rr, i.e.
Definition: rr.h:354
ldns_rr_list * ldns_rr_list_clone(const ldns_rr_list *rrlist)
clones an rrlist.
Definition: rr.c:1416