Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Leon Bottou <leonb@research.att.com>
To: Alan.Cox@linux.org
Subject: Bug fix kernel 2.0.30 for alpha (net/ipv4/ip_fw.c)
Date: 1998/01/23	[thread overview]
Message-ID: <34C8CD1C.1C7F3A64@research.att.com> (raw)


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.

- Leon Bottou <leonb@research.att.com>




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);



                 reply	other threads:[~1998-01-23  5:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox