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

NAME

6       ldns_rdf, ldns_rdf_type
7
8

SYNOPSIS

10       #include <stdint.h>
11       #include <stdbool.h>
12
13       #include <ldns/ldns.h>
14

DESCRIPTION

16       ldns_rdf
17              Resource record data field.
18
19              The  data  is  a  network  ordered array of bytes, which size is
20              specified by
21              the (16-bit) size field. To correctly parse it, use the type
22              specified in the (16-bit) type field  with  a  value  from  \ref
23              ldns_rdf_type.
24              struct ldns_struct_rdf
25              {
26                   The size of the data (in octets):
27                   size_t _size;
28                   The type of the data:
29                   ldns_rdf_type _type;
30                   Pointer to the data (raw octets):
31                   void  *_data;
32              };
33              typedef struct ldns_struct_rdf ldns_rdf;
34
35       ldns_rdf_type
36              The different types of RDATA fields.
37              enum ldns_enum_rdf_type
38              {
39                   none:
40                   LDNS_RDF_TYPE_NONE,
41                   domain name:
42                   LDNS_RDF_TYPE_DNAME,
43                   8 bits:
44                   LDNS_RDF_TYPE_INT8,
45                   16 bits:
46                   LDNS_RDF_TYPE_INT16,
47                   32 bits:
48                   LDNS_RDF_TYPE_INT32,
49                   A record:
50                   LDNS_RDF_TYPE_A,
51                   AAAA record:
52                   LDNS_RDF_TYPE_AAAA,
53                   txt string:
54                   LDNS_RDF_TYPE_STR,
55                   apl data:
56                   LDNS_RDF_TYPE_APL,
57                   b32 string:
58                   LDNS_RDF_TYPE_B32_EXT,
59                   b64 string:
60                   LDNS_RDF_TYPE_B64,
61                   hex string:
62                   LDNS_RDF_TYPE_HEX,
63                   nsec type codes:
64                   LDNS_RDF_TYPE_NSEC,
65                   a RR type:
66                   LDNS_RDF_TYPE_TYPE,
67                   a class:
68                   LDNS_RDF_TYPE_CLASS,
69                   certificate algorithm:
70                   LDNS_RDF_TYPE_CERT_ALG,
71                   a key algorithm:
72                   LDNS_RDF_TYPE_ALG,
73                   unknown types:
74                   LDNS_RDF_TYPE_UNKNOWN,
75                   time (32 bits):
76                   LDNS_RDF_TYPE_TIME,
77                   period:
78                   LDNS_RDF_TYPE_PERIOD,
79                   tsig time 48 bits:
80                   LDNS_RDF_TYPE_TSIGTIME,
81                   LDNS_RDF_TYPE_TSIG,
82                   /** variable length any type rdata where the length
83                       is specified by the first 2 bytes */
84                   LDNS_RDF_TYPE_INT16_DATA,
85                   protocol and port bitmaps:
86                   LDNS_RDF_TYPE_SERVICE,
87                   location data:
88                   LDNS_RDF_TYPE_LOC,
89                   well known services:
90                   LDNS_RDF_TYPE_WKS,
91                   NSAP:
92                   LDNS_RDF_TYPE_NSAP,
93                   ATMA:
94                   LDNS_RDF_TYPE_ATMA,
95                   IPSECKEY:
96                   LDNS_RDF_TYPE_IPSECKEY,
97                   nsec3 hash salt:
98                   LDNS_RDF_TYPE_NSEC3_SALT,
99                   nsec3 base32 string (with length byte on wire:
100                   LDNS_RDF_TYPE_NSEC3_NEXT_OWNER
101              };
102              typedef enum ldns_enum_rdf_type ldns_rdf_type;
103

AUTHOR

105       The  ldns  team  at  NLnet Labs. Which consists out of Jelte Jansen and
106       Miek Gieben.
107
108

REPORTING BUGS

110       Please report bugs to ldns-team@nlnetlabs.nl  or  in  our  bugzilla  at
111       http://www.nlnetlabs.nl/bugs/index.html
112
113
115       Copyright (c) 2004 - 2006 NLnet Labs.
116
117       Licensed under the BSD License. There is NO warranty; not even for MER‐
118       CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
119
120

SEE ALSO

122       ldns_rdf_set_size, ldns_rdf_set_type, ldns_rdf_set_data, ldns_rdf_size,
123       ldns_rdf_get_type,   ldns_rdf_data,   ldns_rdf_compare,   ldns_rdf_new,
124       ldns_rdf_clone,      ldns_rdf_new_frm_data,       ldns_rdf_new_frm_str,
125       ldns_rdf_new_frm_fp, ldns_rdf_free, ldns_rdf_deep_free, ldns_rdf_print,
126       ldns_native2rdf_int8,   ldns_native2rdf_int16,   ldns_native2rdf_int32,
127       ldns_native2rdf_int16_data,                       ldns_rdf2native_int8,
128       ldns_rdf2native_int16,   ldns_rdf2native_int32,   ldns_rdf2native_sock‐
129       addr_storage,       ldns_rdf2native_time_t,       ldns_native2rdf_int8,
130       ldns_native2rdf_int16,                           ldns_native2rdf_int32,
131       ldns_native2rdf_int16_data,                       ldns_rdf2native_int8,
132       ldns_rdf2native_int16,   ldns_rdf2native_int32,   ldns_rdf2native_sock‐
133       addr_storage,       ldns_rdf2native_time_t,       ldns_native2rdf_int8,
134       ldns_native2rdf_int16,                           ldns_native2rdf_int32,
135       ldns_native2rdf_int16_data,                       ldns_rdf2native_int8,
136       ldns_rdf2native_int16,   ldns_rdf2native_int32,   ldns_rdf2native_sock‐
137       addr_storage,  ldns_rdf2native_time_t.   And perldoc Net::DNS, RFC1034,
138       RFC1035, RFC4033, RFC4034  and RFC4035.
139

REMARKS

141       This manpage was automaticly generated from the ldns source code by use
142       of Doxygen and some perl.
143
144
145
146                                  30 May 2006                          ldns(3)
Impressum