Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.3
novell-nortelplugins
novell-nortelplugins-mtu-advmss.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File novell-nortelplugins-mtu-advmss.patch of Package novell-nortelplugins
Index: novell-nortelplugins-0.1.4/ipalias =================================================================== --- novell-nortelplugins-0.1.4.orig/ipalias +++ novell-nortelplugins-0.1.4/ipalias @@ -17,13 +17,23 @@ else # IPRGW holds output from ip r get GWADDR, lines are yanked... IPRGW=$(ip route get $GWADDR) - if [ ${#IPRGW} -eq 0 ]; then + if [ -z ${#IPRGW} ]; then MTU=1350 ADVMSS=1310 else # reduce MTU and ADVMSS by size of ipsec header - MTU=$(( $(echo $IPRGW | sed 's/.*mtu[ \t]*\([0-9]*\).*/\1/') - 64)) - ADVMSS=$(( $(echo $IPRGW | sed 's/.*advmss[ \t]*\([0-9]*\).*/\1/') - 64)) + MTU=$(echo $IPRGW | sed -n 's/.*mtu[ \t]*\([0-9]*\).*/\1/p') + if [ -z $MTU ]; then + MTU=1350 + else + MTU=`expr $MTU - 64` + fi + ADVMSS=$(echo $IPRGW | sed -n 's/.*advmss[ \t]*\([0-9]*\).*/\1/p') + if [ -z $ADVMSS ]; then + ADVMSS=1310 + else + ADVMSS=`expr $ADVMSS - 64` + fi fi fi
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor