This is a discussion on Re: IPFilter 4.1 within the IPFilter forums, part of the System Security and Security Related category; > From: Darren Reed <darrenr@reed.wattle.id.au> > In some email I received from Hans Werner ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
> From: Darren Reed <darrenr@reed.wattle.id.au>
> In some email I received from Hans Werner Strube, sie wrote: > > (2) ip_fil4.1: > > > > In Solaris 7_x86 (don't know for higher x86 versions), add -D_SYS_PROMIF_H > > to the CFLAGS in the Makefile (line 21). > > Can you send me a patch for buildsolaris ? If you do not want to add it to the CFLAGS in the Makefile by hand, the simplest way is to add it to SOLARIS2 in buildsunos (because CFLAGS is deeply wrapped in the MFLAGS). I don't think it will disturb if not required in other Solaris versions. *** buildsunos.ORI Sat Feb 7 19:08:46 2004 --- buildsunos Thu Feb 12 14:34:56 2004 *************** *** 147,153 **** if [ -n "$BPFILTER" ] ; then BPF="BPFILTER=./$BPFILTER" fi ! $MAKE $MAKEFLAGS ${1+"$@"} sunos5x86 SOLARIS2="-DSOLARIS2=$solrev" CPU= CPUDIR=${cpudir} CC="$CC $XARCH32" XARCH="$XARCH32" ARCHINC="$ARCHINC32" BITS=32 OBJ=. $BPF exit $? fi if [ x$solrev = x ] ; then --- 147,153 ---- if [ -n "$BPFILTER" ] ; then BPF="BPFILTER=./$BPFILTER" fi ! $MAKE $MAKEFLAGS ${1+"$@"} sunos5x86 SOLARIS2="-DSOLARIS2=$solrev -D_SYS_PROMIF_H" CPU= CPUDIR=${cpudir} CC="$CC $XARCH32" XARCH="$XARCH32" ARCHINC="$ARCHINC32" BITS=32 OBJ=. $BPF exit $? fi if [ x$solrev = x ] ; then # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # > > (3) Compilation with the BPF stuff fails in Solaris 7, even if libpcap has > > been installed, because there is no <net/bpf.h> and not any DLT_ macros > > defined in the system header files (at least up to Solaris 8). > > Update your libpcap installation. The libpcap version is 0.8.1, afaik the most recent one. Also the problem is not libpcap as such but fil.c, lines 117-119: #if defined(IPFILTER_BPF) && defined(_KERNEL) # include <net/bpf.h> #endif There is simply no net/bpf.h anywhere, at least in Solaris 7 and 8. Or must -DIPFILTER_BPF simply be omitted in Solaris? Then everything builds o.k.; but does it work as it should? (libpcap uses the dlpi interface rather than bpf.) |