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

NAME

6       ldns_pkt, ldns_pkt_section, ldns_pkt_type - request or anser packets
7       types
8
9

SYNOPSIS

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

DESCRIPTION

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

AUTHOR

74       The ldns team at NLnet Labs. Which consists out of Jelte Jansen and
75       Miek Gieben.
76
77

REPORTING BUGS

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

SEE ALSO

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

REMARKS

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