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 <g...@greenie.muc.de>
---
 src/openvpn/tun.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/openvpn/tun.c b/src/openvpn/tun.c
index 3d60857..4b0365d 100644
--- a/src/openvpn/tun.c
+++ b/src/openvpn/tun.c
@@ -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,
-- 
1.7.8.6


Reply via email to