mirror of
https://github.com/EndPositive/slipstream.git
synced 2025-10-08 12:25:04 +00:00
Initial version of slipstream DNS tunnel
This commit is contained in:
commit
29f3c50237
18 changed files with 1586 additions and 0 deletions
20
include/slipstream_server_circular_query_buffer.h
Normal file
20
include/slipstream_server_circular_query_buffer.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#ifndef SLIPSTREAM_SERVER_CIRCULAR_QUEUE_BUFFER_H
|
||||
#define SLIPSTREAM_SERVER_CIRCULAR_QUEUE_BUFFER_H
|
||||
|
||||
#define SIZE 4096
|
||||
|
||||
#include "SPCDNS/src/dns.h"
|
||||
|
||||
typedef struct {
|
||||
dns_decoded_t queries[SIZE][DNS_DECODEBUF_4K];
|
||||
size_t tail;
|
||||
size_t head;
|
||||
} circular_query_buffer_t;
|
||||
|
||||
dns_decoded_t* circular_query_buffer_get_write_slot(circular_query_buffer_t* buf);
|
||||
|
||||
dns_decoded_t* circular_query_buffer_get_read_slot(circular_query_buffer_t* buf);
|
||||
|
||||
size_t circular_query_buffer_get_size(circular_query_buffer_t* buf);
|
||||
|
||||
#endif // SLIPSTREAM_SERVER_CIRCULAR_QUEUE_BUFFER_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue