nfqws: do not drop packet in case of hopbyhop desync and ipv4

This commit is contained in:
bol-van 2022-02-02 09:39:48 +03:00
parent dfd47850f0
commit a66aa7777a
10 changed files with 6 additions and 4 deletions

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.

View File

@ -396,10 +396,11 @@ 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"); DLOG("resending original packet with hop-by-hop options\n");
if (!rawsend((struct sockaddr *)&dst, params.desync_fwmark, pkt1, pkt1_len)) if (!rawsend((struct sockaddr *)&dst, params.desync_fwmark, pkt1, pkt1_len))
return res; return res;
}
// this mode is final, no other options available // this mode is final, no other options available
return drop; return drop;
} }
return res;
}
if (b) if (b)
{ {
@ -673,10 +674,11 @@ 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"); DLOG("resending original packet with hop-by-hop options\n");
if (!rawsend((struct sockaddr *)&dst, params.desync_fwmark, pkt1, pkt1_len)) if (!rawsend((struct sockaddr *)&dst, params.desync_fwmark, pkt1, pkt1_len))
return res; return res;
}
// this mode is final, no other options available // this mode is final, no other options available
return drop; return drop;
} }
return res;
}
if (b) if (b)
{ {