Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
capture-pcap-util-int.h
Go to the documentation of this file.
1
12#ifndef __PCAP_UTIL_INT_H__
13#define __PCAP_UTIL_INT_H__
14
21extern void if_info_add_address(if_info_t *if_info, struct sockaddr *addr);
22#ifdef HAVE_PCAP_REMOTE
36extern GList *get_remote_interface_list_common(const char *hostname,
37 const char *port, int auth_type, const char *username, const char *passwd,
38 int *err, char **err_str);
39#endif /* HAVE_PCAP_REMOTE */
40
48extern GList *get_local_interface_list(int *err, char **err_str);
49
59 cap_device_open_status *status, char **status_str);
60
71extern pcap_t *open_capture_device_local(capture_options *capture_opts,
72 interface_options *interface_opts, int timeout,
73 cap_device_open_status *open_status,
74 char (*open_status_str)[PCAP_ERRBUF_SIZE]);
75
85 cap_device_open_status *status, char **status_str);
86
99 interface_options *interface_opts, int timeout,
100 cap_device_open_status *open_status,
101 char (*open_status_str)[PCAP_ERRBUF_SIZE]);
102
113extern char *cant_get_if_list_error_message(const char *err_str);
114
125extern const char *get_pcap_failure_secondary_error_message(cap_device_open_status open_status,
126 const char *open_status_str);
127
128#endif /* __PCAP_UTIL_INT_H__ */
pcap_t * open_capture_device_pcap_create(capture_options *capture_opts, interface_options *interface_opts, int timeout, cap_device_open_status *open_status, char(*open_status_str)[PCAP_ERRBUF_SIZE])
Open a capture device using pcap_create() with the given options.
GList * get_local_interface_list(int *err, char **err_str)
Retrieves a list of local network interfaces.
if_capabilities_t * get_if_capabilities_local(interface_options *interface_opts, cap_device_open_status *status, char **status_str)
Retrieves local interface capabilities.
const char * get_pcap_failure_secondary_error_message(cap_device_open_status open_status, const char *open_status_str)
Retrieves a secondary error message for a given capture device open status.
pcap_t * open_capture_device_local(capture_options *capture_opts, interface_options *interface_opts, int timeout, cap_device_open_status *open_status, char(*open_status_str)[PCAP_ERRBUF_SIZE])
Opens a capture device using pcap_create.
char * cant_get_if_list_error_message(const char *err_str)
Get an error message string for a get_interface_list() CANT_GET_INTERFACE_LIST error.
void if_info_add_address(if_info_t *if_info, struct sockaddr *addr)
Adds an address to an interface information structure.
if_capabilities_t * get_if_capabilities_pcap_create(interface_options *interface_opts, cap_device_open_status *status, char **status_str)
Retrieves capabilities for a network interface using pcap.
Definition capture_opts.h:236
Definition capture_ifinfo.h:45
Definition capture_ifinfo.h:59
Definition iptrace.c:70
Definition capture_opts.h:185