[packages/openvpn] fix changing ipv6 settings with busybox's ifconfig
authorMirko Vogt <mirko@openwrt.org>
Tue, 11 Sep 2012 18:13:31 +0000 (18:13 +0000)
committerMirko Vogt <mirko@openwrt.org>
Tue, 11 Sep 2012 18:13:31 +0000 (18:13 +0000)
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!

SVN-Revision: 33375

net/openvpn-devel/patches/000-busybox-ifconfig-ipv6-compatible.patch [new file with mode: 0644]

diff --git a/net/openvpn-devel/patches/000-busybox-ifconfig-ipv6-compatible.patch b/net/openvpn-devel/patches/000-busybox-ifconfig-ipv6-compatible.patch
new file mode 100644 (file)
index 0000000..5aa4312
--- /dev/null
@@ -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,