[packages/openvpn] fix changing ipv6 settings with busybox's ifconfig

The OpenVPN call to busybox's ifconfig in order to change interface
configurations is incompatible when used in conjunction with IPv6.
Busybox's ifconfig doesn't know about the 'inet6' parameter,
so just skip it.
The new call is still compatible to the usual ifconfig provided by
the net-tools package.

Thanks to Gert Doering and Joachim Schlipper!

git-svn-id: svn://svn.openwrt.org/openwrt/packages@33375 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
mirko 2012-09-11 18:13:31 +00:00
parent 3cdbdd0f53
commit bb2c7bbd7e

View File

@ -0,0 +1,12 @@
diff -Naur old/src/openvpn/tun.c new/src/openvpn/tun.c
--- old/src/openvpn/tun.c 2012-09-11 11:02:41.000000000 +0200
+++ new/src/openvpn/tun.c 2012-09-11 12:27:30.304436864 +0200
@@ -760,7 +760,7 @@
if ( do_ipv6 )
{
argv_printf (&argv,
- "%s %s inet6 add %s/%d",
+ "%s %s add %s/%d",
IFCONFIG_PATH,
actual,
ifconfig_ipv6_local,