summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGert Doering <gert@greenie.muc.de>2011-11-23 11:11:54 +0100
committerDavid Sommerseth <davids@redhat.com>2011-11-23 16:10:21 +0100
commited77e8ad8e892c14d7613a4eb377b8d03078a872 (patch)
treef6e967654fb7a5545cf71c86e27eb05b748ceeea
parent066df6aa44c154bb94403b364f585c4ed569bf47 (diff)
downloadopenvpn-ed77e8ad8e892c14d7613a4eb377b8d03078a872.tar.gz
openvpn-ed77e8ad8e892c14d7613a4eb377b8d03078a872.tar.xz
openvpn-ed77e8ad8e892c14d7613a4eb377b8d03078a872.zip
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) Signed-off-by: Gert Doering <gert@greenie.muc.de> Acked-by: David Sommerseth <davids@redhat.com> Signed-off-by: David Sommerseth <davids@redhat.com> (cherry-picked from commit 03ab4ead8295e005f72dbffcffdaa74487d9668c)
-rw-r--r--tun.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tun.c b/tun.c
index 28aa368..d03e8c7 100644
--- a/tun.c
+++ b/tun.c
@@ -4100,6 +4100,14 @@ open_tun (const char *dev, const char *dev_type, const char *dev_node, bool ipv6
msg (M_FATAL, "ERROR: This version of " PACKAGE_NAME " requires a TAP-Win32 driver that is at least version %d.%d -- If you recently upgraded your " PACKAGE_NAME " distribution, a reboot is probably required at this point to get Windows to see the new driver.",
TAP_WIN32_MIN_MAJOR,
TAP_WIN32_MIN_MINOR);
+
+ /* 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 */