[198] in linux-net channel archive
IPIP and linux-netset-3.tar.gz fixes
daemon@ATHENA.MIT.EDU (Jaakko Hyvatti)
Wed Apr 12 17:07:38 1995
From: Jaakko Hyvatti <Jaakko.Hyvatti@www.fi>
To: A.Cox@swansea.ac.uk, linux-net@vger.rutgers.edu
Date: Wed, 12 Apr 1995 22:29:08 +0200 (EET DST)
I have done some experimenting with recent kernels and netcode.
In the tunneling device I discovered that the ip header checksum was
not correctly computed. Patch below.
--------------------------------------------------------------------
My notes on compiling linux kernel (Jaakko.Hyvatti@www.fi)
This file is ftp://www.fi/pub/linux/diffs/kernel/linux-1.2.4
Compiled with HLu:s elf gcc 2.6.4-950305
Patches applied:
ftp://ftp.cs.helsinki.fi/pub/Software/Linux/Kernel/v1.2/linux-1.2.0.tar.gz
ftp://ftp.cs.helsinki.fi/pub/Software/Linux/Kernel/v1.2/patch-1.2.1.gz
ftp://ftp.cs.helsinki.fi/pub/Software/Linux/Kernel/v1.2/patch-1.2.2.gz
ftp://ftp.cs.helsinki.fi/pub/Software/Linux/Kernel/v1.2/patch-1.2.3.gz
ftp://ftp.cs.helsinki.fi/pub/Software/Linux/Kernel/v1.2/patch-1.2.4.gz
ftp://tsx-11.mit.edu/pub/packages/GCC/private/dontuse/linux-1.2.3.elf.diff.gz
ftp://tsx-11.mit.edu/pub/packages/GCC/private/dontuse/release.linux-1.2.3.elf.1
ftp://ftp.linux.org.uk/pub/tmp/linux-netset-3.tar.gz
ftp://www.fi/pub/linux/diffs/kernel/linux-1.2.4e3.sabr.diff
--- old/linux-1.2.4e3/drivers/net/tunnel.c Tue Apr 11 16:17:43 1995
+++ linux-angie/drivers/net/tunnel.c Wed Apr 12 21:19:03 1995
@@ -231,7 +231,8 @@
/* Here is where we compute the IP checksum */
/* ip_fast_csum() is an inline function from net/inet/ip.h/checksum.h */
- ip_fast_csum((unsigned char *)iph, iph->ihl);
+ iph->check = 0;
+ iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
#ifdef TUNNEL_DEBUG
printk("New IP Header....\n");
--- old/linux-1.2.4e3/net/inet/ipip.c Tue Apr 11 18:32:06 1995
+++ linux-angie/net/inet/ipip.c Wed Apr 12 20:40:12 1995
@@ -30,7 +30,7 @@
* NB. we must include the kernel idenfication string in to install the module.
*/
-#if defined(CONFIG_IPIP) || defined(MODULE)
+#if defined(CONFIG_NET_IPIP) || defined(MODULE)
#ifdef MODULE
#include <linux/module.h>
#include <linux/version.h>
-------------------------------------------------------------------