Skip to content

Commit

Permalink
nfqws: remove obsolete code
Browse files Browse the repository at this point in the history
  • Loading branch information
bol-van committed Dec 12, 2024
1 parent 45b93f3 commit fc42f6e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
7 changes: 0 additions & 7 deletions nfq/desync.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion nfq/desync.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
2 changes: 0 additions & 2 deletions nfq/nfqws.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ static void pre_desync(void)
signal(SIGHUP, onhup);
signal(SIGUSR1, onusr1);
signal(SIGUSR2, onusr2);

desync_init();
}


Expand Down

0 comments on commit fc42f6e

Please sign in to comment.