aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-snoop.c
diff options
context:
space:
mode:
authorguy <guy>2005-05-03 18:53:58 +0000
committerguy <guy>2005-05-03 18:53:58 +0000
commite987a615e2b8d2c9215eb3b6c14ec18845c20daa (patch)
tree189e6d2c79c88a75a1d7b4ceed2aeeb189571614 /pcap-snoop.c
parenta27ec8748269d08509f49dda0a07deaa4c732649 (diff)
From Pawel Pokrywka: add support for requesting that only received
packets, only sent packets, or all packets be accepted, with an implementation for Linux. Add an implementation for BPF platforms that support BIOCSSEESENT.
Diffstat (limited to 'pcap-snoop.c')
-rw-r--r--pcap-snoop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pcap-snoop.c b/pcap-snoop.c
index 7a27b10..e4545c4 100644
--- a/pcap-snoop.c
+++ b/pcap-snoop.c
@@ -20,7 +20,7 @@
*/
#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/libpcap/pcap-snoop.c,v 1.54 2004-10-19 07:06:14 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/pcap-snoop.c,v 1.55 2005-05-03 18:54:00 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -379,6 +379,7 @@ pcap_open_live(const char *device, int snaplen, int promisc, int to_ms,
p->read_op = pcap_read_snoop;
p->inject_op = pcap_inject_snoop;
p->setfilter_op = install_bpf_program; /* no kernel filtering */
+ p->setdirection_op = NULL; /* Not implemented. */
p->set_datalink_op = NULL; /* can't change data link type */
p->getnonblock_op = pcap_getnonblock_fd;
p->setnonblock_op = pcap_setnonblock_fd;