Skip to contentSkip to conversation

BSOD: Tap-Win32 crashes Vista

PATCH Henry Nestler 1 participant 1 message Aug 31, 2006 3 messages not in the archive

lore
Share & tools
lore
#3 lore raw
In reply to a message not in the archive

Changes for running TAP-Win32 on Vista (Beta):
- Gets MiniPortName with function NdisReadConfiguration, instand the direct pointer access into strcture NDIS_MINIPORT_BLOCK. On Windows2000 this function isn't supported, it falls back into older accessing with ugly pointer into the struct. Checks ndis version before, to avoid BSOD.
- incrase driver version to 8.4, updated build date.
- build with DDK 3790.1830
- Files on http://home.arcor.de/henryn/OpenVPN-2.1beta14-tap32/

openvpn-2.1-tap32-vista.patch : Source patch for openvpn-2.1_beta14
tap-win32-OpenVPN.src.zip : Complete sources for tap driver
tap-win32-OpenVPN.i386.zip : Driver, binary and symbols for OpenVPN

This is a backport from running tap driver under colinux.
Binaries for OpenVPN have not tested, I have no vpn installed. Please give a feedback.

Thanks to Emre Erenoglu and Anoop G. for finding, testing and tips.

Signature · 1 line
Henry N.

# Patchfile: openvpn-2.1-tap32-vista.patch
#
# Changes for running TAP-Win32 on Vista (Beta):
# - Gets MiniPortName with function NdisReadConfiguration, instand

#   the direct pointer access into strcture NDIS_MINIPORT_BLOCK.
#   On Windows2000 this function isn't supported, it falls back into
#   older accessing with ugly pointer into the struct.  Checks ndis
#   version before, to avoid BSOD.

# - incrase driver version to 8.4, update build date.
#
# Thanks to Emre Erenoglu and Anoop G. for finding, testing and tips. #
# Henry N. <Henry at BigFoot.de>

---

 openvpn-2.1_beta14/tap-win32/SOURCES           |    2 
 openvpn-2.1_beta14/tap-win32/i386/OemWin2k.inf |    2 
 openvpn-2.1_beta14/tap-win32/resource.rc       |    2 
 openvpn-2.1_beta14/tap-win32/tapdrvr.c         |   74 +++++++++++++++++++------
 4 files changed, 62 insertions(+), 18 deletions(-)

======================================================================

tap-win32/i386/OemWin2k.inf +1 -1
diff -aur openvpn-2.1_beta14.old/tap-win32/i386/OemWin2k.inf openvpn-2.1_beta14/tap-win32/i386/OemWin2k.inf
@@ -51,7 +51,7 @@
 
 ; This version number should match the version
 ; number given in SOURCES.
-   DriverVer=05/15/2004,8.00.00.0001
+   DriverVer=08/31/2006,8.00.00.0004
 
 [Strings]
    DeviceDescription = "TAP-Win32 Adapter V8"
tap-win32/resource.rc +1 -1
diff -aur openvpn-2.1_beta14.old/tap-win32/resource.rc openvpn-2.1_beta14/tap-win32/resource.rc
@@ -36,7 +36,7 @@
 #define VER_COMPANYNAME_STR         "The OpenVPN Project"
 #define VER_FILEDESCRIPTION_STR     "TAP-Win32 Virtual Network Driver"
 #define VER_ORIGINALFILENAME_STR    TAP_COMPONENT_ID ".sys"
-#define VER_LEGALCOPYRIGHT_YEARS    "2003-2004"
+#define VER_LEGALCOPYRIGHT_YEARS    "2003-2006"
 #define VER_LEGALCOPYRIGHT_STR      "OpenVPN Solutions LLC and Damion K. Wilson"
 
 
tap-win32/SOURCES +1 -1
diff -aur openvpn-2.1_beta14.old/tap-win32/SOURCES openvpn-2.1_beta14/tap-win32/SOURCES
@@ -15,7 +15,7 @@
 # config-win32.h
 C_DEFINES=
 C_DEFINES=$(C_DEFINES) -DTAP_DRIVER_MAJOR_VERSION=8
-C_DEFINES=$(C_DEFINES) -DTAP_DRIVER_MINOR_VERSION=3
+C_DEFINES=$(C_DEFINES) -DTAP_DRIVER_MINOR_VERSION=4
 
 # Use 00:FF:XX:XX:XX:XX format MAC addresses where
 # the Xs are random (like Linux tap driver).
tap-win32/tapdrvr.c +59 -15

93 lines not on this page · raw message