mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-30 05:50:53 +03:00
fix compiler warnings: -Wswitch
This commit is contained in:
parent
419745652b
commit
787ade07af
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;
|
||||
verdict = ct_new_postnat_fix_tcp(ctrack, ip, ip6hdr, tcphdr);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
// can do nothing else with SYN packet
|
||||
return verdict;
|
||||
@ -956,7 +958,6 @@ static uint8_t dpi_desync_tcp_packet_play(bool replay, size_t reasm_offset, uint
|
||||
return VERDICT_DROP;
|
||||
}
|
||||
default:
|
||||
// fix code analyzer warning
|
||||
pkt1_len=0;
|
||||
break;
|
||||
}
|
||||
@ -1169,6 +1170,8 @@ static uint8_t dpi_desync_tcp_packet_play(bool replay, size_t reasm_offset, uint
|
||||
|
||||
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;
|
||||
break;
|
||||
default:
|
||||
<<<<<<< HEAD
|
||||
// fix code analyzer warning
|
||||
pkt1_len=0;
|
||||
=======
|
||||
>>>>>>> 44ecef0 (fix compiler warnings: -Wswitch)
|
||||
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);
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user