Wireshark 4.5.0
The Wireshark network protocol analyzer
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
capture-wpcap.h
Go to the documentation of this file.
1
10#ifndef CAPTURE_WPCAP_H
11#define CAPTURE_WPCAP_H
12
13#ifdef __cplusplus
14extern "C" {
15#endif /* __cplusplus */
16
17#ifdef HAVE_LIBPCAP
18#ifdef __MINGW32__
19#include <_bsd_types.h>
20#endif
21#include <pcap/pcap.h>
22#endif
23
24extern bool has_npcap;
25
26extern void load_wpcap(void);
27
28/*
29 * This returns true if we loaded WinPcap; we don't support WinPcap anymore,
30 * so this doesn't mean we can capture (has_npcap is still false), but we can
31 * produce a more informative error message.
32 */
33extern bool caplibs_have_winpcap(void);
34
41
42#ifdef HAVE_LIBPCAP
43int
44ws_pcap_findalldevs_ex(const char *a, struct pcap_rmtauth *b, pcap_if_t **c, char *errbuf);
45#endif
46
47#ifdef __cplusplus
48}
49#endif /* __cplusplus */
50
51#endif /* CAPTURE_WPCAP_H */
bool npf_sys_is_running(void)