Bug fix kernel 2.0.30 for alpha (net/ipv4/ip_fw.c)

Bug fix kernel 2.0.30 for alpha (net/ipv4/ip_fw.c)

Post by Leon Botto » Sat, 24 Jan 1998 04:00:00



I found and fixed the following bug (longs are 8 bytes)
in my kernel 2.0.30 for alpha. Sorry for not giving
a full diff. Hope it helps anyway.


File "net/ipv4/ip_fw.c"
Function "ip_fw_chk()"

correct version ---------------------

nt ip_fw_chk(struct iphdr *ip, struct device *rif, __u16 *redirport, struct
ip_fw *chain, int policy, int mode)
{
        struct ip_fw *f;
        struct tcphdr           *tcp=(struct tcphdr *)((unsigned char
*)ip+4*ip->ihl);
        struct udphdr           *udp=(struct udphdr *)((unsigned char
*)ip+4*ip->ihl);
        struct icmphdr          *icmp=(struct icmphdr *)((unsigned char
*)ip+4*ip->ihl);

old version ----------------------

nt ip_fw_chk(struct iphdr *ip, struct device *rif, __u16 *redirport, struct
ip_fw *chain, int policy, int mode)
{
        struct ip_fw *f;
        struct tcphdr           *tcp=(struct tcphdr *)((unsigned long
*)ip+p->ihl);
        struct udphdr           *udp=(struct udphdr *)((unsigned long
*)ip+ip->ihl);
        struct icmphdr          *icmp=(struct icmphdr *)((unsigned long
*)ip+ip->ihl);

 
 
 

1. ipv4: move proc stuff from net/ipv4/af_inet.c to net/ipv4/proc.c


   Date: Tue, 29 Oct 2002 11:42:07 -0200 (BRDT)

        Please consider pulling from:

   kernel.bkbits.net:/home/acme/net-2.5

Pulled, thanks.

I just did a push to Linus, so this will go show up in the next round.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Incorrect Super Block

3. ipv4 /proc/net/route bug in 2.4 and 2.5 kernels

4. Linux and DEPCA ethernet card

5. 0.99pl8 kernel bug -fix (= no kernel bug)

6. Building 64 bit drivers, what compiler to use

7. Booting new kernel (2.0.30) on Alpha PC164 , with MILO

8. Problems with XFree86 3.3 S3 virge chip server

9. Net 2 V1.30 on Kernel 1.0 closing sockets?

10. [ipv4] move proc init to newly created net/ipv4/ip_proc.c

11. Patch?: linux-2.5.45/net/ipv4/netfilter dst.pmtu compilation fixes

12. *very* serious kernel bug (2.0.30)

13. 2.5.18: net/ipv4/ipconfig.c minor fix