Ripples 1.0
High Performant Software Architecture For Transaction Processing
Loading...
Searching...
No Matches
edns_client_subnet_s Struct Reference

#include <query.h>

Data Fields

unsigned char * edns_cs_raw_buf
 
uint16_t edns_cs_raw_buf_len
 
bool edns_cs_valid
 
uint16_t family
 
struct sockaddr_storage ip
 
uint8_t source_mask
 
uint8_t scope_mask
 

Detailed Description

Structure for EDNS client subnet option.

Field Documentation

◆ edns_cs_raw_buf

unsigned char* edns_client_subnet_s::edns_cs_raw_buf

Pointer in request_buffer where EDNS client subnet opt begins.

◆ edns_cs_raw_buf_len

uint16_t edns_client_subnet_s::edns_cs_raw_buf_len

Length of data in raw buffer for EDNS client subnet opt. A length of 0 means that EDNS client subnet is not present in query request.

◆ edns_cs_valid

bool edns_client_subnet_s::edns_cs_valid

Flag to indicate if EDNS client subnet is present & valid (should be used when forming a response).

◆ family

uint16_t edns_client_subnet_s::family

Client subnet IP family, 1 = IPv4, 2 = IPv6.

◆ ip

struct sockaddr_storage edns_client_subnet_s::ip

Client subnet IP.

◆ scope_mask

uint8_t edns_client_subnet_s::scope_mask

Client subnet scope mask. This is the mask that we are responding for. Set by response, in query it MUST be 0 (RFC 7871).

◆ source_mask

uint8_t edns_client_subnet_s::source_mask

Client subnet source mask. This is the mask requested. Set by query, response mirrors what was in query. (RFC 7871)


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