From: Gert Doering Date: Wed, 23 Nov 2011 10:11:54 +0000 (+0100) Subject: log error message and exit for "win32, tun mode, tap driver version 9.8" X-Git-Tag: v2.2.2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed77e8ad8e892c14d7613a4eb377b8d03078a872;p=thirdparty%2Fopenvpn.git 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 Acked-by: David Sommerseth Signed-off-by: David Sommerseth (cherry-picked from commit 03ab4ead8295e005f72dbffcffdaa74487d9668c) --- diff --git a/tun.c b/tun.c index 28aa36853..d03e8c777 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 */