GNUnet 0.22.2
GNUNET_GNSRECORD_BoxRecord Struct Reference

Record type used to box up SRV and TLSA records. More...

#include <gnunet_gnsrecord_lib.h>

Data Fields

uint16_t protocol
 Protocol of the boxed record (6 = TCP, 17 = UDP, etc.). More...
 
uint16_t service
 Service of the boxed record (aka port number), in NBO. More...
 
uint32_t record_type
 GNS record type of the boxed record. More...
 

Detailed Description

Record type used to box up SRV and TLSA records.

For example, a TLSA record for "_https._tcp.foo.gnu" will be stored under "foo.gnu" as a BOX record with service 443 (https) and protocol 6 (tcp) and record_type "TLSA". When a BOX record is received, GNS unboxes it if the name contained "_SERVICE._PROTO", otherwise GNS leaves it untouched. This is done to ensure that TLSA (and SRV) records do not require a separate network request, thus making TLSA records inseparable from the "main" A/AAAA/VPN/etc. records.

Definition at line 313 of file gnunet_gnsrecord_lib.h.

Field Documentation

◆ protocol

uint16_t GNUNET_GNSRECORD_BoxRecord::protocol

Protocol of the boxed record (6 = TCP, 17 = UDP, etc.).

Yes, in IP protocols are usually limited to 8 bits. In NBO.

Definition at line 319 of file gnunet_gnsrecord_lib.h.

Referenced by gns_string_to_value(), gns_value_to_string(), handle_gns_resolution_result(), and handle_gns_result().

◆ service

uint16_t GNUNET_GNSRECORD_BoxRecord::service

Service of the boxed record (aka port number), in NBO.

Definition at line 324 of file gnunet_gnsrecord_lib.h.

Referenced by gns_string_to_value(), gns_value_to_string(), handle_gns_resolution_result(), and handle_gns_result().

◆ record_type

uint32_t GNUNET_GNSRECORD_BoxRecord::record_type

GNS record type of the boxed record.

In NBO.

Definition at line 329 of file gnunet_gnsrecord_lib.h.

Referenced by gns_string_to_value(), gns_value_to_string(), handle_gns_resolution_result(), and handle_gns_result().


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