From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <199704101440.KAA25350@linux03.amt.tay1.dec.com> Date: Thu, 10 Apr 1997 18:30:53 +0200 (MET DST) From: Robert Drotar Subject: RE: Firewall bug in 2.0.27 kernel In-Reply-To: -----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