extcap: check preference in extcap_loaded_interfaces().
authorDario Lombardo <lomato@gmail.com>
Fri, 12 Jan 2018 18:04:34 +0000 (19:04 +0100)
committerAnders Broman <a.broman58@gmail.com>
Sun, 14 Jan 2018 08:33:02 +0000 (08:33 +0000)
Change-Id: Ie1fd214eb8f9d55f1ce400b7227ad9887f05da76
Reviewed-on: https://code.wireshark.org/review/25286
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
extcap.c

index 26a8173ca33f33e8df81274d9db301754a6a6537..9b77c3a9beef6675a5fd7a044859abd51638d06b 100644 (file)
--- a/extcap.c
+++ b/extcap.c
@@ -97,6 +97,9 @@ static void extcap_load_interface_list(void);
 GHashTable *
 extcap_loaded_interfaces(void)
 {
+    if (prefs.capture_no_extcap)
+        return NULL;
+
     if ( !_loaded_interfaces || g_hash_table_size(_loaded_interfaces) == 0 )
         extcap_load_interface_list();