diff options
author | Dario Lombardo <lomato@gmail.com> | 2018-01-07 22:06:13 +0100 |
---|---|---|
committer | Roland Knall <rknall@gmail.com> | 2018-01-09 09:58:48 +0000 |
commit | 22b5ffad861b2efede6d64d16e38710d2c713ba1 (patch) | |
tree | 3987df75222880846fa9a07dea6edf088bd1e54a /extcap.c | |
parent | 0a8d6cf97e0dccc02cb36f2636feb053725118da (diff) |
extcap: add preference to prevent interfaces loading.
Change-Id: Ia5865a40c75e582f28408a0515c5c0b38e43a916
Reviewed-on: https://code.wireshark.org/review/25188
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'extcap.c')
-rw-r--r-- | extcap.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -506,6 +506,9 @@ append_extcap_interface_list(GList *list, char **err_str _U_) extcap_interface *data = NULL; GList *ifutilkeys_head = NULL, *ifutilkeys = NULL; + if (prefs.capture_no_extcap) + return list; + /* Update the extcap interfaces and get a list of their if_infos */ if ( !_loaded_interfaces || g_hash_table_size(_loaded_interfaces) == 0 ) extcap_load_interface_list(); |