From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,83488c02d34165dc X-Google-Attributes: gid111c93,public From: "B. James Phillippe" Subject: Re: ipfwadm problems Date: 1998/07/17 Message-ID: #1/1 X-Deja-AN: 372278491 References: <6oliks$ge0$1@post.servtech.com> <6ollmb$nr$1@canoe.xcski.com> To: Paul Tomblin X-Subliminal-Message: Use Linux Content-Type: TEXT/PLAIN; charset=US-ASCII Organization: Terran.ORG/LinuxWorld.NET Mime-Version: 1.0 Newsgroups: comp.os.linux.alpha On 16 Jul 1998, Paul Tomblin wrote: > In a previous article, theodore brace 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 defines byte and packet counters as u_int32_t whereas they are (64-bit) longs in the kernel . 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 : 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 Linux Software Engineer, WGT Inc. http://earth.terran.org/~bryan