aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-01-05 13:37:48 -0500
committerBill Nottingham <notting@redhat.com>2009-01-05 13:38:29 -0500
commitcb77e73e81ad749fc2df2bc7372da4f6038604b3 (patch)
tree9605fd598ebdb7ff63a1442a2db1dc64bbe04b21
parenteab6a318a9182386cb585d1346dd5d7ed2ec1f8a (diff)
downloadinitscripts-cb77e73e81ad749fc2df2bc7372da4f6038604b3.tar
initscripts-cb77e73e81ad749fc2df2bc7372da4f6038604b3.tar.gz
initscripts-cb77e73e81ad749fc2df2bc7372da4f6038604b3.tar.bz2
initscripts-cb77e73e81ad749fc2df2bc7372da4f6038604b3.tar.xz
initscripts-cb77e73e81ad749fc2df2bc7372da4f6038604b3.zip
Set MTU correctly for 6to4. (#477976, <ackistler@yahoo.com>)
-rw-r--r--sysconfig/network-scripts/network-functions-ipv68
1 files changed, 1 insertions, 7 deletions
diff --git a/sysconfig/network-scripts/network-functions-ipv6 b/sysconfig/network-scripts/network-functions-ipv6
index 698d3e6a..1a075a3b 100644
--- a/sysconfig/network-scripts/network-functions-ipv6
+++ b/sysconfig/network-scripts/network-functions-ipv6
@@ -1333,14 +1333,8 @@ ipv6_set_mtu() {
ipv6_test testonly || return 2
- # Check whether key exists
- ipv6_exec_sysctl net.ipv6.conf.$device.mtu >/dev/null 2>&1
- if [ $? -ne 0 ]; then
- return 3
- fi
-
# Set value
- ipv6_exec_sysctl -w net.ipv6.conf.$device.mtu=$ipv6_mtu >/dev/null 2>&1
+ ipv6_exec_ip link set dev $device mtu $ipv6_mtu
return 0
}