diff options
Diffstat (limited to 'ui/iface_lists.c')
-rw-r--r-- | ui/iface_lists.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ui/iface_lists.c b/ui/iface_lists.c index a1b66745f1..e249029fe7 100644 --- a/ui/iface_lists.c +++ b/ui/iface_lists.c @@ -184,9 +184,8 @@ scan_local_interfaces(void (*update_cb)(void)) temp.vendor_description = g_strdup(if_info->vendor_description); temp.loopback = if_info->loopback; temp.type = if_info->type; -#ifdef HAVE_EXTCAP temp.extcap = g_strdup(if_info->extcap); -#endif + /* Is this interface hidden and, if so, should we include it anyway? */ descr = capture_dev_user_descr_find(if_info->name); @@ -315,10 +314,9 @@ scan_local_interfaces(void (*update_cb)(void)) global_capture_opts.num_selected++; } -#ifdef HAVE_EXTCAP /* Extcap devices start with no cached args */ device.external_cap_args_settings = NULL; -#endif + if (global_capture_opts.all_ifaces->len <= count) { g_array_append_val(global_capture_opts.all_ifaces, device); count = global_capture_opts.all_ifaces->len; @@ -381,9 +379,7 @@ scan_local_interfaces(void (*update_cb)(void)) device.if_info.vendor_description = g_strdup(interface_opts->descr); device.if_info.addrs = NULL; device.if_info.loopback = FALSE; -#ifdef HAVE_EXTCAP device.if_info.extcap = g_strdup(interface_opts->extcap); -#endif g_array_append_val(global_capture_opts.all_ifaces, device); global_capture_opts.num_selected++; |