]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Revert r7092 and r7151, i.e. remove --enable-osxipconfig
authorJames Yonan <james@openvpn.net>
Tue, 19 Apr 2011 10:28:06 +0000 (10:28 +0000)
committerDavid Sommerseth <dazo@users.sourceforge.net>
Tue, 26 Apr 2011 20:29:12 +0000 (22:29 +0200)
configure option.  ipconfig on Mac has certain behavior that makes
it unsuitable for use by OpenVPN to configure tun/tap interface.

Version 2.1.3u

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@7191 e7ae566f-a301-0410-adde-c780ea21d3b5

configure.ac
tun.c
version.m4

index 342074f9a9ab40cb58560d019acc438963630ecf..729ce40fa2a489de0ad5717d26ec354a8db9e613 100644 (file)
@@ -176,11 +176,6 @@ AC_ARG_ENABLE(iproute2,
    test $enableval = "yes" && AC_DEFINE(CONFIG_FEATURE_IPROUTE, 1, [enable iproute2 support])   
 )
 
-AC_ARG_ENABLE(osxipconfig,
-   [  --enable-osxipconfig    Enable support for ipconfig on OS X],
-   test $enableval = "yes" && AC_DEFINE(DARWIN_USE_IPCONFIG, 1, [Enable support for ipconfig on OS X])
-)
-
 AC_ARG_ENABLE(def-auth,
    [  --disable-def-auth      Disable deferred authentication],
    [DEF_AUTH="$enableval"],
diff --git a/tun.c b/tun.c
index f2dec258a357917a459fdd2e5bf947460fd4ea95..f1b132cdf8061b930b7316e3e56d0f0c95daa8f1 100644 (file)
--- a/tun.c
+++ b/tun.c
@@ -786,34 +786,6 @@ do_ifconfig (struct tuntap *tt,
       tt->did_ifconfig = true;
 
 #elif defined(TARGET_DARWIN)
-#ifdef DARWIN_USE_IPCONFIG
-      if (tun)
-       {
-         msg (M_FATAL, "Error: tun point-to-point mode not supported on Darwin when DARWIN_USE_IPCONFIG is defined");
-       }
-      else
-        {
-         argv_printf (&argv,
-                      "/usr/sbin/ipconfig set %s MANUAL %s %s",
-                      actual,
-                      ifconfig_local,
-                      ifconfig_remote_netmask
-                      );
-       }
-      argv_msg (M_INFO, &argv);
-      {
-       int i;
-       const int n = 15;
-       for (i = 1; i <= n; ++i) /* OSX 10.5 needs retry */
-         {
-           if (openvpn_execve_check (&argv, es, (i == n) ? S_FATAL : 0, "Mac OS X ipconfig failed"))
-             break;
-           msg (M_INFO, "Retry #%d", i);
-           openvpn_sleep(1);
-         }
-      }
-      tt->did_ifconfig = true;
-#else
       /*
        * Darwin (i.e. Mac OS X) seems to exhibit similar behaviour to OpenBSD...
        */
@@ -863,7 +835,6 @@ do_ifconfig (struct tuntap *tt,
       argv_msg (M_INFO, &argv);
       openvpn_execve_check (&argv, es, S_FATAL, "Mac OS X ifconfig failed");
       tt->did_ifconfig = true;
-#endif
 
       /* Add a network route for the local tun interface */
       if (!tun && tt->topology == TOP_SUBNET)
index 8892283224d7ad8f654d8784a7f21fc7835ded97..85cd0434290edfe8393537fe272808ce238e8718 100644 (file)
@@ -1,5 +1,5 @@
 dnl define the OpenVPN version
-define(PRODUCT_VERSION,[2.1.3t])
+define(PRODUCT_VERSION,[2.1.3u])
 dnl define the TAP version
 define(PRODUCT_TAP_ID,[tap0901])
 define(PRODUCT_TAP_WIN32_MIN_MAJOR,[9])