From ed77e8ad8e892c14d7613a4eb377b8d03078a872 Mon Sep 17 00:00:00 2001 From: Gert Doering Date: Wed, 23 Nov 2011 11:11:54 +0100 Subject: [PATCH] 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) --- tun.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tun.c b/tun.c index 28aa3685..d03e8c77 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 */