ffalcinelli / pydivert

A Python binding for WinDivert driver
GNU Lesser General Public License v3.0
209 stars 38 forks source link

WindowsError 87 with WinDivert 1.1 #4

Closed ffalcinelli closed 10 years ago

ffalcinelli commented 10 years ago

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.

ffalcinelli commented 10 years ago

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