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

NAME

6       ldns_pkt, ldns_pkt_section, ldns_pkt_type
7
8

SYNOPSIS

10       #include <stdint.h>
11       #include <stdbool.h>
12
13       #include <ldns/ldns.h>
14
15        ldns_pkt_section();
16
17        ldns_pkt_type();
18

DESCRIPTION

20       ldns_pkt
21              DNS packet
22
23              This structure contains a complete DNS packet (either a query or
24              an answer)
25
26              It is the complete representation of what you actually send to a
27              nameserver, and what it sends back (assuming you are the  client
28              here).
29              struct ldns_struct_pkt
30              {
31                   Header section:
32                   ldns_hdr *_header;
33                   /* extra items needed in a packet */
34                   The size of the wire format of the packet in octets:
35                   ldns_rdf *_answerfrom;
36                      Timestamp of the time the packet was sent or created:
37                   struct timeval timestamp;
38                   The duration of the query this packet is an answer to:
39                   uint32_t _querytime;
40                   The size of the wire format of the packet in octets:
41                   size_t _size;
42                   Optional tsig rr:
43                   ldns_rr *_tsig_rr;
44                   EDNS0 available buffer size, see RFC2671:
45                   uint16_t _edns_udp_size;
46                   EDNS0 Extended rcode:
47                   uint8_t _edns_extended_rcode;
48                   EDNS Version:
49                   uint8_t _edns_version;
50                   Reserved EDNS data bits:
51                   uint16_t _edns_z;
52                   Arbitrary EDNS rdata:
53                   ldns_rdf *_edns_data;
54                   Question section:
55                   ldns_rr_list   *_question;
56                   Answer section:
57                   ldns_rr_list   *_answer;
58                   Authority section:
59                   ldns_rr_list   *_authority;
60                   Additional section:
61                   ldns_rr_list   *_additional;
62              };
63              typedef struct ldns_struct_pkt ldns_pkt;
64
65       ldns_pkt_section()
66
67       ldns_pkt_type()
68

AUTHOR

70       The  ldns  team  at  NLnet Labs. Which consists out of Jelte Jansen and
71       Miek Gieben.
72
73

REPORTING BUGS

75       Please report bugs to ldns-team@nlnetlabs.nl  or  in  our  bugzilla  at
76       http://www.nlnetlabs.nl/bugs/index.html
77
78
80       Copyright (c) 2004 - 2006 NLnet Labs.
81
82       Licensed under the BSD License. There is NO warranty; not even for MER‐
83       CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
84
85

SEE ALSO

87       ldns_pkt_new,   ldns_pkt_free,   ldns_pkt_print,    ldns_pkt_query_new,
88       ldns_pkt_query_new_frm_str,      ldns_pkt_reply_type,      ldns_pkt_id,
89       ldns_pkt_qr,  ldns_pkt_aa,   ldns_pkt_tc,   ldns_pkt_rd,   ldns_pkt_cd,
90       ldns_pkt_ra,   ldns_pkt_ad,   ldns_pkt_get_opcode,  ldns_pkt_get_rcode,
91       ldns_pkt_qdcount, ldns_pkt_ancount, ldns_pkt_nscount, ldns_pkt_arcount,
92       ldns_pkt_answerfrom,  ldns_pkt_querytime, ldns_pkt_size, ldns_pkt_tsig,
93       ldns_pkt_question, ldns_pkt_answer, ldns_pkt_authority,  ldns_pkt_addi‐
94       tional,      ldns_pkt_get_section_clone,      ldns_pkt_rr_list_by_name,
95       ldns_pkt_rr_list_by_type,            ldns_pkt_rr_list_by_name_and_type,
96       ldns_pkt_set_flags,  ldns_pkt_set_id, ldns_pkt_set_qr, ldns_pkt_set_aa,
97       ldns_pkt_set_tc,  ldns_pkt_set_rd,  ldns_pkt_set_cd,   ldns_pkt_set_ra,
98       ldns_pkt_set_ad,        ldns_pkt_set_opcode,        ldns_pkt_set_rcode,
99       ldns_pkt_set_qdcount,    ldns_pkt_set_ancount,    ldns_pkt_set_nscount,
100       ldns_pkt_set_arcount,  ldns_pkt_set_answerfrom, ldns_pkt_set_querytime,
101       ldns_pkt_set_size,    ldns_pkt_set_section_count,    ldns_pkt_set_tsig,
102       ldns_pkt_edns,   ldns_pkt_edns_udp_size,  ldns_pkt_edns_extended_rcode,
103       ldns_pkt_edns_version,       ldns_pkt_edns_z,       ldns_pkt_edns_data,
104       ldns_pkt_set_edns_udp_size,           ldns_pkt_set_edns_extended_rcode,
105       ldns_pkt_set_edns_version, ldns_pkt_set_edns_z, ldns_pkt_set_edns_data.
106       And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034  and RFC4035.
107

REMARKS

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