Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "B. James Phillippe" <bryan@terran.org>
To: Linux GNU libc list <glibc-linux@ricardo.ecn.wfu.edu>,
	Linux kernel <linux-kernel@vger.rutgers.edu>
Cc: RedHat AXP list <axp-list@redhat.com>
Subject: long vs u_int32_t in ipfwadm
Date: Sat, 11 Jul 1998 18:01:22 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.3.96.980711172701.4785A-100000@earth.terran.org> (raw)

Greetings,

	I have found a problem with ipfwadm-2.3.0 when compiled under
glibc-2.0.7.  In the linux-2.0 kernel, <linux/ip_fw.h> defines struct
ip_fw, which contains (among other things) byte & packet counters specified
as unsigned longs.  In the glibc include <netinet/ip_fw.h>, 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 <linux/ip_fw.h> over glibc's?  It seems to me that glibc should be
changed.

Thoughts?

-bp
--
B. James Phillippe <bryan@terran.org>
Linux Software Engineer, WGT Inc.
http://earth.terran.org/~bryan


                 reply	other threads:[~1998-07-12  1:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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