Update samples & test programs to the new version.

This commit is contained in:
basil00
2015-07-19 11:40:02 +08:00
parent 54f8640b89
commit 3bcf1ae7a0
6 changed files with 36 additions and 7 deletions
+1
View File
@@ -188,6 +188,7 @@ int __cdecl main(int argc, char **argv)
!BlackListPayloadMatch(blacklist, payload, (UINT16)payload_len))
{
// Packet does not match the blacklist; simply reinject it.
WinDivertHelperCalcChecksums(packet, packet_len, 0);
if (!WinDivertSend(handle, packet, packet_len, &addr, NULL))
{
fprintf(stderr, "warning: failed to reinject packet (%d)\n",