byedpi/params.h

43 lines
652 B
C
Raw Normal View History

2023-06-12 07:00:33 +03:00
#include <stdio.h>
2023-06-03 22:52:10 +03:00
enum demode {
DESYNC_NONE,
DESYNC_SPLIT,
DESYNC_DISORDER,
DESYNC_FAKE
};
struct params {
int ttl;
int split;
size_t sfdelay;
enum demode attack;
char split_host;
int def_ttl;
int mod_http;
char ipv6;
char resolve;
char de_known;
int max_open;
int debug;
size_t bfsize;
int send_bfsz;
};
extern struct params params;
struct packet {
size_t size;
char *data;
};
extern struct packet fake_tls;
extern struct packet fake_http;
#define LOG_S 1
#define LOG_L 2
#define LOG(s, str, ...) \
2023-06-12 11:01:40 +03:00
if (params.debug >= s) printf(str, ##__VA_ARGS__)