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-dos.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-dos.c')
-rw-r--r-- | pcap-dos.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -5,7 +5,7 @@ * pcap-dos.c: Interface to PKTDRVR, NDIS2 and 32-bit pmode * network drivers. * - * @(#) $Header: /tcpdump/master/libpcap/pcap-dos.c,v 1.1 2004-12-18 08:52:10 guy Exp $ (LBL) + * @(#) $Header: /tcpdump/master/libpcap/pcap-dos.c,v 1.2 2005-05-03 18:53:59 guy Exp $ (LBL) */ #include <stdio.h> @@ -172,6 +172,7 @@ pcap_t *pcap_open_live (const char *device_name, int snaplen, int promisc, pcap->stats_op = pcap_stats_dos; pcap->inject_op = pcap_sendpacket_dos; pcap->setfilter_op = pcap_setfilter_dos; + pcap->setdirection_op = NULL; /* Not implemented.*/ pcap->fd = ++ref_count; if (pcap->fd == 1) /* first time we're called */ |