(Sorry, inadvertently have first sent this to [EMAIL PROTECTED]
instead to this mailing list. Not literally the same now; item (3) added.)

Thanks, Darren, this is great! But for compiling in Solaris 7, there are
still one or two changes required.

(1) pfil-2.1:

*** qif.h.ORI   Sat Jan 17 19:53:25 2004
--- qif.h       Thu Feb 12 10:18:28 2004
***************
*** 94,100 ****
  
  
  #ifdef sun
! # if SOLARIS2 < 7
  #  define     QF_V4_ADDR(x)   \
                        ((ill_t *)(x)->qf_ill)->ill_ipif->ipif_local_addr
  #  define     QF_V4_BROADCAST(x)      \
--- 94,100 ----
  
  
  #ifdef sun
! # if SOLARIS2 <= 7
  #  define     QF_V4_ADDR(x)   \
                        ((ill_t *)(x)->qf_ill)->ill_ipif->ipif_local_addr
  #  define     QF_V4_BROADCAST(x)      \

(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).

Generally, -D_BSD_SOURCE is meaningless, at least for Solaris, since it
does not occur in the sources of pfil and ip_fil4.1 nor in the Solaris
header files in /usr/include.

(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).

Reply via email to