1ldns(3)                    Library Functions Manual                    ldns(3)
2
3
4

NAME

6       ldns_rr_descriptor, ldns_rr_descript, ldns_rr_descriptor_minimum,
7       ldns_rr_descriptor_maximum, ldns_rr_descriptor_field_type - rdata field
8       descriptors
9
10

SYNOPSIS

12       #include <stdint.h>
13       #include <stdbool.h>
14
15       #include <ldns/ldns.h>
16
17       const ldns_rr_descriptor* ldns_rr_descript(uint16_t type);
18
19       size_t ldns_rr_descriptor_minimum(const ldns_rr_descriptor *descrip‐
20       tor);
21
22       size_t ldns_rr_descriptor_maximum(const ldns_rr_descriptor *descrip‐
23       tor);
24
25       ldns_rdf_type ldns_rr_descriptor_field_type(const ldns_rr_descriptor
26       *descriptor, size_t field);
27

DESCRIPTION

29       ldns_rr_descriptor
30              Contains all information about resource record types.
31
32              This structure contains, for all rr types, the rdata fields that
33              are defined.
34              struct ldns_struct_rr_descriptor
35              {
36                   Type of the RR that is described here:
37                   ldns_rr_type    _type;
38                   Textual name of the RR type.:
39                   const char *_name;
40                   Minimum number of rdata fields in the RRs of this type.:
41                   uint8_t     _minimum;
42                   Maximum number of rdata fields in the RRs of this type.:
43                   uint8_t     _maximum;
44                   Wireformat specification for the rr, i.e. the types of
45              rdata fields in their respective order.:
46                   const ldns_rdf_type *_wireformat;
47                   Special rdf types:
48                   ldns_rdf_type _variable;
49                   Specifies whether compression can be used for dnames in
50              this RR type.:
51                   ldns_rr_compress _compress;
52                   The number of DNAMEs in the _wireformat string, for pars‐
53              ing.:
54                   uint8_t _dname_count;
55              };
56              typedef struct ldns_struct_rr_descriptor ldns_rr_descriptor;
57
58       ldns_rr_descript() returns the resource record descriptor for the given
59              rr type.
60
61              type: the type value of the rr type
62              Returns the ldns_rr_descriptor for this type
63
64       ldns_rr_descriptor_minimum() returns the minimum number of rdata fields
65              of the rr type this descriptor describes.
66
67              descriptor: for an rr type
68              Returns the minimum number of rdata fields
69
70       ldns_rr_descriptor_maximum() returns the maximum number of rdata fields
71              of the rr type this descriptor describes.
72
73              descriptor: for an rr type
74              Returns the maximum number of rdata fields
75
76       ldns_rr_descriptor_field_type() returns the rdf type for the given
77              rdata field number of the rr type for the given descriptor.
78
79              descriptor: for an rr type
80              field: the field number
81              Returns the rdf type for the field
82

AUTHOR

84       The ldns team at NLnet Labs.
85
86

REPORTING BUGS

88       Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at
89       http://www.nlnetlabs.nl/bugs/index.html
90
91
93       Copyright (c) 2004 - 2006 NLnet Labs.
94
95       Licensed under the BSD License. There is NO warranty; not even for MER‐
96       CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
97
98

SEE ALSO

100       ldns_rr, ldns_rdf.  And perldoc Net::DNS, RFC1034, RFC1035, RFC4033,
101       RFC4034  and RFC4035.
102

REMARKS

104       This manpage was automatically generated from the ldns source code.
105
106
107
108                                  30 May 2006                          ldns(3)
Impressum