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
11

SYNOPSIS

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

DESCRIPTION

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

AUTHOR

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

REPORTING BUGS

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

SEE ALSO

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

REMARKS

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