GNUnet 0.21.2
GNUNET_DNSPARSER_Query Struct Reference

A DNS query. More...

#include <gnunet_dnsparser_lib.h>

Data Fields

char * name
 Name of the record that the query is for (0-terminated). More...
 
uint16_t type
 See GNUNET_DNSPARSER_TYPE_*. More...
 
uint16_t dns_traffic_class
 See GNUNET_TUN_DNS_CLASS_*. More...
 

Detailed Description

A DNS query.

Definition at line 102 of file gnunet_dnsparser_lib.h.

Field Documentation

◆ name

char* GNUNET_DNSPARSER_Query::name

Name of the record that the query is for (0-terminated).

In UTF-8 format. The library will convert from and to DNS-IDNA as necessary. Use GNUNET_DNSPARSER_check_label() to test if an individual label is well-formed. If a given name is not well-formed, creating the DNS packet will fail.

Definition at line 111 of file gnunet_dnsparser_lib.h.

Referenced by display_query(), GNUNET_DNSPARSER_builder_add_query(), handle_request(), pack(), recursive_dns_resolution(), reply_to_dns(), and result_processor().

◆ type

uint16_t GNUNET_DNSPARSER_Query::type

◆ dns_traffic_class

uint16_t GNUNET_DNSPARSER_Query::dns_traffic_class

See GNUNET_TUN_DNS_CLASS_*.

Definition at line 121 of file gnunet_dnsparser_lib.h.

Referenced by display_query(), GNUNET_DNSPARSER_builder_add_query(), pack(), and recursive_dns_resolution().


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