From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 7176 invoked from network); 12 Jul 1998 01:00:26 -0000 Received: from earth.terran.org (bryan@208.152.24.33) by mail2.redhat.com with SMTP; 12 Jul 1998 01:00:26 -0000 Received: from localhost (bryan@localhost) by earth.terran.org (8.8.7/8.8.8) with SMTP id SAA04933; Sat, 11 Jul 1998 18:01:23 -0700 Date: Sat, 11 Jul 1998 18:01:22 -0700 (PDT) From: "B. James Phillippe" To: Linux GNU libc list , Linux kernel cc: RedHat AXP list Subject: long vs u_int32_t in ipfwadm Message-ID: Organization: Terran.ORG/LinuxWorld.NET X-Subliminal-Message: Use Linux MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Greetings, I have found a problem with ipfwadm-2.3.0 when compiled under glibc-2.0.7. In the linux-2.0 kernel, defines struct ip_fw, which contains (among other things) byte & packet counters specified as unsigned longs. In the glibc include , struct ip_fw is defined with the counters as u_int32_t. This coincidentally works on x86, but on Alpha it causes both unaligned traps and changes the size of the firewall struct, which, when passed in a call to setsockopt() is an invalid argument (and setsockopt fails). I'm not sure who's to blame here though. Is it proper that a.) fw_bcnt and fw_pcnt be changed to u_int64_t in glibc, or b.) ipfwadm-2.3 include over glibc's? It seems to me that glibc should be changed. Thoughts? -bp -- B. James Phillippe Linux Software Engineer, WGT Inc. http://earth.terran.org/~bryan