TODO netlogon_user_flags_ntlmv2_enabled
[wireshark-sm.git] / capture / capture-pcap-util-int.h
blobad26fa3d5c4708996b8bcaf315d00067d9393278
1 /** @file
3 * Definitions of routines internal to the libpcap/WinPcap/Npcap utilities
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
12 #ifndef __PCAP_UTIL_INT_H__
13 #define __PCAP_UTIL_INT_H__
15 extern if_info_t *if_info_new(const char *name, const char *description,
16 bool loopback);
17 extern void if_info_add_address(if_info_t *if_info, struct sockaddr *addr);
18 #ifdef HAVE_PCAP_REMOTE
19 extern GList *get_interface_list_findalldevs_ex(const char *hostname,
20 const char *port, int auth_type, const char *username, const char *passwd,
21 int *err, char **err_str);
22 #endif /* HAVE_PCAP_REMOTE */
23 extern GList *get_interface_list_findalldevs(int *err, char **err_str);
25 extern if_capabilities_t *get_if_capabilities_local(interface_options *interface_opts,
26 cap_device_open_status *status, char **status_str);
27 extern pcap_t *open_capture_device_local(capture_options *capture_opts,
28 interface_options *interface_opts, int timeout,
29 cap_device_open_status *open_status,
30 char (*open_status_str)[PCAP_ERRBUF_SIZE]);
31 extern if_capabilities_t *get_if_capabilities_pcap_create(interface_options *interface_opts,
32 cap_device_open_status *status, char **status_str);
33 extern pcap_t *open_capture_device_pcap_create(capture_options *capture_opts,
34 interface_options *interface_opts, int timeout,
35 cap_device_open_status *open_status,
36 char (*open_status_str)[PCAP_ERRBUF_SIZE]);
39 * Get an error message string for a CANT_GET_INTERFACE_LIST error from
40 * "get_interface_list()". This is used to let the error message string
41 * be platform-dependent.
43 extern char *cant_get_if_list_error_message(const char *err_str);
46 * Get a longer, secondary error message corrresponding to why getting
47 * capabilities or opening a device failed. This is used to let the error
48 * message string be platform-dependent.
50 extern const char *get_pcap_failure_secondary_error_message(cap_device_open_status open_status,
51 const char *open_status_str);
53 #endif /* __PCAP_UTIL_INT_H__ */