Calculate checksums even there's no packet modifications.

This commit is contained in:
ValdikSS 2017-09-07 17:35:25 +03:00
parent 2f0429027d
commit 9fa2956065

View File

@ -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);
}
}