]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
remove duplicate code in FREEBSD+DRAGONFLY system-dependent ifconfig
authorGert Doering <gert@greenie.muc.de>
Sun, 28 Feb 2010 22:09:40 +0000 (23:09 +0100)
committerDavid Sommerseth <dazo@users.sourceforge.net>
Sun, 28 Feb 2010 22:42:12 +0000 (23:42 +0100)
(ACKed by Eric F Crist and David Sommerseth)

(cherry picked from commit dd66b12647852e3f1267be70b0fb3b11deedf377)

Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Signed-off-by: Gert Doering <gert@greenie.muc.de>
tun.c

diff --git a/tun.c b/tun.c
index d82ac49a56d88575cfabc39900d76a5ac0f30eb3..04573d46f3548aea146173079a4bdecc168edd4b 100644 (file)
--- a/tun.c
+++ b/tun.c
@@ -860,26 +860,15 @@ do_ifconfig (struct tuntap *tt,
                          ifconfig_remote_netmask,
                          tun_mtu
                          );
-      else {
-       if (tt->topology == TOP_SUBNET)
-            argv_printf (&argv,
-                              "%s %s %s netmask %s mtu %d up",
+      else
+       argv_printf (&argv,
+                     "%s %s %s netmask %s mtu %d up",
                               IFCONFIG_PATH,
                               actual,
                               ifconfig_local,
                               ifconfig_remote_netmask,
                               tun_mtu
                               );
-       else
-           argv_printf (&argv,
-                         "%s %s %s netmask %s mtu %d up",
-                         IFCONFIG_PATH,
-                         actual,
-                         ifconfig_local,
-                         ifconfig_remote_netmask,
-                         tun_mtu
-                         );
-      }
        
       argv_msg (M_INFO, &argv);
       openvpn_execve_check (&argv, es, S_FATAL, "FreeBSD ifconfig failed");