
vpnc at unix-ag
Jun 21, 2009, 3:05 AM
Post #1 of 1
(780 views)
Permalink
|
|
svn commit: vpnc r411 - /branches/vpnc-nortel/vpnc-script.in
|
|
Author: Antonio Borneo Date: Sun Jun 21 12:05:49 2009 New Revision: 411 Log: David Woodhouse <dwmw2 [at] infradead> Merge in Nortel branch the commit r350 by Joerg Mayer and David Woodhouse. From original comment: "specify the MTU in the environment passed to vpnc-script" Modified: branches/vpnc-nortel/vpnc-script.in Modified: branches/vpnc-nortel/vpnc-script.in ============================================================================== --- branches/vpnc-nortel/vpnc-script.in (original) +++ branches/vpnc-nortel/vpnc-script.in Sun Jun 21 12:05:49 2009 @@ -84,7 +84,9 @@ # =========== tunnel interface handling ==================================== do_ifconfig() { - if [ -n "$IPROUTE" ]; then + if [ -n "$INTERNAL_IP4_MTU" ]; then + MTU=$INTERNAL_IP4_MTU + elif [ -n "$IPROUTE" ]; then DEV=$($IPROUTE route | grep ^default | sed 's/^.* dev \([[:alnum:]-]\+\).*$/\1/') MTU=$(($($IPROUTE link show "$DEV" | grep mtu | sed 's/^.* mtu \([[:digit:]]\+\).*$/\1/') - 88)) else _______________________________________________ vpnc-devel mailing list vpnc-devel [at] unix-ag https://lists.unix-ag.uni-kl.de/mailman/listinfo/vpnc-devel http://www.unix-ag.uni-kl.de/~massar/vpnc/
|