diff options
author | guy <guy> | 2003-07-25 05:32:02 +0000 |
---|---|---|
committer | guy <guy> | 2003-07-25 05:32:02 +0000 |
commit | cd0d893ef99fbd6e06311242d8631b8a5cf9502e (patch) | |
tree | ae17f58218c26d028d2390c1229b006bb270d415 /pcap-dag.h | |
parent | 08658f1c932c872f1d920e72e62d200471bd80d0 (diff) | |
download | libpcap-cd0d893ef99fbd6e06311242d8631b8a5cf9502e.tar.gz |
Add a "read" function pointer to the pcap_t structure, which handles
reading packets from a pcap_t, and make "pcap_read()" call it. That
removes the last place where we have to check for a pcap_t that refers
to a DAG card rather than a live capture, so get rid of the "is_dag" flag.
Diffstat (limited to 'pcap-dag.h')
-rw-r--r-- | pcap-dag.h | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -7,10 +7,8 @@ * * Author: Richard Littin, Sean Irvine ({richard,sean}@reeltwo.com) * - * @(#) $Header: /tcpdump/master/libpcap/pcap-dag.h,v 1.2 2003-07-25 04:04:57 guy Exp $ (LBL) + * @(#) $Header: /tcpdump/master/libpcap/pcap-dag.h,v 1.3 2003-07-25 05:32:03 guy Exp $ (LBL) */ -int dag_read(pcap_t *p, int cnt, pcap_handler callback, u_char *user); pcap_t *dag_open_live(const char *device, int snaplen, int promisc, int to_ms, char *ebuf); -int dag_setfilter(pcap_t *p, struct bpf_program *fp); |