Ripples 1.0
High Performant Software Architecture For Transaction Processing
Loading...
Searching...
No Matches
query.h File Reference
#include <stdbool.h>
#include <sys/socket.h>
#include <time.h>
#include "channel.h"
#include "config.h"
#include "constants.h"
#include "metrics.h"
#include "rip_ns_utils.h"
#include "rr_record.h"
Include dependency graph for query.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  edns_client_subnet_s
 
struct  edns_s
 
struct  query_s
 
struct  query_log_s
 
struct  query_log_loop_args_s
 

Typedefs

typedef struct edns_client_subnet_s edns_client_subnet_t
 
typedef struct edns_s edns_t
 
typedef struct query_s query_t
 
typedef struct query_log_s query_log_t
 
typedef struct query_log_loop_args_s query_log_loop_args_t
 

Functions

void query_init (query_t *q, config_t *cfg, uint8_t protocol)
 
void query_reset (query_t *q)
 
void query_clean (query_t *q)
 
int query_tcp_response_buffer_increase (query_t *q)
 
int query_parse_edns_ext_cs (edns_client_subnet_t *cs)
 
int query_parse_edns_ext (query_t *q, unsigned char *buf, unsigned char *eobuf)
 
int query_parse_request_rr_additional_edns (query_t *q, unsigned char *ptr)
 
int query_parse_request_rr_question (query_t *q)
 
void query_parse (query_t *q)
 
void query_resolve (query_t *q)
 
int query_pack_edns (uint8_t *buf, uint16_t buf_len, edns_t *edns)
 
int query_pack_rr (const unsigned char *name, rr_record_t *rr, unsigned char *buf, uint16_t buf_len, const unsigned char **dnptrs, const unsigned char **lastdnptr)
 
int query_response_pack (query_t *q)
 
int query_log (char *buf, size_t buf_len, query_t *q)
 
void query_log_rotate (query_log_t *query_log)
 
void * query_log_loop (void *args)
 
void query_report_metrics (query_t *, metrics_t *metrics)
 

Detailed Description

Author
Faruk Grozdanic

Copyright (c) 2025 Faruk Grozdanic

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.