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
8
9

SYNOPSIS

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

DESCRIPTION

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

AUTHOR

83       The  ldns  team  at  NLnet Labs. Which consists out of Jelte Jansen and
84       Miek Gieben.
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 automaticly generated from the ldns source code by use
105       of Doxygen and some perl.
106
107
108
109                                  30 May 2006                          ldns(3)
Impressum