summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGert Doering <gert@greenie.muc.de>2012-09-11 13:56:55 +0200
committerDavid Sommerseth <davids@redhat.com>2012-09-11 19:00:12 +0200
commitcae102ae0c2ff934c456cd584cbf87a33cd95206 (patch)
treeb8446a756f3f1f8cab1b3c53bc1ff92a556a0729 /src
parent6dad4f8e924086333d32122432f316a17ae67987 (diff)
downloadopenvpn-cae102ae0c2ff934c456cd584cbf87a33cd95206.tar.gz
openvpn-cae102ae0c2ff934c456cd584cbf87a33cd95206.tar.xz
openvpn-cae102ae0c2ff934c456cd584cbf87a33cd95206.zip
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 <gert@greenie.muc.de> Acked-by: David Sommerseth <davids@redhat.com> 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 <davids@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/openvpn/tun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvpn/tun.c b/src/openvpn/tun.c
index 3d60857..4b0365d 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,