mirror of
https://github.com/bol-van/zapret.git
synced 2025-01-03 23:10:35 +05:00
nfqws: do not drop packet in case of hopbyhop desync and ipv4
This commit is contained in:
parent
dfd47850f0
commit
a66aa7777a
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
10
nfq/desync.c
10
nfq/desync.c
@ -396,9 +396,10 @@ packet_process_result dpi_desync_tcp_packet(uint8_t *data_pkt, size_t len_pkt, s
|
||||
DLOG("resending original packet with hop-by-hop options\n");
|
||||
if (!rawsend((struct sockaddr *)&dst, params.desync_fwmark, pkt1, pkt1_len))
|
||||
return res;
|
||||
// this mode is final, no other options available
|
||||
return drop;
|
||||
}
|
||||
// this mode is final, no other options available
|
||||
return drop;
|
||||
return res;
|
||||
}
|
||||
|
||||
if (b)
|
||||
@ -673,9 +674,10 @@ packet_process_result dpi_desync_udp_packet(uint8_t *data_pkt, size_t len_pkt, s
|
||||
DLOG("resending original packet with hop-by-hop options\n");
|
||||
if (!rawsend((struct sockaddr *)&dst, params.desync_fwmark, pkt1, pkt1_len))
|
||||
return res;
|
||||
// this mode is final, no other options available
|
||||
return drop;
|
||||
}
|
||||
// this mode is final, no other options available
|
||||
return drop;
|
||||
return res;
|
||||
}
|
||||
|
||||
if (b)
|
||||
|
Loading…
Reference in New Issue
Block a user