From 44ecef01c9cb4acf1a2f2c9b4d61e161d8ac05b4 Mon Sep 17 00:00:00 2001 From: "[anp/hsw]" Date: Fri, 2 Aug 2024 23:23:26 +0700 Subject: [PATCH] fix compiler warnings: -Wswitch --- nfq/desync.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nfq/desync.c b/nfq/desync.c index b7c529b..7fe888e 100644 --- a/nfq/desync.c +++ b/nfq/desync.c @@ -652,6 +652,8 @@ static uint8_t dpi_desync_tcp_packet_play(bool replay, size_t reasm_offset, uint return verdict; verdict = ct_new_postnat_fix_tcp(ctrack, ip, ip6hdr, tcphdr); break; + default: + break; } // can do nothing else with SYN packet return verdict; @@ -955,6 +957,8 @@ static uint8_t dpi_desync_tcp_packet_play(bool replay, size_t reasm_offset, uint // this mode is final, no other options available return VERDICT_DROP; } + default: + break; } if (b) @@ -1165,6 +1169,8 @@ static uint8_t dpi_desync_tcp_packet_play(bool replay, size_t reasm_offset, uint return VERDICT_DROP; } + default: + break; } } @@ -1467,6 +1473,8 @@ static uint8_t dpi_desync_udp_packet_play(bool replay, size_t reasm_offset, uint } desync_mode = params.desync_mode2; break; + default: + break; } if (b) @@ -1568,6 +1576,8 @@ static uint8_t dpi_desync_udp_packet_play(bool replay, size_t reasm_offset, uint return ct_new_postnat_fix_udp(ctrack, ip, ip6hdr, udphdr, len_pkt); } + default: + break; } }