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

NAME

6       ldns_pkt, ldns_pkt_section, ldns_pkt_type - request or answer 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                   Structed EDNS data:
59                   ldns_edns_option_list *_edns_list;
60                   Question section:
61                   ldns_rr_list   *_question;
62                   Answer section:
63                   ldns_rr_list   *_answer;
64                   Authority section:
65                   ldns_rr_list   *_authority;
66                   Additional section:
67                   ldns_rr_list   *_additional;
68              };
69              typedef struct ldns_struct_pkt ldns_pkt;
70
71       ldns_pkt_section()
72
73       ldns_pkt_type()
74

AUTHOR

76       The ldns team at NLnet Labs.
77
78

REPORTING BUGS

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

SEE ALSO

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

REMARKS

115       This manpage was automatically generated from the ldns source code.
116
117
118
119                                  30 May 2006                          ldns(3)
Impressum