From: Robert Drotar <robo@kamila.kolej.mff.cuni.cz>
Subject: RE: Firewall bug in 2.0.27 kernel
Date: Thu, 10 Apr 1997 18:30:53 +0200 (MET DST) [thread overview]
Message-ID: <f2f00090493418d4c0828f27b1617b37.axp-list@archive.invalid> (raw)
In-Reply-To: <Pine.OSF.3.91.970410113452.29178C-100000@caesar.iplink.net>
-----BEGIN PGP SIGNED MESSAGE-----
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 :)
WhiteAngel
_.------------------------------.
.---------------.- Department of Computer Science |
| Robert Drotar | Charles University Prague __.-'
`---------------'-_ Czech Republic ____.-----'
`--------------'
mailto: Robert.Drotar@kamila.kolej.mff.cuni.cz
www: http://ss1000.ms.mff.cuni.cz/~rdro1314
voice: ++420-2-85 56 152 ext. 732
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
iQCVAwUBM00VwBvajr1XDdg9AQGDxAP/e7CfXC+i/2Qpbf44YjPd0gLFqLYOLSo3
lf5Zkk1EFStAQX9CFXRSrOWFA+vcJqS7p+bzJmlEW3PN7P1k1G/jqb4mp0DiKnlV
17pT2zDQr7XZ/rGbSVoANH2dEqaT5BQlmBCOSHs6jfrQPtROah9ytjGWwf4zkrVV
1KXfQ2kJUAA=
=c+l7
-----END PGP SIGNATURE-----
--
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
next parent reply other threads:[~1997-04-10 16:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.OSF.3.91.970410113452.29178C-100000@caesar.iplink.net>
1997-04-10 16:30 ` Robert Drotar [this message]
1997-04-10 18:31 Firewall bug in 2.0.27 kernel Anderson, Greg
-- strict thread matches above, loose matches on Subject: below --
1997-04-10 14:24 Anderson, Greg
1997-04-10 15:43 ` Alvin Starr
1997-04-10 14:24 Anderson, Greg
1997-04-10 14:24 Anderson, Greg
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