diff --git a/nfq/desync.c b/nfq/desync.c index 26e1c7b..0cfa059 100644 --- a/nfq/desync.c +++ b/nfq/desync.c @@ -76,13 +76,6 @@ void randomize_default_tls_payload(uint8_t *p) #define PKTDATA_MAXDUMP 32 #define IP_MAXDUMP 80 -static uint8_t zeropkt[DPI_DESYNC_MAX_FAKE_LEN]; - -void desync_init(void) -{ - memset(zeropkt, 0, sizeof(zeropkt)); -} - bool desync_valid_zero_stage(enum dpi_desync_mode mode) { return mode==DESYNC_SYNACK || mode==DESYNC_SYNDATA; diff --git a/nfq/desync.h b/nfq/desync.h index ad3aaf0..294a4fb 100644 --- a/nfq/desync.h +++ b/nfq/desync.h @@ -52,5 +52,4 @@ 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(void); uint8_t dpi_desync_packet(uint32_t fwmark, const char *ifout, uint8_t *data_pkt, size_t *len_pkt); diff --git a/nfq/nfqws.c b/nfq/nfqws.c index 82b9cbc..51cde19 100644 --- a/nfq/nfqws.c +++ b/nfq/nfqws.c @@ -84,8 +84,6 @@ static void pre_desync(void) signal(SIGHUP, onhup); signal(SIGUSR1, onusr1); signal(SIGUSR2, onusr2); - - desync_init(); }