Hello community,

here is the log from the commit of package novell-nortelplugins for 
openSUSE:12.1 checked in at 2011-10-25 16:37:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:12.1/novell-nortelplugins (Old)
 and      /work/SRC/openSUSE:12.1/.novell-nortelplugins.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "novell-nortelplugins", Maintainer is "b...@suse.com"

Changes:
--------
--- /work/SRC/openSUSE:12.1/novell-nortelplugins/novell-nortelplugins.changes   
2011-10-24 13:10:58.000000000 +0200
+++ 
/work/SRC/openSUSE:12.1/.novell-nortelplugins.new/novell-nortelplugins.changes  
    2011-10-25 16:37:41.000000000 +0200
@@ -1,0 +2,5 @@
+Tue Oct 25 09:33:26 UTC 2011 - b...@suse.com
+
+- Fix the MTU and ADVMSS value in kernel >= 3.0.(bnc#717219)
+
+-------------------------------------------------------------------

New:
----
  novell-nortelplugins-mtu-advmss.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ novell-nortelplugins.spec ++++++
--- /var/tmp/diff_new_pack.bZoVrU/_old  2011-10-25 16:37:41.000000000 +0200
+++ /var/tmp/diff_new_pack.bZoVrU/_new  2011-10-25 16:37:41.000000000 +0200
@@ -27,6 +27,7 @@
 Group:          Productivity/Networking/Security
 Source:         %{name}-%{version}.tar.bz2
 Patch0:         novell-nortelplugins-no-static.patch
+Patch1:         %{name}-mtu-advmss.patch
 Url:            http://forge.novell.com/modules/xfmod/project/?turnpike
 Requires:       novell-ipsec-tools >= 0.7
 Requires:       turnpike
@@ -50,6 +51,7 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 autoreconf -i -f

++++++ novell-nortelplugins-mtu-advmss.patch ++++++
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
 
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to