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

NAME

6       ldns_native2rdf_int8,   ldns_native2rdf_int16,   ldns_native2rdf_int32,
7       ldns_native2rdf_int16_data,                       ldns_rdf2native_int8,
8       ldns_rdf2native_int16,   ldns_rdf2native_int32,   ldns_rdf2native_sock‐
9       addr_storage, ldns_rdf2native_time_t
10
11

SYNOPSIS

13       #include <stdint.h>
14       #include <stdbool.h>
15
16       #include <ldns/ldns.h>
17
18       ldns_rdf* ldns_native2rdf_int8(ldns_rdf_type type, uint8_t value);
19
20       ldns_rdf* ldns_native2rdf_int16(ldns_rdf_type type, uint16_t value);
21
22       ldns_rdf* ldns_native2rdf_int32(ldns_rdf_type type, uint32_t value);
23
24       ldns_rdf* ldns_native2rdf_int16_data(size_t size, uint8_t *data);
25
26       uint8_t ldns_rdf2native_int8(const ldns_rdf *rd);
27
28       uint16_t ldns_rdf2native_int16(const ldns_rdf *rd);
29
30       uint32_t ldns_rdf2native_int32(const ldns_rdf *rd);
31
32       struct   sockaddr_storage   *    ldns_rdf2native_sockaddr_storage(const
33       ldns_rdf *rd, uint16_t port, size_t *size);
34
35       time_t ldns_rdf2native_time_t(const ldns_rdf *rd);
36

DESCRIPTION

38       ldns_native2rdf_int8()  returns  the  rdf containing the native uint8_t
39              repr.
40              type: the ldns_rdf type to use
41              value: the uint8_t to use
42              Returns ldns_rdf* with the converted value
43
44       ldns_native2rdf_int16() returns the rdf containing the native  uint16_t
45              representation.
46              type: the ldns_rdf type to use
47              value: the uint16_t to use
48              Returns ldns_rdf* with the converted value
49
50       ldns_native2rdf_int32()  returns  an  rdf that contains the given int32
51              value.
52
53              Because multiple rdf types can contain an int32, the  type  must
54              be specified
55              type: the ldns_rdf type to use
56              value: the uint32_t to use
57              Returns ldns_rdf* with the converted value
58
59       ldns_native2rdf_int16_data()  returns  an  int16_data rdf that contains
60              the data in the given array, preceded by an int16 specifying the
61              length.
62
63              The memory is copied, and an LDNS_RDF_TYPE_INT16DATA is returned
64              size: the size of the data
65              *data: pointer to the actual data
66              Returns ldns_rd* the rdf with the data
67
68       ldns_rdf2native_int8()  returns  the native uint8_t representation from
69              the rdf.
70              rd: the ldns_rdf to operate on
71              Returns uint8_t the value extracted
72
73       ldns_rdf2native_int16() returns the native uint16_t representation from
74              the rdf.
75              rd: the ldns_rdf to operate on
76              Returns uint16_t the value extracted
77
78       ldns_rdf2native_int32() returns the native uint32_t representation from
79              the rdf.
80              rd: the ldns_rdf to operate on
81              Returns uint32_t the value extracted
82
83       ldns_rdf2native_sockaddr_storage() returns the native  sockaddr  repre‐
84              sentation from the rdf.
85              rd: the ldns_rdf to operate on
86              port: what port to use. 0 means; use default (53)
87              size: what is the size of the sockaddr_storage
88              Returns  struct  sockaddr*  the  address  in the format so other
89              functions can use it (sendto)
90
91       ldns_rdf2native_time_t() returns the native time_t representation  from
92              the rdf.
93              rd: the ldns_rdf to operate on
94              Returns time_t the value extracted (32 bits currently)
95

AUTHOR

97       The  ldns  team  at  NLnet Labs. Which consists out of Jelte Jansen and
98       Miek Gieben.
99
100

REPORTING BUGS

102       Please report bugs to ldns-team@nlnetlabs.nl  or  in  our  bugzilla  at
103       http://www.nlnetlabs.nl/bugs/index.html
104
105
107       Copyright (c) 2004 - 2006 NLnet Labs.
108
109       Licensed under the BSD License. There is NO warranty; not even for MER‐
110       CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
111
112

SEE ALSO

114       ldns_rdf.  And perldoc Net::DNS,  RFC1034,  RFC1035,  RFC4033,  RFC4034
115       and RFC4035.
116

REMARKS

118       This manpage was automaticly generated from the ldns source code by use
119       of Doxygen and some perl.
120
121
122
123                                  30 May 2006                          ldns(3)
Impressum