Mailing List Archive

svn commit: vpnc r503 - /branches/vpnc-nortel/vpnc-script /trunk/vpnc-script
Author: Antonio Borneo
Date: Sat Jan 14 08:56:34 2012
New Revision: 503

Log:
Do not plumb interface for IPv6 on Solaris. The VPN client should do that.

.. and does, as of openconnect commit c77af62db. (vpnc doesn't do IPv6 yet)

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

Modified:
branches/vpnc-nortel/vpnc-script
trunk/vpnc-script

Modified: branches/vpnc-nortel/vpnc-script
==============================================================================
--- branches/vpnc-nortel/vpnc-script (original)
+++ branches/vpnc-nortel/vpnc-script Sat Jan 14 08:56:34 2012
@@ -128,7 +128,7 @@
else
if [ "$OS" = "SunOS" ]; then
# Solaris 11 needs link-local addrs to be assigned manually
- ifconfig "$TUNDEV" inet6 plumb fe80::1 fe80::2 mtu $MTU up
+ ifconfig "$TUNDEV" inet6 fe80::1 fe80::2 mtu $MTU up
ifconfig "$TUNDEV" inet6 addif $INTERNAL_IP6_NETMASK $INTERNAL_IP6_ADDRESS up
else
# Unlike for Legacy IP, we don't specify the dest_address
@@ -146,11 +146,6 @@
case "$OS" in
NetBSD|FreeBSD) # and probably others...
ifconfig "$TUNDEV" destroy
- ;;
- SunOS)
- if [ -n "$INTERNAL_IP6_ADDRESS" ]; then
- ifconfig "$TUNDEV" inet6 unplumb
- fi
;;
esac
}

Modified: trunk/vpnc-script
==============================================================================
--- trunk/vpnc-script (original)
+++ trunk/vpnc-script Sat Jan 14 08:56:34 2012
@@ -128,7 +128,7 @@
else
if [ "$OS" = "SunOS" ]; then
# Solaris 11 needs link-local addrs to be assigned manually
- ifconfig "$TUNDEV" inet6 plumb fe80::1 fe80::2 mtu $MTU up
+ ifconfig "$TUNDEV" inet6 fe80::1 fe80::2 mtu $MTU up
ifconfig "$TUNDEV" inet6 addif $INTERNAL_IP6_NETMASK $INTERNAL_IP6_ADDRESS up
else
# Unlike for Legacy IP, we don't specify the dest_address
@@ -146,11 +146,6 @@
case "$OS" in
NetBSD|FreeBSD) # and probably others...
ifconfig "$TUNDEV" destroy
- ;;
- SunOS)
- if [ -n "$INTERNAL_IP6_ADDRESS" ]; then
- ifconfig "$TUNDEV" inet6 unplumb
- fi
;;
esac
}

_______________________________________________
vpnc-devel mailing list
vpnc-devel@unix-ag.uni-kl.de
https://lists.unix-ag.uni-kl.de/mailman/listinfo/vpnc-devel
http://www.unix-ag.uni-kl.de/~massar/vpnc/