Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Anderson, Greg <greg.anderson@cplc.com>
Subject: RE: Firewall bug in 2.0.27 kernel
Date: Thu, 10 Apr 1997 14:31:28 -0400	[thread overview]
Message-ID: <b4b6fb7198bb869290f28996b32f4f02.axp-list@archive.invalid> (raw)

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

             reply	other threads:[~1997-04-10 18:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-10 18:31 Anderson, Greg [this message]
     [not found] <Pine.OSF.3.91.970410113452.29178C-100000@caesar.iplink.net>
1997-04-10 16:30 ` Firewall bug in 2.0.27 kernel Robert Drotar
  -- strict thread matches above, loose matches on Subject: below --
1997-04-10 14:24 Anderson, Greg
1997-04-10 14:24 Anderson, Greg
1997-04-10 14:24 Anderson, Greg
1997-04-10 15:43 ` Alvin Starr
1997-04-10  0:41 Alvin Starr
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