and assume it's a cloning device.
/* Enable optimizer debugging */
#undef BDEBUG
/* Enable optimizer debugging */
#undef BDEBUG
+/* define if you have a cloning BPF device */
+#undef HAVE_CLONING_BPF
+
/* define if you have the DAG API */
#undef HAVE_DAG_API
/* define if you have the DAG API */
#undef HAVE_DAG_API
-# From configure.in Revision: 1.120.2.11 .
+# From configure.in Revision: 1.120.2.12 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59.
#
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59.
#
echo $ECHO_N "checking packet capture type... $ECHO_C" >&6
if test ! -z "$with_pcap" ; then
V_PCAP="$withval"
echo $ECHO_N "checking packet capture type... $ECHO_C" >&6
if test ! -z "$with_pcap" ; then
V_PCAP="$withval"
+elif test -r /dev/bpf ; then
+ #
+ # Cloning BPF device.
+ #
+ V_PCAP=bpf
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_CLONING_BPF 1
+_ACEOF
+
elif test -r /dev/bpf0 ; then
V_PCAP=bpf
elif test -r /usr/include/net/pfilt.h ; then
elif test -r /dev/bpf0 ; then
V_PCAP=bpf
elif test -r /usr/include/net/pfilt.h ; then
-dnl @(#) $Header: /tcpdump/master/libpcap/configure.in,v 1.120.2.11 2007-06-11 09:52:04 guy Exp $ (LBL)
+dnl @(#) $Header: /tcpdump/master/libpcap/configure.in,v 1.120.2.12 2007-06-15 17:57:26 guy Exp $ (LBL)
dnl
dnl Copyright (c) 1994, 1995, 1996, 1997
dnl The Regents of the University of California. All rights reserved.
dnl
dnl Copyright (c) 1994, 1995, 1996, 1997
dnl The Regents of the University of California. All rights reserved.
dnl Process this file with autoconf to produce a configure script.
dnl
dnl Process this file with autoconf to produce a configure script.
dnl
-AC_REVISION($Revision: 1.120.2.11 $)
+AC_REVISION($Revision: 1.120.2.12 $)
AC_PREREQ(2.50)
AC_INIT(pcap.c)
AC_PREREQ(2.50)
AC_INIT(pcap.c)
AC_MSG_CHECKING(packet capture type)
if test ! -z "$with_pcap" ; then
V_PCAP="$withval"
AC_MSG_CHECKING(packet capture type)
if test ! -z "$with_pcap" ; then
V_PCAP="$withval"
+elif test -r /dev/bpf ; then
+ #
+ # Cloning BPF device.
+ #
+ V_PCAP=bpf
+ AC_DEFINE(HAVE_CLONING_BPF,1,[define if you have a cloning BPF device])
elif test -r /dev/bpf0 ; then
V_PCAP=bpf
elif test -r /usr/include/net/pfilt.h ; then
elif test -r /dev/bpf0 ; then
V_PCAP=bpf
elif test -r /usr/include/net/pfilt.h ; then
*/
#ifndef lint
static const char rcsid[] _U_ =
*/
#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/libpcap/pcap-bpf.c,v 1.86.2.11 2007-06-11 09:52:05 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/pcap-bpf.c,v 1.86.2.12 2007-06-15 17:57:27 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
#endif
#ifdef HAVE_CONFIG_H
#include <sys/ioctl.h>
#include <sys/utsname.h>
#include <sys/ioctl.h>
#include <sys/utsname.h>
-#ifdef HAVE_PATHS_H
-#include <paths.h>
-#if defined(__NetBSD__) && defined(_PATH_BPF)
-#define HAVE_CLONING_BPF
-#endif /* __NetBSD__ && _PATH_BPF */
-#endif /* HAVE_PATHS_H */
-
#include <net/if.h>
#ifdef _AIX
#include <net/if.h>
#ifdef _AIX
{
int fd;
#ifdef HAVE_CLONING_BPF
{
int fd;
#ifdef HAVE_CLONING_BPF
- static const char device[] = _PATH_BPF;
+ static const char device[] = "/dev/bpf";
#else
int n = 0;
char device[sizeof "/dev/bpf0000000000"];
#else
int n = 0;
char device[sizeof "/dev/bpf0000000000"];