GNUnet 0.21.1
GNUNET_TUN_DnsSrvRecord Struct Reference

Payload of DNS SRV record (header). More...

#include <gnunet_tun_lib.h>

Data Fields

uint16_t prio
 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

Payload of DNS SRV record (header).

Definition at line 527 of file gnunet_tun_lib.h.

Field Documentation

◆ prio

uint16_t GNUNET_TUN_DnsSrvRecord::prio

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. (NBO)

Definition at line 534 of file gnunet_tun_lib.h.

Referenced by GNUNET_DNSPARSER_builder_add_srv(), and GNUNET_DNSPARSER_parse_srv().

◆ weight

uint16_t GNUNET_TUN_DnsSrvRecord::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. (NBO)

Definition at line 541 of file gnunet_tun_lib.h.

Referenced by GNUNET_DNSPARSER_builder_add_srv(), and GNUNET_DNSPARSER_parse_srv().

◆ port

uint16_t GNUNET_TUN_DnsSrvRecord::port

TCP or UDP port of the service.

(NBO)

Definition at line 546 of file gnunet_tun_lib.h.

Referenced by GNUNET_DNSPARSER_builder_add_srv(), and GNUNET_DNSPARSER_parse_srv().


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