* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
- * SPDX-License-Identifier: GPL-2.0+
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
if_info_t if_info;
gboolean selected;
gboolean hidden;
-#ifdef HAVE_EXTCAP
/* External capture cached data */
GHashTable *external_cap_args_settings;
-#endif
gchar *timestamp_type;
} interface_t;
gint dlt;
} link_row;
-#ifdef _WIN32
-#define INVALID_EXTCAP_PID INVALID_HANDLE_VALUE
-#else
-#define INVALID_EXTCAP_PID (GPid)-1
-#endif
-
typedef struct interface_options_tag {
gchar *name; /* the name of the interface provided to winpcap/libpcap to specify the interface */
gchar *descr;
int linktype;
gboolean promisc_mode;
interface_type if_type;
-#ifdef HAVE_EXTCAP
gchar *extcap;
gchar *extcap_fifo;
GHashTable *extcap_args;
- GPid extcap_pid; /* pid of running process or INVALID_EXTCAP_PID */
- gpointer extcap_userdata;
+ GPid extcap_pid; /* pid of running process or WS_INVALID_PID */
+ gpointer extcap_pipedata;
guint extcap_child_watch;
#ifdef _WIN32
HANDLE extcap_pipe_h;
#endif
gchar *extcap_control_in;
gchar *extcap_control_out;
-#endif
#ifdef CAN_SET_CAPTURE_BUFFER_SIZE
int buffer_size;
#endif