aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/network-functions-ipv6
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:37:48 -0500
commitfadc8aa2871eb4331beb8c9db76310269bc03542 (patch)
tree158ed1b32065fb0704f3686cb31fa634bf593ca4 /sysconfig/network-scripts/network-functions-ipv6
parentf7afff53ee9523c5e623cf46885fcf43d25ad900 (diff)
downloadinitscripts-fadc8aa2871eb4331beb8c9db76310269bc03542.tar
initscripts-fadc8aa2871eb4331beb8c9db76310269bc03542.tar.gz
initscripts-fadc8aa2871eb4331beb8c9db76310269bc03542.tar.bz2
initscripts-fadc8aa2871eb4331beb8c9db76310269bc03542.tar.xz
initscripts-fadc8aa2871eb4331beb8c9db76310269bc03542.zip
Set MTU correctly for 6to4. (#477976, <ackistler@yahoo.com>)
Diffstat (limited to 'sysconfig/network-scripts/network-functions-ipv6')
-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 5a57408f..facc0171 100644
--- a/sysconfig/network-scripts/network-functions-ipv6
+++ b/sysconfig/network-scripts/network-functions-ipv6
@@ -1331,14 +1331,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
}