From: "B. James Phillippe" <bryan@terran.org>
To: Paul Tomblin <ptomblin@xcski.com>
Subject: Re: ipfwadm problems
Date: 1998/07/17 [thread overview]
Message-ID: <Pine.LNX.3.96.980717000300.2912C-100000@earth.terran.org> (raw)
In-Reply-To: 6ollmb$nr$1@canoe.xcski.com
On 16 Jul 1998, Paul Tomblin wrote:
> In a previous article, theodore brace <brace@servtech.com> said:
> > ipfwadm: setsockopt failed: Invalid argument
> >
> >Is this a RH 5.1 problem, a glibc problem, or an alpha kernel problem?
> >I would greatly appreciate any and all help.
> >
>
> Probably a "I didn't recompile the kernel with ipfw enabled" problem. It
> works just fine for me. (Ok, I'm still using RH 5.0, but others on AXP list
> are using 5.1)
It's a bug in glibc for RedHat-5.1. struct ip_fw in <netinet/ip_fw.h>
defines byte and packet counters as u_int32_t whereas they are (64-bit)
longs in the kernel <linux/ip_fw.h>. This makes the size of struct ip_fw
too small and that's why setsockopt() fails from ipfwadm. This is also the
source of the unaligned trap. You can fix the problem by _temporarily_
changing this line in <netinet/ip_fw.h>:
u_int32_t fw_pcnt, fw_bcnt;
Change the u_int32_t to long and rebuild ipfwadm. I've complained about
this problem but havn't heard anything back yet (btw, netstat appears to
suffer similar problems). Perhaps if more people complain, someone
responsible will do something about it. :)
cheers,
-bp
--
B. James Phillippe <bryan@terran.org>
Linux Software Engineer, WGT Inc.
http://earth.terran.org/~bryan
next prev parent reply other threads:[~1998-07-17 4:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-07-16 4:00 ipfwadm problems theodore brace
1998-07-16 4:00 ` Paul Tomblin
1998-07-16 4:00 ` theodore brace
1998-07-16 4:00 ` Kent Kuhler
1998-07-17 4:00 ` B. James Phillippe [this message]
1998-07-18 4:00 ` Kent Kuhler
1998-07-20 4:00 ` Paul J Jarosz
1998-07-16 4:00 ` Paul Tomblin
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