aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/network-functions-ipv6
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-12-02 21:32:31 +0000
committerBill Nottingham <notting@redhat.com>2002-12-02 21:32:31 +0000
commitf5ba1b5cd4b5a7c4ec1e07a3908e992cdb60b037 (patch)
treee5ca1b5869f2953b3ed75b7f3bf7476f9080422b /sysconfig/network-scripts/network-functions-ipv6
parent7e01bbb197edd6a156ead3795b2b47cb2a70b17d (diff)
downloadinitscripts-f5ba1b5cd4b5a7c4ec1e07a3908e992cdb60b037.tar
initscripts-f5ba1b5cd4b5a7c4ec1e07a3908e992cdb60b037.tar.gz
initscripts-f5ba1b5cd4b5a7c4ec1e07a3908e992cdb60b037.tar.bz2
initscripts-f5ba1b5cd4b5a7c4ec1e07a3908e992cdb60b037.tar.xz
initscripts-f5ba1b5cd4b5a7c4ec1e07a3908e992cdb60b037.zip
IPv6 update (<pekkas@netcore.fi>, <pb@bieringer.de>)
Diffstat (limited to 'sysconfig/network-scripts/network-functions-ipv6')
-rw-r--r--sysconfig/network-scripts/network-functions-ipv69
1 files changed, 8 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/network-functions-ipv6 b/sysconfig/network-scripts/network-functions-ipv6
index f6f83476..eba48121 100644
--- a/sysconfig/network-scripts/network-functions-ipv6
+++ b/sysconfig/network-scripts/network-functions-ipv6
@@ -5,7 +5,7 @@
# Taken from: network-functions-ipv6
# (P) & (C) 1997-2002 by Peter Bieringer <pb@bieringer.de>
#
-# Version: 2002-11-02
+# Version: 2002-11-12
#
# Extended address detection is enabled, if 'ipv6calc' is installed
# Available here: http://www.bieringer.de/linux/IPv6/ipv6calc/
@@ -1041,6 +1041,7 @@ ipv6_create_6to4_relay_address() {
# $1: <Interface> : only "tun6to4" is supported
# $2: <IPv4 address> : global address of local interface
# $3: [<IPv6 suffix>] : for 6to4 prefix (optional, default is "::1")
+# $4: [<MTU>] : MTU of tunnel device (optional, default is automatic)
# return code: 0=ok 1=argument error 2=IPv6 test fails 3=major problem
ipv6_add_6to4_tunnel() {
local fn="ipv6_add_6to4_tunnel"
@@ -1048,6 +1049,7 @@ ipv6_add_6to4_tunnel() {
local device=$1
local localipv4=$2
local localipv6to4suffix=$3
+ local mtu=$4
if [ -z "$device" ]; then
ipv6_log $"Missing parameter 'device' (arg 1)" err $fn
@@ -1086,6 +1088,11 @@ ipv6_add_6to4_tunnel() {
local retval=0
fi
+ # Set MTU, if given
+ if [ -n "$mtu" ]; then
+ ipv6_set_mtu $device $mtu
+ fi
+
return $retval
}