1ldns(3)                    Library Functions Manual                    ldns(3)
2
3
4

NAME

6       ldns_pkt_edns, ldns_pkt_edns_udp_size, ldns_pkt_edns_extended_rcode,
7       ldns_pkt_edns_version, ldns_pkt_edns_z, ldns_pkt_edns_data,
8       ldns_pkt_set_edns_udp_size, ldns_pkt_set_edns_extended_rcode,
9       ldns_pkt_set_edns_version, ldns_pkt_set_edns_z, ldns_pkt_set_edns_data
10       - ldns_pkt ends0 related functions
11
12

SYNOPSIS

14       #include <stdint.h>
15       #include <stdbool.h>
16
17       #include <ldns/ldns.h>
18
19       bool ldns_pkt_edns(const ldns_pkt *packet);
20
21       uint16_t ldns_pkt_edns_udp_size(const ldns_pkt *packet);
22
23       uint8_t ldns_pkt_edns_extended_rcode(const ldns_pkt *packet);
24
25       uint8_t ldns_pkt_edns_version(const ldns_pkt *packet);
26
27       uint16_t ldns_pkt_edns_z(const ldns_pkt *packet);
28
29       ldns_rdf* ldns_pkt_edns_data(const ldns_pkt *packet);
30
31       void ldns_pkt_set_edns_udp_size(ldns_pkt *packet, uint16_t s);
32
33       void ldns_pkt_set_edns_extended_rcode(ldns_pkt *packet, uint8_t c);
34
35       void ldns_pkt_set_edns_version(ldns_pkt *packet, uint8_t v);
36
37       void ldns_pkt_set_edns_z(ldns_pkt *packet, uint16_t z);
38
39       void ldns_pkt_set_edns_data(ldns_pkt *packet, ldns_rdf *data);
40

DESCRIPTION

42       ldns_pkt_edns() returns true if this packet needs and EDNS rr to be
43              sent.  At the moment the only reason is an expected packet size
44              larger than 512 bytes, but for instance dnssec would be a good
45              reason too.
46
47              packet: the packet to check
48              Returns true if packet needs edns rr
49
50       ldns_pkt_edns_udp_size() return the packet's edns udp size
51              packet: the packet
52              Returns the size
53
54       ldns_pkt_edns_extended_rcode() return the packet's edns extended rcode
55              packet: the packet
56              Returns the rcode
57
58       ldns_pkt_edns_version() return the packet's edns version
59              packet: the packet
60              Returns the version
61
62       ldns_pkt_edns_z() return the packet's edns z value
63              packet: the packet
64              Returns the z value
65
66       ldns_pkt_edns_data() return the packet's edns data
67              packet: the packet
68              Returns the data
69
70       ldns_pkt_set_edns_udp_size() Set the packet's edns udp size
71              packet: the packet
72              s: the size
73
74       ldns_pkt_set_edns_extended_rcode() Set the packet's edns extended rcode
75              packet: the packet
76              c: the code
77
78       ldns_pkt_set_edns_version() Set the packet's edns version
79              packet: the packet
80              v: the version
81
82       ldns_pkt_set_edns_z() Set the packet's edns z value
83              packet: the packet
84              z: the value
85
86       ldns_pkt_set_edns_data() Set the packet's edns data
87              packet: the packet
88              data: the data
89

AUTHOR

91       The ldns team at NLnet Labs. Which consists out of Jelte Jansen and
92       Miek Gieben.
93
94

REPORTING BUGS

96       Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at
97       http://www.nlnetlabs.nl/bugs/index.html
98
99
101       Copyright (c) 2004 - 2006 NLnet Labs.
102
103       Licensed under the BSD License. There is NO warranty; not even for MER‐
104       CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
105
106

SEE ALSO

108       ldns_pkt.  And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034
109       and RFC4035.
110

REMARKS

112       This manpage was automatically generated from the ldns source code by
113       use of Doxygen and some perl.
114
115
116
117                                  30 May 2006                          ldns(3)
Impressum