mirror of
https://github.com/bol-van/zapret.git
synced 2025-05-24 22:32:58 +03:00
nfqws: do not drop packet in case of hopbyhop desync and ipv4
This commit is contained in:
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)
|
||||
|
Reference in New Issue
Block a user