1ldns(3) Library Functions Manual ldns(3)
2
3
4
6 ldns_rr2wire, ldns_pkt2wire, ldns_rdf2wire
7
8
10 #include <stdint.h>
11 #include <stdbool.h>
12
13 #include <ldns/ldns.h>
14
15 ldns_status ldns_rr2wire(uint8_t **dest, const ldns_rr *rr, int, size_t
16 *size);
17
18 ldns_status ldns_pkt2wire(uint8_t **dest, const ldns_pkt *p, size_t
19 *size);
20
21 ldns_status ldns_rdf2wire(uint8_t **dest, const ldns_rdf *rdf, size_t
22 *size);
23
25 ldns_rr2wire() Allocates an array of uint8_t at dest, and puts the
26 wireformat of the given rr in that array. The result_size value
27 contains the length of the array, if it succeeds, and 0 other‐
28 wise (in which case the function also returns NULL)
29
30 If the section argument is LDNS_SECTION_QUESTION, data like ttl
31 and rdata are not put into the result
32
33 dest: pointer to the array of bytes to be created
34 rr: the rr to convert
35 size: the size of the converted result
36
37 ldns_pkt2wire() Allocates an array of uint8_t at dest, and puts the
38 wireformat of the given packet in that array. The result_size
39 value contains the length of the array, if it succeeds, and 0
40 otherwise (in which case the function also returns NULL)
41
42 ldns_rdf2wire() Allocates an array of uint8_t at dest, and puts the
43 wireformat of the given rdf in that array. The result_size value
44 contains the length of the array, if it succeeds, and 0 other‐
45 wise (in which case the function also returns NULL)
46
47 dest: pointer to the array of bytes to be created
48 rdf: the rdata field to convert
49 size: the size of the converted result
50
52 The ldns team at NLnet Labs. Which consists out of Jelte Jansen and
53 Miek Gieben.
54
55
57 Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at
58 http://www.nlnetlabs.nl/bugs/index.html
59
60
62 Copyright (c) 2004 - 2006 NLnet Labs.
63
64 Licensed under the BSD License. There is NO warranty; not even for MER‐
65 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
66
67
69 ldns_wire2rr, ldns_wire2pkt, ldns_wire2rdf. And perldoc Net::DNS,
70 RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035.
71
73 This manpage was automaticly generated from the ldns source code by use
74 of Doxygen and some perl.
75
76
77
78 30 May 2006 ldns(3)