1ldns(25 Apr 2005)                                            ldns(25 Apr 2005)
2
3
4

NAME

6       ldns_wire2rr, ldns_wire2pkt, ldns_wire2rdf, ldns_wire2dname
7
8

SYNOPSIS

10       #ifdef HAVE_STDINT_H
11       #include <stdint.h>
12       #endif /* HAVE_STDINT_H */
13
14       #ifdef HAVE_STDBOOL_H
15       #include <stdbool.h>
16       #endif /* HAVE_STDBOOL_H */
17
18       #include <ldns/ldns.h>
19
20       ldns_status ldns_wire2rr(ldns_rr **rr, const uint8_t *wire, size_t max,
21       size_t *pos, ldns_pkt_section section);
22
23       ldns_status  ldns_wire2pkt(ldns_pkt  **packet,  const  uint8_t   *data,
24       size_t len);
25
26       ldns_status ldns_wire2rdf(ldns_rr *rr, const uint8_t *wire, size_t max,
27       size_t *pos);
28
29       ldns_status  ldns_wire2dname(ldns_rdf  **dname,  const  uint8_t  *wire,
30       size_t max, size_t *pos);
31

DESCRIPTION

33       ldns_wire2rr() converts the data on the uint8_t bytearray (in wire for‐
34              mat) to a DNS resource record.  This  function  will  initialize
35              and  allocate  memory space for the rr structure.  The length of
36              the wiredata of this rr is added to the *pos value.
37
38              rr: pointer to the structure to hold the rdata value
39              wire: pointer to the buffer with the data
40              max: the length of the data buffer (in bytes)
41              pos: the position of the rr in the buffer  (ie.  the  number  of
42              bytes from the start of the buffer)
43              section: the section in the packet the rr is meant for
44              Returns LDNS_STATUS_OK if everything succeeds, error otherwise
45
46       ldns_wire2pkt()  converts  the  data  on the uint8_t bytearray (in wire
47              format) to a DNS packet.   This  function  will  initialize  and
48              allocate memory space for the packet structure.
49
50              packet: pointer to the structure to hold the packet
51              data: pointer to the buffer with the data
52              len: the length of the data buffer (in bytes)
53              Returns LDNS_STATUS_OK if everything succeeds, error otherwise
54
55       ldns_wire2rdf()  converts  the  data  on the uint8_t bytearray (in wire
56              format) to a DNS rdata field, and adds it to the list of rdfs in
57              the given rr.  This function will initialize and allocate memory
58              space for the dname structure.  The length of  the  wiredata  of
59              this rdf is added to the *pos value.
60
61              rr: pointer to the ldns_rr structure to hold the rdata value
62              wire: pointer to the buffer with the data
63              max: the length of the data buffer (in bytes)
64              pos:  the  position  of the rdf in the buffer (ie. the number of
65              bytes from the start of the buffer)
66              Returns LDNS_STATUS_OK if everything succeeds, error otherwise
67
68       ldns_wire2dname() converts the data on the uint8_t bytearray  (in  wire
69              format)  to a DNS dname rdata field. This function will initial‐
70              ize and allocate memory  space  for  the  dname  structure.  The
71              length of the wiredata of this rdf is added to the *pos value.
72
73              dname: pointer to the structure to hold the rdata value
74              wire: pointer to the buffer with the data
75              max: the length of the data buffer (in bytes)
76              pos:  the  position  of the rdf in the buffer (ie. the number of
77              bytes from the start of the buffer)
78              Returns LDNS_STATUS_OK if everything succeeds, error otherwise
79

AUTHOR

81       The ldns team at NLnet Labs. Which consists out of: Jelte Jansen,  Erik
82       Rozendaal and Miek Gieben.
83
84

REPORTING BUGS

86       Please  report  bugs  to  ldns-team@nlnetlabs.nl  or in our Bugzilla at
87       http://www.nlnetlabs.nl/bugs/index.html
88
89       Be sure to select ldns as the product.
90
91
93       Copyright (c) 2004, 2005 NLnet Labs.  Licensed under the  BSD  License.
94       There  is  NO  warranty;  not even for MERCHANTABILITY or FITNESS FOR A
95       PARTICULAR PURPOSE.
96

SEE ALSO

98       perldoc Net::DNS, RFC1043, RFC1035, RFC4033, RFC4034 and RFC4035.
99

REMARKS

101       This manpage was automaticly generated from the ldns source code by use
102       of Doxygen and some perl.
103
104
105
106                                                             ldns(25 Apr 2005)
Impressum