summaryrefslogtreecommitdiffstats
path: root/contrib/libpcap/dlpisubs.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libpcap/dlpisubs.h')
-rw-r--r--contrib/libpcap/dlpisubs.h22
1 files changed, 16 insertions, 6 deletions
diff --git a/contrib/libpcap/dlpisubs.h b/contrib/libpcap/dlpisubs.h
index 1b57d4d..cdc531c1 100644
--- a/contrib/libpcap/dlpisubs.h
+++ b/contrib/libpcap/dlpisubs.h
@@ -1,7 +1,3 @@
-/*
- * @(#) $Header: /tcpdump/master/libpcap/dlpisubs.h,v 1.2 2008-04-04 19:37:45 guy Exp $
- */
-
#ifndef dlpisubs_h
#define dlpisubs_h
@@ -10,13 +6,27 @@ extern "C" {
#endif
/*
- * Functions used by dlpisubs.c.
+ * Private data for capturing on DLPI devices.
+ */
+struct pcap_dlpi {
+#ifdef HAVE_LIBDLPI
+ dlpi_handle_t dlpi_hd;
+#endif /* HAVE_LIBDLPI */
+#ifdef DL_HP_RAWDLS
+ int send_fd;
+#endif /* DL_HP_RAWDLS */
+
+ struct pcap_stat stat;
+};
+
+/*
+ * Functions defined by dlpisubs.c.
*/
int pcap_stats_dlpi(pcap_t *, struct pcap_stat *);
int pcap_process_pkts(pcap_t *, pcap_handler, u_char *, int, u_char *, int);
int pcap_process_mactype(pcap_t *, u_int);
#ifdef HAVE_SYS_BUFMOD_H
-int pcap_conf_bufmod(pcap_t *, int, int);
+int pcap_conf_bufmod(pcap_t *, int);
#endif
int pcap_alloc_databuf(pcap_t *);
int strioctl(int, int, int, char *);
OpenPOWER on IntegriCloud