diff options
author | Gert Doering <gert@greenie.muc.de> | 2010-02-28 23:09:40 +0100 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2010-03-16 22:29:50 +0100 |
commit | 6475bd2c5d267af97be52aada40c36c44f9c8ae9 (patch) | |
tree | a84e1dce21fec972ce40e25b6e3c71eebce55513 | |
parent | verb 5 logging wrongly reports received bytes (diff) | |
download | openvpn-6475bd2c5d267af97be52aada40c36c44f9c8ae9.tar.xz |
remove duplicate code in FREEBSD+DRAGONFLY system-dependent ifconfig
(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>
-rw-r--r-- | tun.c | 17 |
1 files changed, 3 insertions, 14 deletions
@@ -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"); |