From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <97Apr10.143121edt.48393-3@gatekeeper.cplc.com> Date: Thu, 10 Apr 1997 14:31:28 -0400 From: Anderson, Greg Subject: RE: Firewall bug in 2.0.27 kernel Thanks. I think I'll rebuild my Intel kernal with this when I get a chance. I take it a u-long is 64 bits on an Alpha? Robert Drotar wrote: >On Thu, 10 Apr 1997, Alvin Starr wrote: > >> The problem will only show itself on systems where sizeof(long unsigned) >> != 4. You should be safe on an intel platform. >> The problem is that the person who wrote the code took advantage of the >> fact that a unsigned long was 4 bytes in size. This is not true on all >> platforms. >> >> Alvin Starr || voice: (416)493-3325 > > I have hed the same proble and here is the solution: > struct tcphdr *tcp=(struct tcphdr *)((__u32 *)ip+ip->ihl); > struct udphdr *udp=(struct udphdr *)((__u32 *)ip+ip->ihl); > struct icmphdr *icmp=(struct icmphdr *)((__u32 *)ip+ip->ihl); > > This will work at x86 too :) > -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com