aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-snoop.c
diff options
context:
space:
mode:
authorguy <guy>2003-07-25 05:07:01 +0000
committerguy <guy>2003-07-25 05:07:01 +0000
commit08658f1c932c872f1d920e72e62d200471bd80d0 (patch)
tree031ba9d0daaad5784b85e109838cbc0adadbdf36 /pcap-snoop.c
parentcd2807e08d02de68b766ed88acf3bfd3b54b2a24 (diff)
Add a "set_datalink" function pointer to the pcap_t structure, whichhandles
setting a filter for a pcap_t. Have "pcap_set_datalink()" call it, rather than explicitly calling "pcap_set_datalink_platform()".
Diffstat (limited to 'pcap-snoop.c')
-rw-r--r--pcap-snoop.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/pcap-snoop.c b/pcap-snoop.c
index d2a8c48..f852a78 100644
--- a/pcap-snoop.c
+++ b/pcap-snoop.c
@@ -20,7 +20,7 @@
*/
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/libpcap/pcap-snoop.c,v 1.42 2003-07-25 04:42:04 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/pcap-snoop.c,v 1.43 2003-07-25 05:07:03 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -295,6 +295,7 @@ pcap_open_live(const char *device, int snaplen, int promisc, int to_ms,
}
p->setfilter_op = install_bpf_program; /* no kernel filtering */
+ p->set_datalink_op = NULL; /* can't change data link type */
p->stats_op = pcap_stats_snoop;
p->close_op = pcap_close_snoop;
@@ -310,9 +311,3 @@ pcap_platform_finddevs(pcap_if_t **alldevsp, char *errbuf)
{
return (0);
}
-
-int
-pcap_set_datalink_platform(pcap_t *p, int dlt)
-{
- return (0);
-}