GNUnet  0.11.x
Data Fields
GNUNET_DNSPARSER_SrvRecord Struct Reference

Information from SRV records (RFC 2782). More...

#include <gnunet_dnsparser_lib.h>

Data Fields

char * target
 Hostname offering the service. More...
 
uint16_t priority
 Preference for this entry (lower value is higher preference). More...
 
uint16_t weight
 Relative weight for records with the same priority. More...
 
uint16_t port
 TCP or UDP port of the service. More...
 

Detailed Description

Information from SRV records (RFC 2782).

Definition at line 142 of file gnunet_dnsparser_lib.h.

Field Documentation

◆ target

char* GNUNET_DNSPARSER_SrvRecord::target

Hostname offering the service.

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

Referenced by display_record(), dns_string_to_value(), dns_value_to_string(), GNUNET_DNSPARSER_builder_add_srv(), GNUNET_DNSPARSER_duplicate_srv_record(), GNUNET_DNSPARSER_free_srv(), GNUNET_DNSPARSER_parse_srv(), handle_gns_resolution_result(), and process_record().

◆ priority

uint16_t GNUNET_DNSPARSER_SrvRecord::priority

Preference for this entry (lower value is higher preference).

Clients will contact hosts from the lowest-priority group first and fall back to higher priorities if the low-priority entries are unavailable.

Definition at line 158 of file gnunet_dnsparser_lib.h.

Referenced by display_record(), dns_string_to_value(), dns_value_to_string(), GNUNET_DNSPARSER_builder_add_srv(), GNUNET_DNSPARSER_parse_srv(), and process_record().

◆ weight

uint16_t GNUNET_DNSPARSER_SrvRecord::weight

Relative weight for records with the same priority.

Clients will use the hosts of the same (lowest) priority with a probability proportional to the weight given.

Definition at line 165 of file gnunet_dnsparser_lib.h.

Referenced by display_record(), dns_string_to_value(), dns_value_to_string(), GNUNET_DNSPARSER_builder_add_srv(), GNUNET_DNSPARSER_parse_srv(), and process_record().

◆ port

uint16_t GNUNET_DNSPARSER_SrvRecord::port

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