1ldns(25 Apr 2005) ldns(25 Apr 2005)
2
3
4
6 ldns_rr2wire, ldns_pkt2wire, ldns_rdf2wire, ldns_rr2str, ldns_pkt2str,
7 ldns_rdf2str
8
9
11 #ifdef HAVE_STDINT_H
12 #include <stdint.h>
13 #endif /* HAVE_STDINT_H */
14
15 #ifdef HAVE_STDBOOL_H
16 #include <stdbool.h>
17 #endif /* HAVE_STDBOOL_H */
18
19 #include <ldns/ldns.h>
20
21 ldns_status ldns_rr2wire(uint8_t **dest, const ldns_rr *rr, int, size_t
22 *size);
23
24 ldns_status ldns_pkt2wire(uint8_t **dest, const ldns_pkt *p, size_t
25 *size);
26
27 ldns_status ldns_rdf2wire(uint8_t **dest, const ldns_rdf *rdf, size_t
28 *size);
29
30 char* ldns_rr2str(ldns_rr *rr);
31
32 char* ldns_pkt2str(ldns_pkt *pkt);
33
34 char* ldns_rdf2str(ldns_rdf *rdf);
35
37 ldns_rr2wire() Allocates an array of uint8_t at dest, and puts the
38 wireformat of the given rr in that array. The result_size value
39 contains the length of the array, if it succeeds, and 0 other‐
40 wise (in which case the function also returns NULL)
41
42 If the section argument is LDNS_SECTION_QUESTION, data like ttl
43 and rdata are not put into the result
44
45 dest: pointer to the array of bytes to be created
46 rr: the rr to convert
47 size: the size of the converted result
48
49 ldns_pkt2wire() Allocates an array of uint8_t at dest, and puts the
50 wireformat of the given packet in that array. The result_size
51 value contains the length of the array, if it succeeds, and 0
52 otherwise (in which case the function also returns NULL)
53
54 ldns_rdf2wire() Allocates an array of uint8_t at dest, and puts the
55 wireformat of the given rdf in that array. The result_size value
56 contains the length of the array, if it succeeds, and 0 other‐
57 wise (in which case the function also returns NULL)
58
59 dest: pointer to the array of bytes to be created
60 rdf: the rdata field to convert
61 size: the size of the converted result
62
63 ldns_rr2str() Converts the data in the resource record to presentation
64 format and returns that as a char *. Remember to free it.
65
66 rr: The rdata field to convert
67 Returns null terminated char * data, or NULL on error
68
69 ldns_pkt2str() Converts the data in the DNS packet to presentation for‐
70 mat and returns that as a char *. Remember to free it.
71
72 pkt: The rdata field to convert
73 Returns null terminated char * data, or NULL on error
74
75 ldns_rdf2str() Converts the data in the rdata field to presentation
76 format and returns that as a char *. Remember to free it.
77
78 rdf: The rdata field to convert
79 Returns null terminated char * data, or NULL on error
80
82 The ldns team at NLnet Labs. Which consists out of: Jelte Jansen, Erik
83 Rozendaal and Miek Gieben.
84
85
87 Please report bugs to ldns-team@nlnetlabs.nl or in our Bugzilla at
88 http://www.nlnetlabs.nl/bugs/index.html
89
90 Be sure to select ldns as the product.
91
92
94 Copyright (c) 2004, 2005 NLnet Labs. Licensed under the BSD License.
95 There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
96 PARTICULAR PURPOSE.
97
99 perldoc Net::DNS, RFC1043, RFC1035, RFC4033, RFC4034 and RFC4035.
100
102 This manpage was automaticly generated from the ldns source code by use
103 of Doxygen and some perl.
104
105
106
107 ldns(25 Apr 2005)