1ldns(25 Apr 2005)                                            ldns(25 Apr 2005)
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
10
11

SYNOPSIS

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

DESCRIPTION

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

AUTHOR

95       The ldns team at NLnet Labs. Which consists out of: Jelte Jansen,  Erik
96       Rozendaal and Miek Gieben.
97
98

REPORTING BUGS

100       Please  report  bugs  to  ldns-team@nlnetlabs.nl  or in our Bugzilla at
101       http://www.nlnetlabs.nl/bugs/index.html
102
103       Be sure to select ldns as the product.
104
105
107       Copyright (c) 2004, 2005 NLnet Labs.  Licensed under the  BSD  License.
108       There  is  NO  warranty;  not even for MERCHANTABILITY or FITNESS FOR A
109       PARTICULAR PURPOSE.
110
111

SEE ALSO

113       ldns_rdf.  And perldoc Net::DNS,  RFC1043,  RFC1035,  RFC4033,  RFC4034
114       and RFC4035.
115

REMARKS

117       This manpage was automaticly generated from the ldns source code by use
118       of Doxygen and some perl.
119
120
121
122                                                             ldns(25 Apr 2005)
Impressum