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-nit.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-nit.c')
-rw-r--r-- | pcap-nit.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -20,7 +20,7 @@ */ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/libpcap/pcap-nit.c,v 1.47 2003-07-25 04:42:03 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/pcap-nit.c,v 1.48 2003-07-25 05:07:02 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -261,6 +261,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_nit; p->close_op = pcap_close_nit; @@ -277,9 +278,3 @@ pcap_platform_finddevs(pcap_if_t **alldevsp, char *errbuf) { return (0); } - -int -pcap_set_datalink_platform(pcap_t *p, int dlt) -{ - return (0); -} |