mirror of
https://github.com/bol-van/zapret.git
synced 2026-03-14 17:21:50 +00:00
nfqws: fakeknown, udplen desync modes
This commit is contained in:
@@ -22,6 +22,7 @@ enum dpi_desync_mode {
|
||||
DESYNC_NONE=0,
|
||||
DESYNC_INVALID,
|
||||
DESYNC_FAKE,
|
||||
DESYNC_FAKE_KNOWN,
|
||||
DESYNC_RST,
|
||||
DESYNC_RSTACK,
|
||||
DESYNC_SYNACK,
|
||||
@@ -32,7 +33,8 @@ enum dpi_desync_mode {
|
||||
DESYNC_IPFRAG2,
|
||||
DESYNC_HOPBYHOP,
|
||||
DESYNC_DESTOPT,
|
||||
DESYNC_IPFRAG1
|
||||
DESYNC_IPFRAG1,
|
||||
DESYNC_UDPLEN
|
||||
};
|
||||
|
||||
extern const char *fake_http_request_default;
|
||||
@@ -43,6 +45,8 @@ bool desync_valid_zero_stage(enum dpi_desync_mode mode);
|
||||
bool desync_valid_first_stage(enum dpi_desync_mode mode);
|
||||
bool desync_only_first_stage(enum dpi_desync_mode mode);
|
||||
bool desync_valid_second_stage(enum dpi_desync_mode mode);
|
||||
bool desync_valid_second_stage_tcp(enum dpi_desync_mode mode);
|
||||
bool desync_valid_second_stage_udp(enum dpi_desync_mode mode);
|
||||
|
||||
void desync_init();
|
||||
packet_process_result dpi_desync_tcp_packet(uint8_t *data_pkt, size_t len_pkt, struct ip *ip, struct ip6_hdr *ip6hdr, struct tcphdr *tcphdr, size_t len_tcp, uint8_t *data_payload, size_t len_payload);
|
||||
|
||||
Reference in New Issue
Block a user