Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1:Test
novell-nortelplugins
novell-nortelplugins-ipalias_wrong_mtu_and_rout...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File novell-nortelplugins-ipalias_wrong_mtu_and_route.patch of Package novell-nortelplugins
Index: novell-nortelplugins-0.1.3/ChangeLog =================================================================== --- novell-nortelplugins-0.1.3.orig/ChangeLog +++ novell-nortelplugins-0.1.3/ChangeLog @@ -1,3 +1,8 @@ +2008-04-17 Bin Li <bili@novell.com> + + * ipalias: fix the method for getting mtu and + reset default route checking. + 2008-02-05 Bin Li <bili@novell.com> * configure.in: update to 0.1.3 Index: novell-nortelplugins-0.1.3/ipalias =================================================================== --- novell-nortelplugins-0.1.3.orig/ipalias +++ novell-nortelplugins-0.1.3/ipalias @@ -21,10 +21,9 @@ else MTU=1350 ADVMSS=1310 else - set -- $IPRGW # reduce MTU and ADVMSS by size of ipsec header - MTU=$(( ${10} - 64 )) - ADVMSS=$(( ${12} - 64 )) + MTU=$(( $(echo $IPRGW | sed 's/.*mtu[ \t]*\([0-9]*\).*/\1/') - 64)) + ADVMSS=$(( $(echo $IPRGW | sed 's/.*advmss[ \t]*\([0-9]*\).*/\1/') - 64)) fi fi @@ -82,7 +81,7 @@ if [ ${#DEFAULTGW} -ne 0 ]; then /sbin/ip route add $GWADDR via $DEFAULTGW dev $PUBLICDEV mtu $MTU advmss $ADVMSS fi -if [ "$NUMRT" -ne 0 ]; then +if [ "$NUMRT" != "0" -a "$DEFAULTGW" != "" ]; then /sbin/route del -net 0.0.0.0/0 $VIRTUALDEV /sbin/route add default gw $DEFAULTGW 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