GNUnet 0.21.1
GNUNET_TUN_DnsUriRecord Struct Reference

Payload of DNS URI 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...
 

Detailed Description

Payload of DNS URI record (header).

Definition at line 555 of file gnunet_tun_lib.h.

Field Documentation

◆ prio

uint16_t GNUNET_TUN_DnsUriRecord::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 562 of file gnunet_tun_lib.h.

Referenced by GNUNET_DNSPARSER_builder_add_uri(), and GNUNET_DNSPARSER_parse_uri().

◆ weight

uint16_t GNUNET_TUN_DnsUriRecord::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 569 of file gnunet_tun_lib.h.

Referenced by GNUNET_DNSPARSER_builder_add_uri(), and GNUNET_DNSPARSER_parse_uri().


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