diff options
author | guy <guy> | 2003-07-23 05:29:19 +0000 |
---|---|---|
committer | guy <guy> | 2003-07-23 05:29:19 +0000 |
commit | 77cade932c4c67e1c9e1e1cd1f16514735a9cfea (patch) | |
tree | 908425bd059704705b2ca7a1f1b0e73823e3d9b1 /pcap-dag.h | |
parent | 69c370ff8aead0ce831dccacf4e6962e5acd978c (diff) |
From Jesper Peterson <jesper@endace.com>: support for capturing from
Endace DAG devices.
Diffstat (limited to 'pcap-dag.h')
-rw-r--r-- | pcap-dag.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pcap-dag.h b/pcap-dag.h new file mode 100644 index 00000000..b486907d --- /dev/null +++ b/pcap-dag.h @@ -0,0 +1,18 @@ +/* + * pcap-dag.c: Packet capture interface for Endace DAG card. + * + * The functionality of this code attempts to mimic that of pcap-linux as much + * as possible. This code is only needed when compiling in the DAG card code + * at the same time as another type of device. + * + * Author: Richard Littin, Sean Irvine ({richard,sean}@reeltwo.com) + * + * @(#) $Header: /tcpdump/master/libpcap/pcap-dag.h,v 1.1 2003-07-23 05:29:21 guy Exp $ (LBL) + */ + +int dag_stats(pcap_t *p, struct pcap_stat *ps); +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); +void dag_platform_close(pcap_t *p); + |