1ldns(3) Library Functions Manual ldns(3)
2
3
4
6 ldns_buffer2pkt_wire - convert buffer/wire format to ldns_pkt
7
8
10 #include <stdint.h>
11 #include <stdbool.h>
12
13 #include <ldns/ldns.h>
14
15 ldns_status ldns_buffer2pkt_wire(ldns_pkt **packet, const ldns_buffer
16 *buffer);
17
19 ldns_buffer2pkt_wire() converts the data in the ldns_buffer (in wire
20 format) to a DNS packet. This function will initialize and al‐
21 locate memory space for the packet structure.
22
23 packet: pointer to the structure to hold the packet
24 buffer: the buffer with the data
25 Returns LDNS_STATUS_OK if everything succeeds, error otherwise
26
28 The ldns team at NLnet Labs.
29
30
32 Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at
33 http://www.nlnetlabs.nl/bugs/index.html
34
35
37 Copyright (c) 2004 - 2006 NLnet Labs.
38
39 Licensed under the BSD License. There is NO warranty; not even for MER‐
40 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
41
43 perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035.
44
46 This manpage was automatically generated from the ldns source code.
47
48
49
50 30 May 2006 ldns(3)