<< | Thread Index | >> ]    [ << | Date Index | >> ]

Subject: RE: [RFC] "CIPE ethernet devices should have an MTU of 1500"
From: "Oliver Pitzeier" <o.pitzeier,AT,uptime,DOT,at>
Date: Tue, 13 Nov 2001 15:05:55 +0100
In-reply-to: <BPEJLPJHFKIABICELAANIEHCCGAA.o.pitzeier@uptime.at>

hey jo. cool. it works!

here the patch... if someone wants to try...

[root@delphi cipe]# cat cipe-1.4.5-mtu.patch
--- device.c.orig       Tue Nov 13 01:54:42 2001
+++ device.c    Tue Nov 13 01:55:04 2001
@@ -480,8 +480,5 @@
     dev->type                  = ARPHRD_TUNNEL;
     dev->hard_header_len        = 0; /* we copy anyway to expand */
-    dev->mtu                   = ETH_DATA_LEN
-                                     -sizeof(struct sockshdr)
-                                     -cipehdrlen
-                                     -cipefootlen;
+    dev->mtu                   = ETH_DATA_LEN;

     dev->tx_queue_len          = 100; /* matches ethernet */

[root@delphi cipe]#

here the ifconfig-snip...

[root@delphi cipe]# ifconfig cipcb0
cipcb0    Protokoll:IPIP Tunnel  Hardware Adresse
          inet Adresse:10.0.0.2  P-z-P:10.0.0.1  Maske:255.255.255.255
          UP PUNKTZUPUNKT NOTRAILERS RUNNING NOARP  MTU:1500  Metric:1
          RX packets:42 errors:0 dropped:0 overruns:0 frame:0
          TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlange:100
          RX bytes:29160 (28.4 Kb)  TX bytes:26896 (26.2 Kb)

[root@delphi cipe]#

if someone can try it as well and test it... would be really COOL!

-Oliver

-----Original Message-----
From: Oliver Pitzeier [mailto:o.pitzeier,AT,uptime,DOT,at
Sent: Tuesday, November 13, 2001 2:34 PM
To: cipe-l,AT,inka,DOT,de
Subject: RE: [RFC] "CIPE ethernet devices should have an MTU of 1500"

i'll try this on redhat enigma (7.2), using kernel version 2.4.9:
[root@delphi cipe]# diff device.c device.c.orig
482c482,485
<     dev->mtu                  = ETH_DATA_LEN;
---
>     dev->mtu                  = ETH_DATA_LEN
>                                      -sizeof(struct sockshdr)
>                                      -cipehdrlen
>                                      -cipefootlen;

let's see what happens. :o)

-Oliver

-----Original Message-----
From: Olaf Titz [mailto:olaf,AT,bigred,DOT,inka,DOT,de
Sent: Thursday, November 08, 2001 10:29 PM
To: Oliver Pitzeier
Subject: Re: [RFC] "CIPE ethernet devices should have an MTU of 1500"

> i guess there's no possibility to "upgrade" my existing rpm-installation
> with a "1500mtu-patch"????

The only way to upgrade an RPM installation is to uninstall the RPM
and compile the new version yourself.

regards

Olaf





<< | Thread Index | >> ]    [ << | Date Index | >> ]