diff options
author | guy <guy> | 2005-05-03 18:53:58 +0000 |
---|---|---|
committer | guy <guy> | 2005-05-03 18:53:58 +0000 |
commit | e987a615e2b8d2c9215eb3b6c14ec18845c20daa (patch) | |
tree | 189e6d2c79c88a75a1d7b4ceed2aeeb189571614 /pcap-dlpi.c | |
parent | a27ec8748269d08509f49dda0a07deaa4c732649 (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-dlpi.c')
-rw-r--r-- | pcap-dlpi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pcap-dlpi.c b/pcap-dlpi.c index 22c1dfd3..a9fa6b82 100644 --- a/pcap-dlpi.c +++ b/pcap-dlpi.c @@ -70,7 +70,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/libpcap/pcap-dlpi.c,v 1.113 2005-04-17 17:25:51 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/pcap-dlpi.c,v 1.114 2005-05-03 18:53:58 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -933,6 +933,7 @@ pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, p->read_op = pcap_read_dlpi; p->inject_op = pcap_inject_dlpi; 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; |