mirror of https://github.com/bol-van/zapret/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
647 B
32 lines
647 B
#pragma once
|
|
|
|
#include "params.h"
|
|
#include "strpool.h"
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include <stdio.h>
|
|
|
|
#define Q_RCVBUF (128*1024) // in bytes
|
|
#define Q_MAXLEN 1024 // in packets
|
|
|
|
struct params_s
|
|
{
|
|
bool debug;
|
|
int wsize;
|
|
int qnum;
|
|
bool hostcase, hostnospace;
|
|
char hostspell[4];
|
|
enum dpi_desync_mode desync_mode;
|
|
bool desync_retrans,desync_skip_nosni,desync_any_proto;
|
|
int desync_split_pos;
|
|
uint8_t desync_ttl;
|
|
uint8_t desync_tcp_fooling_mode;
|
|
uint32_t desync_fwmark;
|
|
char hostfile[256];
|
|
strpool *hostlist;
|
|
};
|
|
|
|
extern struct params_s params;
|
|
|
|
#define DLOG(format, ...) {if (params.debug) printf(format, ##__VA_ARGS__);}
|
|
|