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
67              Returns ldns_rd* the rdf with the data
68
69       ldns_rdf2native_int8()  returns  the native uint8_t representation from
70              the rdf.
71              rd: the ldns_rdf to operate on
72              Returns uint8_t the value extracted
73
74       ldns_rdf2native_int16() returns the native uint16_t representation from
75              the rdf.
76              rd: the ldns_rdf to operate on
77              Returns uint16_t the value extracted
78
79       ldns_rdf2native_int32() returns the native uint32_t representation from
80              the rdf.
81              rd: the ldns_rdf to operate on
82              Returns uint32_t the value extracted
83
84       ldns_rdf2native_sockaddr_storage() returns the native  sockaddr  repre‐
85              sentation from the rdf.
86              rd: the ldns_rdf to operate on
87              port: what port to use. 0 means; use default (53)
88              size: what is the size of the sockaddr_storage
89              Returns  struct  sockaddr*  the  address  in the format so other
90              functions can use it (sendto)
91
92       ldns_rdf2native_time_t() returns the native time_t representation  from
93              the rdf.
94              rd: the ldns_rdf to operate on
95              Returns time_t the value extracted (32 bits currently)
96

AUTHOR

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

REPORTING BUGS

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

SEE ALSO

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

REMARKS

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