extra patches needed for tap driver bugfix
Hi,
bugfixing the tap driver is nice and well, but I think we MUST bump the driver version as well, and we SHOULD have a check in tun.c to refuse operation if the known-buggy version (9.8) is detected.
Patches below.
gert
Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany [email protected]...
fax: +49-89-35655025 [email protected]...From c8e7ad5ed0a91d8b595e8b1862416f226a86968f Mon Sep 17 00:00:00 2001
From: Gert Doering <[email protected]...>
Date: Wed, 23 Nov 2011 11:07:09 +0100
Subject: [PATCH 1/2] bump tap driver version from 9.8 to 9.9
(bugfixed tapdrvr.c regarding small IPv4 packets)
--- version.m4 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
version.m4 +1 -1
@@ -3,4 +3,4 @@ define(PRODUCT_VERSION,[2.x-master]) dnl define the TAP version define(PRODUCT_TAP_ID,[tap0901]) define(PRODUCT_TAP_WIN32_MIN_MAJOR,[9]) -define(PRODUCT_TAP_WIN32_MIN_MINOR,[8]) +define(PRODUCT_TAP_WIN32_MIN_MINOR,[9])
Signature · 1 line
1.7.3.4
From ce6329e86dfd4b4af1371c09abf06795540fa28a Mon Sep 17 00:00:00 2001
From: Gert Doering <[email protected]...>
Date: Wed, 23 Nov 2011 11:11:54 +0100
Subject: [PATCH 2/2] log error message and exit for "win32, tun mode, tap driver version 9.8"
(driver is known-buggy for small IPv4 packets in tun mode)
--- tun.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)
tun.c +8 -0
@@ -4584,6 +4584,14 @@ open_tun (const char *dev, const char *dev_type, const char *dev_node, struct tumsg (M_INFO ,"WARNING: Tap-Win32 driver version %d.%d does not support IPv6 in TUN mode. IPv6 will be disabled. Upgrade to Tap-Win32 9.8 (2.2-beta3 release or later) or use TAP mode to get IPv6" , (int ) info[0 ], (int ) info[1 ] ); tt->ipv6 = false; } + +/* tap driver 9.8 (2.2.0 and 2.2.1 release) is buggy +*/ +if ( tt->type ==DEV_TYPE_TUN && + info[0 ] ==9 && info[1 ] ==8 ) + { +msg (M_FATAL ,"ERROR: Tap-Win32 driver version %d.%d is buggy regarding small IPv4 packets in TUN mode. Upgrade to Tap-Win32 9.9 (2.2.2 release or later) or use TAP mode" , (int ) info[0 ], (int ) info[1 ] ); + } }/* get driver MTU */
Signature · 1 line
1.7.3.4
Hi,
Quoted 3 lines · Gert Doering
bugfixing the tap driver is nice and well, but I think we MUST bump the driver version as well, and we SHOULD have a check in
tun.cto refuse operation if the known-buggy version (9.8) is detected.
Samuli built an installer with this (using the python build system), which can be found here:
http://build.openvpn.net/downloads/snapshots/openvpn-2.3-cron2-install.exe
I have tested this on Windows XP SP3, where the resulting tap driver is correctly identified (version 9.9) and "ping with small packets" also works correctly. So I consider this to be "good!".
OTOH, two problems remain:
- the installer has issues on Windows 7 - openvpn.exe doesn't find the tap driver on Samuli's test box. So if someone else could test this on a "clean" machine, this would be appreciated. (The driver is not signed, so you need to run in test mode).
- the openvpn.exe binary that Samuli built doesn't work on XP, it's missing the inet_ntop symbol. Which surprises me somewhat, as I thought we had this fixed months ago already??? Can someone shed some light on it...
gert
Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany [email protected]...
fax: +49-89-35655025 [email protected]...-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 9 lines · Gert Doering
Hi,
bugfixing the tap driver is nice and well, but I think we MUST bump the driver version as well, and we SHOULD have a check in
tun.cto refuse operation if the known-buggy version (9.8) is detected.Patches below.
gert
Both pathces ACKed and applied to master branch on -testing and -stable.
In addition
these two patches are cherry-picked for the release/2.2 branch on -stable.
commit 03ab4ead8295e005f72dbffcffdaa74487d9668c (master) commit ed77e8ad8e892c14d7613a4eb377b8d03078a872 (release/2.2)
Author: Gert Doering <[email protected]...> Date: Wed Nov 23 11:11:54 2011 +0100
log error message and exit for "win32, tun mode, tap driver version 9.8"
...
Signed-off-by: Gert Doering <[email protected]...>
Acked-by: David Sommerseth <[email protected]...>
Signed-off-by: David Sommerseth <[email protected]...>commit 1523d1101222340b7ef305020ed7eba0dd1676cf (master) commit 066df6aa44c154bb94403b364f585c4ed569bf47 (release/2.2)
Author: Gert Doering <[email protected]...> Date: Wed Nov 23 11:07:09 2011 +0100
bump tap driver version from 9.8 to 9.9
...
Signed-off-by: Gert Doering <[email protected]...>
Acked-by: David Sommerseth <[email protected]...>
Signed-off-by: David Sommerseth <[email protected]...>kind regards,
David Sommerseth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk7NhIEACgkQDC186MBRfroUtgCfVURvAGlLd+tOOfFaffQBzkhp 17MAoJusIucq6LN58HRG1ikgDUlnnV9U
=GTYP
-----END PGP SIGNATURE-----