From: Gert Doering Date: Tue, 11 Sep 2012 11:56:55 +0000 (+0200) Subject: make "ipv6 ifconfig" on linux compatible with busybox ifconfig X-Git-Tag: v2.3_beta1~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cae102ae0c2ff934c456cd584cbf87a33cd95206;p=thirdparty%2Fopenvpn.git make "ipv6 ifconfig" on linux compatible with busybox ifconfig We used to call "ifconfig tun0 inet6 add...". The "inet6" part is optional, and not understood by busybox. So now we call "ifconfig tun0 add ...", which works on all supported Linux variants. Tested on Gentoo, RHEL5+, Debian Lenny & up. Signed-off-by: Gert Doering Acked-by: David Sommerseth Message-Id: 1347364615-26878-1-git-send-email-gert@greenie.muc.de URL: http://article.gmane.org/gmane.network.openvpn.devel/7052 Signed-off-by: David Sommerseth --- diff --git a/src/openvpn/tun.c b/src/openvpn/tun.c index 3d60857c7..4b0365d59 100644 --- a/src/openvpn/tun.c +++ b/src/openvpn/tun.c @@ -760,7 +760,7 @@ do_ifconfig (struct tuntap *tt, if ( do_ipv6 ) { argv_printf (&argv, - "%s %s inet6 add %s/%d", + "%s %s add %s/%d", IFCONFIG_PATH, actual, ifconfig_ipv6_local,