diff options
author | Roy Marples <roy@marples.name> | 2009-07-08 22:38:48 +0100 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2009-07-08 22:38:48 +0100 |
commit | 7962218dd85dcb4ebbd1f6fa01b565d129a258e2 (patch) | |
tree | a35efc7072e8f3d54367aa351ad4baeb76d3bcda /net/iproute2.sh | |
parent | 889b317ac6c12ec14ccfb43a7ef9156470cfa8e3 (diff) | |
download | openrc-7962218dd85dcb4ebbd1f6fa01b565d129a258e2.tar.gz openrc-7962218dd85dcb4ebbd1f6fa01b565d129a258e2.tar.bz2 openrc-7962218dd85dcb4ebbd1f6fa01b565d129a258e2.tar.xz |
Apply MTU and txqueuelen after creating the tunnel.
Diffstat (limited to 'net/iproute2.sh')
-rw-r--r-- | net/iproute2.sh | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/net/iproute2.sh b/net/iproute2.sh index 08a4266..b1fe861 100644 --- a/net/iproute2.sh +++ b/net/iproute2.sh @@ -190,16 +190,6 @@ _tunnel() iproute2_pre_start() { - # MTU support - local mtu= - eval mtu=\$mtu_${IFVAR} - [ -n "${mtu}" ] && ip link set "${IFACE}" mtu "${mtu}" - - # TX Queue Length support - local len= - eval len=\$txqueuelen_${IFVAR} - [ -n "${len}" ] && ip link set "${IFACE}" txqueuelen "${len}" - local tunnel= eval tunnel=\$iptunnel_${IFVAR} if [ -n "${tunnel}" ]; then @@ -212,6 +202,16 @@ iproute2_pre_start() _up fi + # MTU support + local mtu= + eval mtu=\$mtu_${IFVAR} + [ -n "${mtu}" ] && ip link set "${IFACE}" mtu "${mtu}" + + # TX Queue Length support + local len= + eval len=\$txqueuelen_${IFVAR} + [ -n "${len}" ] && ip link set "${IFACE}" txqueuelen "${len}" + return 0 } |