1ldns(25 Apr 2005)                                            ldns(25 Apr 2005)
2
3
4

NAME

6       ldns_pkt, ldns_pkt_section, ldns_pkt_type
7
8

SYNOPSIS

10       #ifdef HAVE_STDINT_H
11       #include <stdint.h>
12       #endif /* HAVE_STDINT_H */
13
14       #ifdef HAVE_STDBOOL_H
15       #include <stdbool.h>
16       #endif /* HAVE_STDBOOL_H */
17
18       #include <ldns/ldns.h>
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              struct ldns_struct_pkt
27              {
28                   header section:
29                   ldns_hdr *_header;
30                   /* extra items needed in a packet */
31                   the size in bytes of the pkt:
32                   uint16_t _answersize;
33                   ldns_rdf *_answerfrom;
34                   char *_when;
35                   query duration:
36                   uint32_t _querytime;
37                   the packet size:
38                   size_t _size;
39                   optional tsig rr:
40                   ldns_rr *_tsig_rr;
41                   EDNS0 values:
42                   uint16_t _edns_udp_size;
43                   uint8_t _edns_extended_rcode;
44                   uint8_t _edns_version;
45                   uint16_t _edns_z;
46                   ldns_rdf *_edns_data;
47                   query data:
48                   question section:
49                   ldns_rr_list   *_question;
50                   answer section:
51                   ldns_rr_list   *_answer;
52                   auth section:
53                   ldns_rr_list   *_authority;
54                   add section:
55                   ldns_rr_list   *_additional;
56              };
57              typedef struct ldns_struct_pkt ldns_pkt;
58
59       ldns_pkt_section
60              The sections of a packet
61              enum ldns_enum_pkt_section {
62                   LDNS_SECTION_QUESTION = 0,
63                   LDNS_SECTION_ANSWER = 1,
64                   LDNS_SECTION_AUTHORITY = 2,
65                   LDNS_SECTION_ADDITIONAL = 3,
66                   bogus section, if not interested:
67                   LDNS_SECTION_ANY = 4,
68                   used to get all non-question rrs from a packet:
69                   LDNS_SECTION_ANY_NOQUESTION = 5
70              };
71              typedef enum ldns_enum_pkt_section ldns_pkt_section;
72
73       ldns_pkt_type
74              The different types of packets
75              enum ldns_enum_pkt_type {
76                   LDNS_PACKET_QUESTION,
77                   LDNS_PACKET_REFERRAL,
78                   LDNS_PACKET_ANSWER,
79                   LDNS_PACKET_NXDOMAIN,
80                   LDNS_PACKET_NODATA,
81                   LDNS_PACKET_UNKNOWN
82              };
83              typedef enum ldns_enum_pkt_type ldns_pkt_type;
84

AUTHOR

86       The ldns team at NLnet Labs. Which consists out of: Jelte Jansen,  Erik
87       Rozendaal and Miek Gieben.
88
89

REPORTING BUGS

91       Please  report  bugs  to  ldns-team@nlnetlabs.nl  or in our Bugzilla at
92       http://www.nlnetlabs.nl/bugs/index.html
93
94       Be sure to select ldns as the product.
95
96
98       Copyright (c) 2004, 2005 NLnet Labs.  Licensed under the  BSD  License.
99       There  is  NO  warranty;  not even for MERCHANTABILITY or FITNESS FOR A
100       PARTICULAR PURPOSE.
101
102

SEE ALSO

104       ldns_pkt_new,  ldns_pkt_id,  ldns_pkt_set_flags,  ldns_pkt_edns.    And
105       perldoc Net::DNS, RFC1043, RFC1035, RFC4033, RFC4034  and RFC4035.
106

REMARKS

108       This manpage was automaticly generated from the ldns source code by use
109       of Doxygen and some perl.
110
111
112
113                                                             ldns(25 Apr 2005)
Impressum