On Wed, May 19, 2004 at 09:03:53PM +1000, Darren Reed wrote: > Actually, I think I might have been wrong. It comes in these files: > # find /usr/include -print | xargs grep -l FIONREAD > /usr/include/asm/ioctls.h > /usr/include/linux/sockios.h > > # rpm -q -f /usr/include/asm/ioctls.h > glibc-kernheaders-2.4-8.10 > # rpm -q -f /usr/include/linux/sockios.h > glibc-kernheaders-2.4-8.10 >
On SuSE 8.2, those files are part of the glibc-devel package (for what it's
worth).
# rpm -q -f /usr/include/asm/ioctls.h
glibc-devel-2.3.2-6
Welcome to the wonderful world of Linux, where nothing is ever quite the
same between different distros.
> You should not have to include termios.h to get FIONREAD.
> That is just wrong.
> FIONREAD (as an ioctl) can work for any device - it returns the
> number of bytes that can be read without the device blocking the
> process in wait for more data.
>
> Darren
Well, the following (simple) patch allowed the software to compile:
--- ipf-linux.h 2004-05-19 10:31:34.000000000 -0500
+++ ipf-linux.h 2004-05-19 10:31:27.000000000 -0500
@@ -23,6 +23,7 @@
#include <linux/netfilter.h>
#include <linux/netfilter_ipv4.h>
#include <linux/netfilter_ipv6.h>
+#include <asm/ioctls.h>
struct tcphdr {
__u16 th_sport;
Including <linux/sockios.h> didn't help to get past the FIONREAD errors.
Now, when I try to install-linux, I'm running in to the following problem:
(cd ..; ../bsdinstall -c -g wheel -m 755 -o root ipfboot
/tmp/ipfilter-root//etc/init.d)
install: can't open ipfboot
make[1]: *** [install] Error 1
Doing a find for ipfboot seems to indicate that the file is missing from the
ip_fil tarball:
# find . -name ipfboot -print
./HPUX/ipfboot
./IRIX/ipfboot
./SunOS5/ipfboot
Looking at the other files, they appear to be startup scripts, so I'll try
and gin up something, slap it in the Linux/ subdirectory as ipfboot, and try
make install-linux again.
David Bogen
pgpywt6wF4WcA.pgp
Description: PGP signature
