mirror of
https://github.com/OpenVPN/openvpn.git
synced 2026-05-28 04:03:29 -04:00
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>
This commit is contained in:
parent
adfe37fc84
commit
8528e2b77d
1 changed files with 3 additions and 14 deletions
17
tun.c
17
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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue