ffalcinelli / pydivert

A Python binding for WinDivert driver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WindowsError 87 with WinDivert 1.1

ffalcinelli opened this issue · comments

The test suite fails with the following traceback

Error
Traceback (most recent call last):
  File "C:\Users\Fabio\Documents\GitHub\pydivert\pydivert\tests\test_windivert.py", line 458, in test_modify_tcp_payload
    self.assertEqual(new_text.upper(), client.response.decode("UTF-8"))
  File "C:\Users\Fabio\Documents\GitHub\pydivert\pydivert\windivert.py", line 605, in __exit__
    self.close()
  File "C:\Users\Fabio\Documents\GitHub\pydivert\pydivert\decorators.py", line 35, in wrapper
    raise ctypes.WinError(code=retcode)
WindowsError: [Error 87] The parameter is incorrect

This just happens with WinDivert version 1.1. No issues with version 1.0.

Changing payload now automaGically updates IPv4/IPv6 header's length field. Closed.