12#ifndef __CAPTURE_PCAP_UTIL_H__
13#define __CAPTURE_PCAP_UTIL_H__
37#define MIN_PACKET_SIZE 1
47GList *get_local_interface_list_ws(
int *err,
char **err_str);
57GList* get_local_interface_list_ss(
int* err,
char** err_str);
59#ifdef HAVE_PCAP_REMOTE
74GList *get_remote_interface_list(
const char *hostname,
const char *port,
75 bool wireshark_remote,
76 int auth_type,
const char *username,
78 int *err,
char **err_str);
88const char *linktype_val_to_name(
int dlt);
96int linktype_name_to_val(
const char *linktype);
106int get_pcap_datalink(pcap_t *pch,
const char *devicename);
120bool set_pcap_datalink(pcap_t *pcap_h,
int datalink,
char *name,
121 char *errmsg,
size_t errmsg_len,
122 char *secondary_errmsg,
size_t secondary_errmsg_len);
133bool have_high_resolution_timestamp(pcap_t *pcap_h);
140 CAP_DEVICE_OPEN_NO_ERR,
143 CAP_DEVICE_OPEN_ERROR_NO_SUCH_DEVICE,
144 CAP_DEVICE_OPEN_ERROR_RFMON_NOTSUP,
145 CAP_DEVICE_OPEN_ERROR_PERM_DENIED,
146 CAP_DEVICE_OPEN_ERROR_IFACE_NOT_UP,
147 CAP_DEVICE_OPEN_ERROR_PROMISC_PERM_DENIED,
150 CAP_DEVICE_OPEN_ERROR_OTHER,
153 CAP_DEVICE_OPEN_ERROR_GENERIC,
156 CAP_DEVICE_OPEN_WARNING_PROMISC_NOTSUP,
157 CAP_DEVICE_OPEN_WARNING_TSTAMP_TYPE_NOTSUP,
160 CAP_DEVICE_OPEN_WARNING_OTHER
161} cap_device_open_status;
163 cap_device_open_status *status,
char **status_str);
166 int timeout, cap_device_open_status *open_status,
167 char (*open_status_str)[PCAP_ERRBUF_SIZE]);
191extern bool caplibs_have_npcap(
void);
200extern bool caplibs_get_npcap_version(
unsigned int *major,
201 unsigned int *minor);
void gather_caplibs_compile_info(feature_list l)
Append to a GString an indication of the version of capture libraries with which we're running,...
Definition capture-pcap-util-unix.c:159
void gather_caplibs_runtime_info(feature_list l)
Append runtime capture‑library version information to a feature list.
Definition capture-pcap-util-unix.c:165
GList ** feature_list
Semi-opaque handle to a list of features or dependencies.
Definition feature_list.h:33
Definition capture_opts.h:236
Definition capture_ifinfo.h:45
Definition capture_opts.h:185