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

Array of all queries in the packet, must contain "num_queries" entries.

Definition at line 507 of file gnunet_dnsparser_lib.h.

Referenced by handle_request(), pack(), reply_to_dns(), and result_processor().

◆ answers

struct GNUNET_DNSPARSER_Record* GNUNET_DNSPARSER_Packet::answers

Array of all answers in the packet, must contain "num_answers" entries.

Definition at line 512 of file gnunet_dnsparser_lib.h.

Referenced by dns_post_request_handler(), handle_resolve_result(), reply_to_dns(), result_processor(), and submit_request().

◆ 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(), handle_resolve_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(), handle_resolve_result(), reply_to_dns(), and submit_request().

◆ num_queries

unsigned int GNUNET_DNSPARSER_Packet::num_queries

Number of queries in the packet.

Definition at line 527 of file gnunet_dnsparser_lib.h.

Referenced by handle_request(), and pack().

◆ num_answers

unsigned int GNUNET_DNSPARSER_Packet::num_answers

Number of answers in the packet, should be 0 for queries.

Definition at line 532 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().

◆ num_authority_records

unsigned int GNUNET_DNSPARSER_Packet::num_authority_records

Number of authoritative answers in the packet, should be 0 for queries.

Definition at line 537 of file gnunet_dnsparser_lib.h.

Referenced by dns_post_request_handler(), handle_request(), handle_resolve_result(), and submit_request().

◆ num_additional_records

unsigned int GNUNET_DNSPARSER_Packet::num_additional_records

Number of additional records in the packet, should be 0 for queries.

Definition at line 542 of file gnunet_dnsparser_lib.h.

Referenced by dns_post_request_handler(), handle_request(), handle_resolve_result(), reply_to_dns(), and submit_request().

◆ flags

struct GNUNET_TUN_DnsFlags GNUNET_DNSPARSER_Packet::flags

Bitfield of DNS flags.

Definition at line 542 of file gnunet_dnsparser_lib.h.

Referenced by handle_request(), pack(), reply_to_dns(), result_processor(), and run().

◆ id

uint16_t GNUNET_DNSPARSER_Packet::id

DNS ID (to match replies to requests).

Definition at line 552 of file gnunet_dnsparser_lib.h.

Referenced by handle_resolve_result(), pack(), and gnunet_testing.Peer::start().


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