GNUnet  0.11.x
Data Fields
GNUNET_DNSPARSER_Packet Struct Reference

Easy-to-process, parsed version of a DNS packet. More...

#include <gnunet_dnsparser_lib.h>

Collaboration diagram for GNUNET_DNSPARSER_Packet:
[legend]

Data Fields

struct GNUNET_DNSPARSER_Queryqueries
 Array of all queries in the packet, must contain "num_queries" entries. More...
 
struct GNUNET_DNSPARSER_Recordanswers
 Array of all answers in the packet, must contain "num_answers" entries. More...
 
struct GNUNET_DNSPARSER_Recordauthority_records
 Array of all authority records in the packet, must contain "num_authority_records" entries. More...
 
struct GNUNET_DNSPARSER_Recordadditional_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...
 

Detailed Description

Easy-to-process, parsed version of a DNS packet.

Definition at line 502 of file gnunet_dnsparser_lib.h.

Field Documentation

◆ queries

struct GNUNET_DNSPARSER_Query* GNUNET_DNSPARSER_Packet::queries

◆ answers

struct GNUNET_DNSPARSER_Record* GNUNET_DNSPARSER_Packet::answers

◆ authority_records

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 517 of file gnunet_dnsparser_lib.h.

Referenced by dns_post_request_handler(), dns_result_parser(), for_all_records(), GNUNET_DNSPARSER_free_packet(), GNUNET_DNSPARSER_pack(), GNUNET_DNSPARSER_parse(), handle_resolve_result(), process_result(), and submit_request().

◆ additional_records

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 522 of file gnunet_dnsparser_lib.h.

Referenced by dns_post_request_handler(), dns_result_parser(), for_all_records(), GNUNET_DNSPARSER_free_packet(), GNUNET_DNSPARSER_pack(), GNUNET_DNSPARSER_parse(), handle_resolve_result(), process_result(), reply_to_dns(), and submit_request().

◆ num_queries

unsigned int GNUNET_DNSPARSER_Packet::num_queries

◆ num_answers

unsigned int GNUNET_DNSPARSER_Packet::num_answers

◆ num_authority_records

unsigned int GNUNET_DNSPARSER_Packet::num_authority_records

◆ num_additional_records

unsigned int GNUNET_DNSPARSER_Packet::num_additional_records

◆ flags

struct GNUNET_TUN_DnsFlags GNUNET_DNSPARSER_Packet::flags

◆ id

uint16_t GNUNET_DNSPARSER_Packet::id

The documentation for this struct was generated from the following file: