From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5392,f5ba90e33d078090,start X-Google-Attributes: gidf5392,public X-Google-Thread: 111c93,f5ba90e33d078090,start X-Google-Attributes: gid111c93,public From: Leon Bottou Subject: Bug fix kernel 2.0.30 for alpha (net/ipv4/ip_fw.c) Date: 1998/01/23 Message-ID: <34C8CD1C.1C7F3A64@research.att.com>#1/1 X-Deja-AN: 318648407 Content-Transfer-Encoding: 7bit Sender: nntp@research.att.com Mime-Version: 1.0 X-Nntp-Posting-Host: odeux.research.att.com To: Alan.Cox@linux.org Content-Type: text/plain; charset=us-ascii Organization: AT&T Labs Research, Florham Park, NJ Newsgroups: comp.os.linux.alpha,comp.os.linux.development.system 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 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);