Revert WinDivert back to inline packet processing.
This hardens WinDivert against other drivers that attempt to modify packets after they were blocked & absorbed by WinDivert, leading to BSODs. This is also a fix for issue #110.
This commit is contained in:
+323
-602
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -295,7 +295,7 @@ int main(void)
|
||||
// (1) stop normal traffic from interacting with the tests; and
|
||||
// (2) stop test packets escaping to the Internet or TCP/IP stack.
|
||||
upper_handle = WinDivertOpen("true", WINDIVERT_LAYER_NETWORK, -510,
|
||||
WINDIVERT_FLAG_DROP);
|
||||
WINDIVERT_FLAG_DROP | WINDIVERT_FLAG_DEBUG);
|
||||
lower_handle = WinDivertOpen("true", WINDIVERT_LAYER_NETWORK, 510,
|
||||
WINDIVERT_FLAG_DROP);
|
||||
if (upper_handle == INVALID_HANDLE_VALUE ||
|
||||
|
||||
Reference in New Issue
Block a user