From: mirko Date: Tue, 11 Sep 2012 18:13:31 +0000 (+0000) Subject: [packages/openvpn] fix changing ipv6 settings with busybox's ifconfig X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=bb2c7bbd7ef363fd20670e2ce58282c264f8744c;p=packages.git [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 --- 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 index 000000000..5aa431215 --- /dev/null +++ b/net/openvpn-devel/patches/000-busybox-ifconfig-ipv6-compatible.patch @@ -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,