1ldns(25 Apr 2005) ldns(25 Apr 2005)
2
3
4
6 ldns_pkt2buffer_str, ldns_pktheader2buffer_str, ldns_rr2buffer_str,
7 ldns_rr_list2buffer_str, ldns_rdf2buffer_str, ldns_key2buffer_str,
8 ldns_pkt2buffer_wire, ldns_rr2buffer_wire, ldns_rdf2buffer_wire,
9 ldns_rrsig2buffer_wire, ldns_rr_rdata2buffer_wire
10
11
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_status ldns_pkt2buffer_str(ldns_buffer *output, ldns_pkt *pkt);
24
25 ldns_status ldns_pktheader2buffer_str(ldns_buffer *output, ldns_pkt
26 *pkt);
27
28 ldns_status ldns_rr2buffer_str(ldns_buffer *output, ldns_rr *rr);
29
30 ldns_status ldns_rr_list2buffer_str(ldns_buffer *output, ldns_rr_list
31 *list);
32
33 ldns_status ldns_rdf2buffer_str(ldns_buffer *output, ldns_rdf *rdf);
34
35 ldns_status ldns_key2buffer_str(ldns_buffer *output, ldns_key *k);
36
37 ldns_status ldns_pkt2buffer_wire(ldns_buffer *output, const ldns_pkt
38 *pkt);
39
40 ldns_status ldns_rr2buffer_wire(ldns_buffer *output, const ldns_rr *rr,
41 int section);
42
43 ldns_status ldns_rdf2buffer_wire(ldns_buffer *output, const ldns_rdf
44 *rdf);
45
46 ldns_status ldns_rrsig2buffer_wire(ldns_buffer *output, ldns_rr
47 *sigrr);
48
49 ldns_status ldns_rr_rdata2buffer_wire(ldns_buffer *output, ldns_rr
50 *rr);
51
53 ldns_pkt2buffer_str() Converts the data in the DNS packet to presenta‐
54 tion format (as char *) and appends it to the given buffer
55
56 output: pointer to the buffer to append the data to
57 pkt: the pointer to the packet to convert
58 Returns status
59
60 ldns_pktheader2buffer_str() Converts the header of a packet to presen‐
61 tation format and appends it to the output buffer
62 output: the buffer to append output to
63 pkt: the packet to convert the header of
64 Returns ldns_status
65
66 ldns_rr2buffer_str() Converts the data in the resource record to pre‐
67 sentation format (as char *) and appends it to the given buffer
68
69 output: pointer to the buffer to append the data to
70 rr: the pointer to the rr field to convert
71 Returns status
72
73 ldns_rr_list2buffer_str() Converts a rr_list to presentation format and
74 appends it to the output buffer
75 output: the buffer to append output to
76 list: the ldns_rr_list to print
77 Returns ldns_status
78
79 ldns_rdf2buffer_str() Converts the data in the rdata field to presenta‐
80 tion format (as char *) and appends it to the given buffer
81
82 output: pointer to the buffer to append the data to
83 rdf: the pointer to the rdafa field containing the data
84 Returns status
85
86 ldns_key2buffer_str() Converts the data in the DNS packet to presenta‐
87 tion format (as char *) and appends it to the given buffer
88
89 output: pointer to the buffer to append the data to
90 k: the pointer to the private key to convert
91 Returns status
92
93 ldns_pkt2buffer_wire() Copies the packet data to the buffer in wire
94 format
95 *output: buffer to append the result to
96 *pkt: packet to convert
97 Returns ldns_status
98
99 ldns_rr2buffer_wire() Copies the rr data to the buffer in wire format
100 *output: buffer to append the result to
101 *rr: resource record to convert
102 section: the section in the packet this rr is supposed to be in
103 (to determine whether to add rdata or not)
104 Returns ldns_status
105
106 ldns_rdf2buffer_wire() Copies the rdata data to the buffer in wire for‐
107 mat
108 *output: buffer to append the result to
109 *rdf: rdata to convert
110 Returns ldns_status
111
112 ldns_rrsig2buffer_wire() Converts a rrsig to wireformat BUT EXCLUDE the
113 rrsig rdata This is needed in DNSSEC verification
114 output: buffer to append the result to
115 sigrr: signature rr to operate on
116 Returns ldns_status
117
118 ldns_rr_rdata2buffer_wire() Converts an rr's rdata to wireformat, while
119 excluding the ownername and all the crap before the rdata. This
120 is needed in DNSSEC keytag calculation, the ds calcalution from
121 the key and maybe elsewhere.
122
123 *output: buffer where to put the result
124 *rr: rr to operate on
125 Returns ldns_status
126
128 The ldns team at NLnet Labs. Which consists out of: Jelte Jansen, Erik
129 Rozendaal and Miek Gieben.
130
131
133 Please report bugs to ldns-team@nlnetlabs.nl or in our Bugzilla at
134 http://www.nlnetlabs.nl/bugs/index.html
135
136 Be sure to select ldns as the product.
137
138
140 Copyright (c) 2004, 2005 NLnet Labs. Licensed under the BSD License.
141 There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
142 PARTICULAR PURPOSE.
143
145 perldoc Net::DNS, RFC1043, RFC1035, RFC4033, RFC4034 and RFC4035.
146
148 This manpage was automaticly generated from the ldns source code by use
149 of Doxygen and some perl.
150
151
152
153 ldns(25 Apr 2005)