diff options
author | guy <guy> | 2003-07-25 05:07:01 +0000 |
---|---|---|
committer | guy <guy> | 2003-07-25 05:07:01 +0000 |
commit | 08658f1c932c872f1d920e72e62d200471bd80d0 (patch) | |
tree | 031ba9d0daaad5784b85e109838cbc0adadbdf36 /pcap-snit.c | |
parent | cd2807e08d02de68b766ed88acf3bfd3b54b2a24 (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-snit.c')
-rw-r--r-- | pcap-snit.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/pcap-snit.c b/pcap-snit.c index c05ebbbe..fa0dc8c8 100644 --- a/pcap-snit.c +++ b/pcap-snit.c @@ -25,7 +25,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/libpcap/pcap-snit.c,v 1.63 2003-07-25 04:42:04 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/pcap-snit.c,v 1.64 2003-07-25 05:07:03 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -319,6 +319,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_snit; p->close_op = pcap_close_snit; @@ -335,9 +336,3 @@ pcap_platform_finddevs(pcap_if_t **alldevsp, char *errbuf) { return (0); } - -int -pcap_set_datalink_platform(pcap_t *p, int dlt) -{ - return (0); -} |