DNS packet. More...
#include <packet.h>
Data Fields | |
ldns_hdr * | _header |
Header section. | |
ldns_rdf * | _answerfrom |
an rdf (A or AAAA) with the IP address of the server it is from | |
struct timeval | timestamp |
Timestamp of the time the packet was sent or created. | |
uint32_t | _querytime |
The duration of the query this packet is an answer to. | |
size_t | _size |
The size of the wire format of the packet in octets. | |
ldns_rr * | _tsig_rr |
Optional tsig rr. | |
uint16_t | _edns_udp_size |
EDNS0 available buffer size, see RFC2671. | |
uint8_t | _edns_extended_rcode |
EDNS0 Extended rcode. | |
uint8_t | _edns_version |
EDNS Version. | |
uint8_t | _edns_present |
uint16_t | _edns_z |
Reserved EDNS data bits. | |
ldns_rdf * | _edns_data |
Arbitrary EDNS rdata. | |
ldns_edns_option_list * | _edns_list |
Structed EDNS data. | |
ldns_rr_list * | _question |
Question section. | |
ldns_rr_list * | _answer |
Answer section. | |
ldns_rr_list * | _authority |
Authority section. | |
ldns_rr_list * | _additional |
Additional section. | |
DNS packet.
This structure contains a complete DNS packet (either a query or an answer)
It is the complete representation of what you actually send to a nameserver, and what it sends back (assuming you are the client here).
ldns_rdf* ldns_struct_pkt::_answerfrom |
struct timeval ldns_struct_pkt::timestamp |
uint32_t ldns_struct_pkt::_querytime |
size_t ldns_struct_pkt::_size |
uint16_t ldns_struct_pkt::_edns_udp_size |
uint8_t ldns_struct_pkt::_edns_extended_rcode |
ldns_rdf* ldns_struct_pkt::_edns_data |
ldns_edns_option_list* ldns_struct_pkt::_edns_list |
ldns_rr_list* ldns_struct_pkt::_question |
ldns_rr_list* ldns_struct_pkt::_answer |
ldns_rr_list* ldns_struct_pkt::_authority |
ldns_rr_list* ldns_struct_pkt::_additional |