> From: Hans Werner Strube <[EMAIL PROTECTED]> > > From: Darren Reed <[EMAIL PROTECTED]> ... > > > (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.
libpcap-0.8.1 is too new; the net/bpf.h of former versions has been replaced by pcap-bpf.h. Workaround (in the ip_fil4.1 top dir): ln -s /usr/local/include/pcap-bpf.h net/bpf.h (will be removed by make clean!). Then fil.c can be compiled (but does it work?).
