|
Ripples 1.0
High Performant Software Architecture For Transaction Processing
|
#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 |
Structure for EDNS client subnet option.
| unsigned char* edns_client_subnet_s::edns_cs_raw_buf |
Pointer in request_buffer where EDNS client subnet opt begins.
| 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.
| 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).
| uint16_t edns_client_subnet_s::family |
Client subnet IP family, 1 = IPv4, 2 = IPv6.
| struct sockaddr_storage edns_client_subnet_s::ip |
Client subnet IP.
| 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).
| 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)