Wireshark  4.3.0
The Wireshark network protocol analyzer
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 
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);
24 
25 #ifdef HAVE_PCAP_SET_TSTAMP_PRECISION
26 /*
27  * Request that a pcap_t provide high-resolution (nanosecond) time
28  * stamps; if that request fails, we'll just silently continue to
29  * use the microsecond-resolution time stamps, and our caller will
30  * find out, when they call have_high_resolution_timestamp(), that
31  * we don't have high-resolution time stamps.
32  */
33 extern void request_high_resolution_timestamp(pcap_t *pcap_h);
34 #endif
35 
36 extern if_capabilities_t *get_if_capabilities_local(interface_options *interface_opts,
37  cap_device_open_status *status, char **status_str);
38 extern pcap_t *open_capture_device_local(capture_options *capture_opts,
39  interface_options *interface_opts, int timeout,
40  cap_device_open_status *open_status,
41  char (*open_status_str)[PCAP_ERRBUF_SIZE]);
42 #ifdef HAVE_PCAP_CREATE
43 extern if_capabilities_t *get_if_capabilities_pcap_create(interface_options *interface_opts,
44  cap_device_open_status *status, char **status_str);
45 extern pcap_t *open_capture_device_pcap_create(capture_options *capture_opts,
46  interface_options *interface_opts, int timeout,
47  cap_device_open_status *open_status,
48  char (*open_status_str)[PCAP_ERRBUF_SIZE]);
49 #endif /* HAVE_PCAP_CREATE */
50 extern if_capabilities_t *get_if_capabilities_pcap_open_live(interface_options *interface_opts,
51  cap_device_open_status *status, char **status_str);
52 extern pcap_t *open_capture_device_pcap_open_live(interface_options *interface_opts,
53  int timeout, cap_device_open_status *open_status,
54  char (*open_status_str)[PCAP_ERRBUF_SIZE]);
55 
56 /*
57  * Get an error message string for a CANT_GET_INTERFACE_LIST error from
58  * "get_interface_list()". This is used to let the error message string
59  * be platform-dependent.
60  */
61 extern char *cant_get_if_list_error_message(const char *err_str);
62 
63 #endif /* __PCAP_UTIL_INT_H__ */
Definition: capture_opts.h:250
Definition: capture_ifinfo.h:102
Definition: capture_ifinfo.h:42
Definition: iptrace.c:57
Definition: capture_opts.h:198