Commit Graph
29 Commits
Author SHA1 Message Date
basil00 a0e50dfd79 - add a VERSION file 2012-10-26 14:12:34 +08:00
basil00 3a59af9f25 - Ignore ERROR_INVALID_PARAMETER from pfnWdfPostDeviceInstall() as these
errors appear to be benign.
2012-10-24 22:46:13 +08:00
basil00 898ea780e2 - Fix typo 2012-10-24 21:58:43 +08:00
basil00 934019aec5 - In divert_filter_compile(), do not use the stack for filter0; instead
allocate from the heap.  Stacks are small (12Kb on x86).
2012-10-24 21:30:27 +08:00
basil00 5ce2f868d6 - Expand documentation regarding test signing the WinDivert driver.
(this was causing some confusion).
2012-06-01 23:14:46 +08:00
basil00 498fbaab98 - MSVC build system now supports x64
- passthru.c now compiles on all 3 compilers.
2012-03-31 18:32:01 +08:00
basil00 53b45c4e8c - Complete build-system revamp.
* Updated sources files to target install\WDDK
  * Remove wdfinstaller.h dependency from dll/divert.dll
  * Fix passthru error in newer compilers.
2012-03-27 17:39:46 +08:00
basil00 47e2764c20 - Fix typo 2012-03-26 22:32:47 +08:00
basil00 7cb25b8a1e - Added build-system documentation 2012-03-26 22:31:21 +08:00
basil00 9b132946de - Add WDDK build script.
- Add documentation for new build system.
2012-03-26 22:28:48 +08:00
basil00 6dfed99c28 Build system revamp:
- VS2010 support added via msvc-build.bat and *.vcxproj files
- MinGW now also builds example programs
- Documentation and examples are now included in the binary packages
2012-03-26 21:55:55 +08:00
basil00 f9b1619adb - Fix bad priority in the webfilter sample.
- Minor comments tweaks.
2012-02-22 11:00:05 +08:00
basil00 13b2ab4418 ***MAJOR UPDATE***
Name and version:

* Now officially called 'WinDivert'
* Now officially working towards a version 1.0 release

New features:

* WinDivert now supports a packet-sniffing mode.  This mode merely
  copies packets, and does not drop the original.
* WinDivert now also supports a packet-dropping mode.
* WinDivert now supports filter priorities.
* WinDivert now supports a forwarded packet layer (WARNING: untested).
* WinDivert now supports get/set parameters such as packet queue length and
  time.
* WinDivert now supports larger filters (but use at own risk).
* WinDivert now uninstalls the driver on program exit/library unload
* Different versions of WinDivert can co-exist on the same machine
  (WARNING: untested, as there is currently only one version).

New License:

* WinDivert is now LGPL.  This is less restrictive than the GPL so WinDivert
  can be linked to by commercial software (under the terms of the LGPL
  license).

Technical:

* Cleaner IOCTL interface.
* Cleaner driver implementation.
* Thread local events in WinDivert.dll
* Many minor tweaks and fixes.
2012-02-21 23:18:45 +08:00
basil00 1d2b3a4649 - Fix a bug caused by missing FILE_FLAG_OVERLAPPED flag. 2012-02-08 23:46:22 +08:00
basil00 27b6f47de7 - Now include the divert.lib files in the MSVC release package. 2012-02-06 12:54:33 +08:00
basil00 ec6ef9e0ce - Fix bug where NDIS pool was freed before a packet injection was complete,
possibly resulting in a BSOD.
2012-02-06 12:50:31 +08:00
basil00 bf6a557fea - Fix typo. 2011-11-13 22:43:54 +08:00
basil00 eac5628198 - Add a simple release build script. 2011-11-10 00:10:45 +08:00
basil00 a205259bec - Divert driver and library now fully support multi-threaded code. This
includes making the driver handle I/O requests in parallel, and changing
  the library such that it uses overlapped I/O.  Overall the package is
  now significantly faster.
- The divert driver now only adds WFP callouts when a filter is set,
  instead of when a handle is created.
- The divert driver now attempts to avoid adding WFP callouts that are
  superfluous with respect to the filter.
- The divert driver now explicitly deletes filters and callouts during
  cleanup.  This appears to resolve a bug where network connectivity is
  sometimes lost.
- Added a new sample program: passthru.exe.  This example doesn't do anything
  interesting but is useful for speed testing.
- Rename build.sh to mingw-build.sh to avoid confusion.
2011-11-08 23:54:01 +08:00
basil00 88c7e404ca - Don't strip DLL 2011-10-24 00:25:13 +08:00
basil00 5dce077e86 - Fix bug where WdfRequestProbeAndLockUserBufferFor* was not in the caller
context, resulting in an occasional BSOD.
- Fix bug where the driver rejects the "false" filter.
- Update documentation to reflect that the "false" filter is still useful
  for packet injection.
2011-10-19 20:53:49 +08:00
basil00 f1b7ead828 The divert.dll library can now be build with MinGW Linux cross-compilation.
This is useful for projects that use MinGW instead of MSVC.  Otherwise, the
.dlls are incompatible.
2011-10-15 17:40:18 +08:00
basil00 8906eaa02c - Move some mis-placed text 2011-08-23 23:37:41 +08:00
basil00 84a73c28fd Really beef up README 2011-08-23 23:06:29 +08:00
basil00 0ff63cda99 - Make the package compile for i386
- Make the pAddr arg for DivertRecv() optional
- Make the i386 user binaries compatible with an amd64 driver.
  (useful for projects not yet ported to amd64)
2011-08-23 22:18:02 +08:00
basil00 378df755bc Beef up README 2011-08-21 18:12:06 +08:00
basil00 ee386df032 Figured out a way to split the "address" part of the buffer from the packet
data itself.  This makes for a much cleaner interface.

sys/divert.c
dll/divert.c
include/*.h
	DivertRecv and DivertSend now use IOCTLs instead of reads/writes.
	The 'address' parameter is passed by pointer to the driver, which
	writes directly to it (after sanity checks).
	This means that the data buffer now only contains the packet, which
	help to avoid some messy code.

examples/*/*.c
	Update the examples to reflect the new API.

doc/divert.html
	Update the documentation to reflect the new API.
2011-08-21 17:59:13 +08:00
basil00 cf80d12e5d Fix out-of-date documentation 2011-08-19 22:08:29 +08:00
basil00 019f9d509b First commit of the Windows Divert project 2011-08-19 20:11:17 +08:00