Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* Bug fix kernel 2.0.30 for alpha (net/ipv4/ip_fw.c)
@ 1998-01-23  5:00 Leon Bottou
  0 siblings, 0 replies; only message in thread
From: Leon Bottou @ 1998-01-23  5:00 UTC (permalink / raw)
  To: Alan.Cox


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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-01-23  5:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-01-23  5:00 Bug fix kernel 2.0.30 for alpha (net/ipv4/ip_fw.c) Leon Bottou

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