1
0
mirror of https://github.com/bol-van/zapret.git synced 2025-05-02 03:42:58 +03:00

nfqws: do not resend reinjected orig packet

This commit is contained in:
bol-van 2020-03-18 15:47:36 +03:00
parent b7a9442723
commit 0efc4f7b24
9 changed files with 1 additions and 1 deletions
binaries
aarch64
armhf
mips32r1-lsb
mips32r1-msb
mips64r2-msb
ppc
x86
x86_64
nfq

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.

@ -319,7 +319,7 @@ packet_process_result dpi_desync_packet(uint8_t *data_pkt, size_t len_pkt, struc
DLOG("reinjecting original packet. len=%zu len_payload=%zu\n", len_pkt, len_payload) DLOG("reinjecting original packet. len=%zu len_payload=%zu\n", len_pkt, len_payload)
// if original packet was tampered earlier it needs checksum fixed // if original packet was tampered earlier it needs checksum fixed
if (res==modify) tcp_fix_checksum(tcphdr,len_tcp,iphdr,ip6hdr); if (res==modify) tcp_fix_checksum(tcphdr,len_tcp,iphdr,ip6hdr);
if (!rawsend_rep((struct sockaddr *)&dst, params.desync_fwmark, data_pkt, len_pkt)) if (!rawsend((struct sockaddr *)&dst, params.desync_fwmark, data_pkt, len_pkt))
return res; return res;
} }
return drop; return drop;