Re: glibc/Linux disparity breaks net apps

Paul Rusty Russell (Paul.Russell@rustcorp.com.au)
Sat, 18 Jul 1998 13:18:00 +0930


In message <Pine.LNX.3.96.980716203134.2912A-100000@earth.terran.org> you write
:
> Hello,
>
> Under linux-2.0.35, <linux/ip_fw.h> defines struct ip_fw to have
> members fw_pcnt and fw_bcnt as unsigned long. This sounds reasonable.
> Under glibc-2.0.7, <netinet/ip_fw.h> defines that same struct ip_fw to have
> members fw_pcnt and fw_bcnt as u_int32_t.

[snip]

> Finally, I am wondering what ramifications (if any) the new 2.1.x ipchains
> will have with glibc and userland net tools.

1) For glibc systems, I replicated the kernel stuff I need in a special
header in the ipchains source ("kernel_headers.h").

2) The numbers are only passed through /proc as text (2 32-bit values,
even), so don't appear in the headers anyway.

3) I try to be aware of modern CPUs even though I code on an Pentium;
the code always uses explicit types (eg. __u32 or u_int32_t).

Rusty.

--
 .sig lost in the mail.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html