From 9fa29560658ed2d39b82f163fbb5fa65a9256314 Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Thu, 7 Sep 2017 17:35:25 +0300 Subject: [PATCH] Calculate checksums even there's no packet modifications. --- goodbyedpi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/goodbyedpi.c b/goodbyedpi.c index 69b98aa..4f9d3ff 100644 --- a/goodbyedpi.c +++ b/goodbyedpi.c @@ -428,6 +428,10 @@ int main(int argc, char *argv[]) { if (should_recalc_checksum) { WinDivertHelperCalcChecksums(packet, packetLen, 0); } + else { + WinDivertHelperCalcChecksums(packet, packetLen, + WINDIVERT_HELPER_NO_REPLACE); + } WinDivertSend(w_filter, packet, packetLen, &addr, NULL); } }