summaryrefslogtreecommitdiffstats
path: root/capture/capture-wpcap.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
commite4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch)
tree68cb5ef9081156392f1dd62a00c6ccc1451b93df /capture/capture-wpcap.h
parentInitial commit. (diff)
downloadwireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz
wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'capture/capture-wpcap.h')
-rw-r--r--capture/capture-wpcap.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/capture/capture-wpcap.h b/capture/capture-wpcap.h
new file mode 100644
index 00000000..f3397821
--- /dev/null
+++ b/capture/capture-wpcap.h
@@ -0,0 +1,44 @@
+/** @file
+ *
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
+ * Copyright 2001 Gerald Combs
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
+#ifndef CAPTURE_WPCAP_H
+#define CAPTURE_WPCAP_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+#ifdef HAVE_LIBPCAP
+#ifdef __MINGW32__
+#include <_bsd_types.h>
+#endif
+#include <pcap.h>
+#endif
+
+extern bool has_wpcap;
+
+extern void load_wpcap(void);
+
+/**
+ * Check to see if npf.sys is running.
+ * @return true if npf.sys is running, false if it's not or if there was
+ * an error checking its status.
+ */
+bool npf_sys_is_running(void);
+
+#ifdef HAVE_LIBPCAP
+int
+ws_pcap_findalldevs_ex(const char *a, struct pcap_rmtauth *b, pcap_if_t **c, char *errbuf);
+#endif
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* CAPTURE_WPCAP_H */