summaryrefslogtreecommitdiffstats
path: root/tun.c
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 12:57:10 +0100
commit03ab4ead8295e005f72dbffcffdaa74487d9668c (patch)
tree923c4cb965e7d555f7f25b9b1eabc9a8071350f9 /tun.c
parent1523d1101222340b7ef305020ed7eba0dd1676cf (diff)
downloadopenvpn-03ab4ead8295e005f72dbffcffdaa74487d9668c.tar.gz
openvpn-03ab4ead8295e005f72dbffcffdaa74487d9668c.tar.xz
openvpn-03ab4ead8295e005f72dbffcffdaa74487d9668c.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>
Diffstat (limited to 'tun.c')
-rw-r--r--tun.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tun.c b/tun.c
index c8ac394..7a3b2e9 100644
--- a/tun.c
+++ b/tun.c
@@ -4584,6 +4584,14 @@ open_tun (const char *dev, const char *dev_type, const char *dev_node, struct tu
msg( 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 */