Easy-to-process, parsed version of a DNS packet. More...
#include <gnunet_dnsparser_lib.h>
Data Fields | |
struct GNUNET_DNSPARSER_Query * | queries |
Array of all queries in the packet, must contain "num_queries" entries. More... | |
struct GNUNET_DNSPARSER_Record * | answers |
Array of all answers in the packet, must contain "num_answers" entries. More... | |
struct GNUNET_DNSPARSER_Record * | authority_records |
Array of all authority records in the packet, must contain "num_authority_records" entries. More... | |
struct GNUNET_DNSPARSER_Record * | additional_records |
Array of all additional answers in the packet, must contain "num_additional_records" entries. More... | |
unsigned int | num_queries |
Number of queries in the packet. More... | |
unsigned int | num_answers |
Number of answers in the packet, should be 0 for queries. More... | |
unsigned int | num_authority_records |
Number of authoritative answers in the packet, should be 0 for queries. More... | |
unsigned int | num_additional_records |
Number of additional records in the packet, should be 0 for queries. More... | |
struct GNUNET_TUN_DnsFlags | flags |
Bitfield of DNS flags. More... | |
uint16_t | id |
DNS ID (to match replies to requests). More... | |
Easy-to-process, parsed version of a DNS packet.
Definition at line 541 of file gnunet_dnsparser_lib.h.
struct GNUNET_DNSPARSER_Query* GNUNET_DNSPARSER_Packet::queries |
Array of all queries in the packet, must contain "num_queries" entries.
Definition at line 546 of file gnunet_dnsparser_lib.h.
Referenced by handle_request(), pack(), reply_to_dns(), and result_processor().
struct GNUNET_DNSPARSER_Record* GNUNET_DNSPARSER_Packet::answers |
Array of all answers in the packet, must contain "num_answers" entries.
Definition at line 551 of file gnunet_dnsparser_lib.h.
Referenced by dns_post_request_handler(), handle_resolve_result(), reply_to_dns(), result_processor(), and submit_request().
struct GNUNET_DNSPARSER_Record* GNUNET_DNSPARSER_Packet::authority_records |
Array of all authority records in the packet, must contain "num_authority_records" entries.
Definition at line 556 of file gnunet_dnsparser_lib.h.
Referenced by dns_post_request_handler(), handle_resolve_result(), and submit_request().
struct GNUNET_DNSPARSER_Record* GNUNET_DNSPARSER_Packet::additional_records |
Array of all additional answers in the packet, must contain "num_additional_records" entries.
Definition at line 561 of file gnunet_dnsparser_lib.h.
Referenced by dns_post_request_handler(), handle_resolve_result(), reply_to_dns(), and submit_request().
unsigned int GNUNET_DNSPARSER_Packet::num_queries |
Number of queries in the packet.
Definition at line 566 of file gnunet_dnsparser_lib.h.
Referenced by handle_request(), and pack().
unsigned int GNUNET_DNSPARSER_Packet::num_answers |
Number of answers in the packet, should be 0 for queries.
Definition at line 571 of file gnunet_dnsparser_lib.h.
Referenced by dns_post_request_handler(), handle_request(), handle_resolve_result(), reply_to_dns(), result_processor(), and submit_request().
unsigned int GNUNET_DNSPARSER_Packet::num_authority_records |
Number of authoritative answers in the packet, should be 0 for queries.
Definition at line 576 of file gnunet_dnsparser_lib.h.
Referenced by dns_post_request_handler(), handle_request(), handle_resolve_result(), and submit_request().
unsigned int GNUNET_DNSPARSER_Packet::num_additional_records |
Number of additional records in the packet, should be 0 for queries.
Definition at line 581 of file gnunet_dnsparser_lib.h.
Referenced by dns_post_request_handler(), handle_request(), handle_resolve_result(), reply_to_dns(), and submit_request().
struct GNUNET_TUN_DnsFlags GNUNET_DNSPARSER_Packet::flags |
Bitfield of DNS flags.
Definition at line 586 of file gnunet_dnsparser_lib.h.
Referenced by handle_request(), pack(), reply_to_dns(), result_processor(), and run().
uint16_t GNUNET_DNSPARSER_Packet::id |
DNS ID (to match replies to requests).
Definition at line 591 of file gnunet_dnsparser_lib.h.
Referenced by handle_resolve_result(), and pack().