Browse code

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>

Gert Doering authored on 2012/09/11 20:56:55
Showing 1 changed files
... ...
@@ -760,7 +760,7 @@ do_ifconfig (struct tuntap *tt,
760 760
       if ( do_ipv6 )
761 761
 	{
762 762
 	  argv_printf (&argv,
763
-			  "%s %s inet6 add %s/%d",
763
+			  "%s %s add %s/%d",
764 764
 			  IFCONFIG_PATH,
765 765
 			  actual,
766 766
 			  ifconfig_ipv6_local,