From f973a6f3a6a775f502b43b618428702b536aa6ae Mon Sep 17 00:00:00 2001 From: bol-van Date: Mon, 11 Nov 2024 21:58:00 +0300 Subject: [PATCH] nfqws: beautify --- nfq/desync.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/nfq/desync.c b/nfq/desync.c index 88d3039..1129ef9 100644 --- a/nfq/desync.c +++ b/nfq/desync.c @@ -1110,6 +1110,14 @@ static uint8_t dpi_desync_tcp_packet_play(bool replay, size_t reasm_offset, uint return verdict; } + if (params.debug) + { + char s1[48],s2[48]; + ntop46_port((struct sockaddr *)&src, s1, sizeof(s1)); + ntop46_port((struct sockaddr *)&dst, s2, sizeof(s2)); + DLOG("dpi desync src=%s dst=%s\n",s1,s2); + } + const struct split_pos *spos; switch(l7proto) { @@ -1162,14 +1170,6 @@ static uint8_t dpi_desync_tcp_packet_play(bool replay, size_t reasm_offset, uint reasm_orig_cancel(ctrack); rdata_payload=NULL; - if (params.debug) - { - char s1[48],s2[48]; - ntop46_port((struct sockaddr *)&src, s1, sizeof(s1)); - ntop46_port((struct sockaddr *)&dst, s2, sizeof(s2)); - DLOG("dpi desync src=%s dst=%s\n",s1,s2); - } - if (!split_pos || split_pos>rlen_payload) split_pos=1; split_pos=pos_normalize(split_pos,reasm_offset,dis->len_payload); if (split_pos)