? autom4te.cache Index: config.h.in =================================================================== RCS file: /tcpdump/master/libpcap/config.h.in,v retrieving revision 1.28 diff -u -r1.28 config.h.in --- config.h.in 15 Jun 2007 17:56:30 -0000 1.28 +++ config.h.in 29 Jun 2007 20:06:43 -0000 @@ -50,6 +50,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H +/* Define to 1 if you have the header file. */ +#undef HAVE_NET_PFVAR_H + /* Define to 1 if you have the header file. */ #undef HAVE_NETINET_ETHER_H Index: configure =================================================================== RCS file: /tcpdump/master/libpcap/configure,v retrieving revision 1.77 diff -u -r1.77 configure --- configure 15 Jun 2007 17:56:30 -0000 1.77 +++ configure 29 Jun 2007 20:06:46 -0000 @@ -3669,6 +3669,70 @@ done + +for ac_header in net/pfvar.h net/if_pflog.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#include +#include + +#include <$ac_header> +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$as_ac_Header=yes" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +eval "$as_ac_Header=no" +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + for ac_header in netinet/if_ether.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` Index: configure.in =================================================================== RCS file: /tcpdump/master/libpcap/configure.in,v retrieving revision 1.136 diff -u -r1.136 configure.in --- configure.in 15 Jun 2007 17:55:50 -0000 1.136 +++ configure.in 29 Jun 2007 20:06:47 -0000 @@ -27,6 +27,9 @@ dnl "AC_LBL_FIXINCLUDES" won't work on some platforms such as Solaris. dnl AC_CHECK_HEADERS(sys/ioccom.h sys/sockio.h limits.h paths.h) +AC_CHECK_HEADERS(net/pfvar.h, , , [#include +#include +#include ]) AC_CHECK_HEADERS(netinet/if_ether.h, , , [#include #include ]) if test "$ac_cv_header_netinet_if_ether_h" != yes; then Index: gencode.c =================================================================== RCS file: /tcpdump/master/libpcap/gencode.c,v retrieving revision 1.284 diff -u -r1.284 gencode.c --- gencode.c 22 Jun 2007 06:32:06 -0000 1.284 +++ gencode.c 29 Jun 2007 20:06:49 -0000 @@ -73,7 +73,14 @@ #include "ppp.h" #include "pcap/sll.h" #include "arcnet.h" +#ifdef HAVE_NET_PFVAR_H +#include +#include +#include +#include +#else #include "pf.h" +#endif #ifndef offsetof #define offsetof(s, e) ((size_t)&((s *)0)->e) #endif Index: grammar.y =================================================================== RCS file: /tcpdump/master/libpcap/grammar.y,v retrieving revision 1.97 diff -u -r1.97 grammar.y --- grammar.y 11 Jun 2007 10:04:25 -0000 1.97 +++ grammar.y 29 Jun 2007 20:06:49 -0000 @@ -52,7 +52,13 @@ #include "pcap-int.h" #include "gencode.h" +#ifdef HAVE_NET_PFVAR_H +#include +#include +#include +#else #include "pf.h" +#endif #include "ieee80211.h" #include