From d9b420231a4428234f666eb6c44a4dea6f1f2d71 Mon Sep 17 00:00:00 2001 From: guy Date: Fri, 4 Apr 2008 19:37:44 +0000 Subject: From Paolo Abeni and me: split pcap_open_live() into a "get a pcap_t handle" routine, an 'activate a pcap_t handle" routine, and some "set the properties of the pcap_t handle" routines, so that, for example, the buffer size can be set on a BPF device before the device is bound to an interface. Add additional routines to set monitor mode, and make at least an initial attempt at supporting that on Linux, *BSD, and Mac OS X 10.4 and 10.5. (Very much "initial" for Linux, which is a twisty little maze of wireless drivers, many different.) Have a "timeout" member of the pcap_md structure on all platforms, use that on Windows instead of the "timeout" member of the pcap_t structure, and get rid of the "timeout" member of that structure. --- pcap-septel.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pcap-septel.h') diff --git a/pcap-septel.h b/pcap-septel.h index a9526b5..227d056 100644 --- a/pcap-septel.h +++ b/pcap-septel.h @@ -8,8 +8,8 @@ * Authors: Gilbert HOYEK (gil_hoyek@hotmail.com), Elias M. KHOURY * (+961 3 485343); * - * @(#) $Header: /tcpdump/master/libpcap/pcap-septel.h,v 1.1 2005-06-20 21:27:10 guy Exp $ + * @(#) $Header: /tcpdump/master/libpcap/pcap-septel.h,v 1.2 2008-04-04 19:37:45 guy Exp $ */ -pcap_t *septel_open_live(const char *device, int snaplen, int promisc, int to_ms, char *ebuf); +pcap_t *septel_create(const char *device, char *ebuf); -- cgit v1.2.3