From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <1682c728e8f16a9afd00ab561b69c4c0.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199704101534.JAA21230@bamboo.verinet.com> Date: Thu, 10 Apr 1997 11:43:19 -0400 (EDT) From: Alvin Starr Subject: RE: Firewall bug in 2.0.27 kernel In-Reply-To: <97Apr10.110755edt.48472-3@gatekeeper.cplc.com> On Thu, 10 Apr 1997, Anderson, Greg wrote: > >Alvin Starr wrote: > > > >Just gotta love C for its ability to do address calculations > > > >in "ip_fw.c" you will find > > [snip] > > >The problem is that the address calculation multiplies the ihl value by 8 > >due to the fact that it points to an "unsigned long". This calculation > >should be infact > > ((char *)ip)+(ip->ihl<<2) > > Is this only a problem on Alpha? What problems does this cause, bogus > filtering? I'm setting up firewalling on 2.0.27 Intel box and the code > is the same. Should I apply your patch to it? 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 Interlink Connectivity || fax: (416)493-7974 alvin@iplink.net || -- 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