0
0
mirror of https://github.com/bol-van/zapret.git synced 2025-06-30 10:33:56 +00:00

nfqws: allow desync of replayed udp with reasm offset !=0

This commit is contained in:
bol-van 2025-06-15 09:18:25 +03:00
parent 8dacb57a86
commit f8b5f602a4
2 changed files with 7 additions and 5 deletions

View File

@ -514,6 +514,10 @@ install_easy: stop if running embedded release on traditional linux system (some
install_bin: add "read elf" arch detection method install_bin: add "read elf" arch detection method
binaries: renamed arch dirs in binaries binaries: renamed arch dirs in binaries
v71.2 v71.1.1
nfqws: use wireless ext in case nl80211 does not return SSID nfqws: use wireless ext in case nl80211 does not return SSID
v71.2
nfqws: apply udp desync to replayed packets with non-zero reasm offset (except fake)

View File

@ -2421,9 +2421,6 @@ static uint8_t dpi_desync_udp_packet_play(bool replay, size_t reasm_offset, uint
DLOG("matching desync profile not found\n"); DLOG("matching desync profile not found\n");
return verdict; return verdict;
} }
// no need to desync middle packets in reasm session
if (reasm_offset) goto send_orig;
} }
else else
{ {
@ -2839,6 +2836,7 @@ static uint8_t dpi_desync_udp_packet_play(bool replay, size_t reasm_offset, uint
break; break;
} }
case DESYNC_FAKE: case DESYNC_FAKE:
if (!reasm_offset)
{ {
struct blob_item *fake_item; struct blob_item *fake_item;
int n=0; int n=0;
@ -2862,8 +2860,8 @@ static uint8_t dpi_desync_udp_packet_play(bool replay, size_t reasm_offset, uint
goto send_orig; goto send_orig;
ip_id=IP4_IP_ID_NEXT(ip_id); ip_id=IP4_IP_ID_NEXT(ip_id);
} }
bFake = true;
} }
bFake = true;
break; break;
case DESYNC_HOPBYHOP: case DESYNC_HOPBYHOP:
case DESYNC_DESTOPT: case DESYNC_DESTOPT: