]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
make "ipv6 ifconfig" on linux compatible with busybox ifconfig
authorGert Doering <gert@greenie.muc.de>
Tue, 11 Sep 2012 11:56:55 +0000 (13:56 +0200)
committerDavid Sommerseth <davids@redhat.com>
Tue, 11 Sep 2012 17:00:12 +0000 (19:00 +0200)
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>
src/openvpn/tun.c

index 3d60857c7f9039d7b80c7fcd5c9317c194854298..4b0365d591ce012f9b56a180b7dd7119ca84b09a 100644 (file)
@@ -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,