Browse Source

fix compiler warnings: -Wswitch

pull/315/head
[anp/hsw] 8 months ago
committed by bol-van
parent
commit
787ade07af
  1. 10
      nfq/desync.c

10
nfq/desync.c

@ -652,6 +652,8 @@ static uint8_t dpi_desync_tcp_packet_play(bool replay, size_t reasm_offset, uint
return verdict; return verdict;
verdict = ct_new_postnat_fix_tcp(ctrack, ip, ip6hdr, tcphdr); verdict = ct_new_postnat_fix_tcp(ctrack, ip, ip6hdr, tcphdr);
break; break;
default:
break;
} }
// can do nothing else with SYN packet // can do nothing else with SYN packet
return verdict; return verdict;
@ -956,7 +958,6 @@ static uint8_t dpi_desync_tcp_packet_play(bool replay, size_t reasm_offset, uint
return VERDICT_DROP; return VERDICT_DROP;
} }
default: default:
// fix code analyzer warning
pkt1_len=0; pkt1_len=0;
break; break;
} }
@ -1169,6 +1170,8 @@ static uint8_t dpi_desync_tcp_packet_play(bool replay, size_t reasm_offset, uint
return VERDICT_DROP; return VERDICT_DROP;
} }
default:
break;
} }
} }
@ -1474,8 +1477,11 @@ static uint8_t dpi_desync_udp_packet_play(bool replay, size_t reasm_offset, uint
desync_mode = params.desync_mode2; desync_mode = params.desync_mode2;
break; break;
default: default:
<<<<<<< HEAD
// fix code analyzer warning // fix code analyzer warning
pkt1_len=0; pkt1_len=0;
=======
>>>>>>> 44ecef0 (fix compiler warnings: -Wswitch)
break; break;
} }
@ -1578,6 +1584,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); return ct_new_postnat_fix_udp(ctrack, ip, ip6hdr, udphdr, len_pkt);
} }
default:
break;
} }
} }

Loading…
Cancel
Save