Calculate checksums even there's no packet modifications.
This commit is contained in:
parent
2f0429027d
commit
9fa2956065
|
|
@ -428,6 +428,10 @@ int main(int argc, char *argv[]) {
|
||||||
if (should_recalc_checksum) {
|
if (should_recalc_checksum) {
|
||||||
WinDivertHelperCalcChecksums(packet, packetLen, 0);
|
WinDivertHelperCalcChecksums(packet, packetLen, 0);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
WinDivertHelperCalcChecksums(packet, packetLen,
|
||||||
|
WINDIVERT_HELPER_NO_REPLACE);
|
||||||
|
}
|
||||||
WinDivertSend(w_filter, packet, packetLen, &addr, NULL);
|
WinDivertSend(w_filter, packet, packetLen, &addr, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue