aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libpcap/libpcap/dlpisubs.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpcap/libpcap/dlpisubs.h')
-rw-r--r--lib/libpcap/libpcap/dlpisubs.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/lib/libpcap/libpcap/dlpisubs.h b/lib/libpcap/libpcap/dlpisubs.h
new file mode 100644
index 0000000..cdc531c
--- /dev/null
+++ b/lib/libpcap/libpcap/dlpisubs.h
@@ -0,0 +1,38 @@
+#ifndef dlpisubs_h
+#define dlpisubs_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * 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);
+#endif
+int pcap_alloc_databuf(pcap_t *);
+int strioctl(int, int, int, char *);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif