wireshark/ui
Guy Harris 8e76178fcd Fix reporting of interface-list-fetching errors.
If the attempt to fetch the list of local interfaces failed, the model
will be empty, so "model is empty" doesn't imply "no interfaces found".
First, check whether there was an error, and report the error string;
otherwise, if the list is empty, report "No interfaces found." (and fix
the capitalization while we're at it) and, otherwise, return an empty
string.

Also, if pcap support wasn't configured in at compile time, skip all
that, and just return a string indicating that.

Change-Id: I498226888272e1bdede2355cc902f8a74b0cce72
Reviewed-on: https://code.wireshark.org/review/36446
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2020-03-16 06:51:50 +00:00
..
cli HTTP: share dissector status value_string array with tshark HTTP stats 2020-01-24 22:38:17 +00:00
macosx macOS: Expand a comment. 2020-02-28 16:40:02 +00:00
qt Fix reporting of interface-list-fetching errors. 2020-03-16 06:51:50 +00:00
win32 Win32: Remove win32_save_as_statstree. 2019-12-10 01:05:43 +00:00
CMakeLists.txt HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
alert_box.c
alert_box.h
all_files_wildcard.h
capture.c Qt: Keep extcap control channels when capturing to multiple files 2019-11-07 12:53:47 +00:00
capture.h HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
capture_globals.h
capture_info.h Move the last of the routines from capture_info.c into ui/capture.c. 2019-09-15 14:09:41 +00:00
capture_ui_utils.c Fix some places where we forgot to mention Npcap. 2020-03-12 18:59:44 +00:00
capture_ui_utils.h HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
clopts_common.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
clopts_common.h Reorganize long option values 2019-12-15 20:02:09 +00:00
cmdarg_err.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
cmdarg_err.h
commandline.c Reorganize long option values 2019-12-15 20:02:09 +00:00
commandline.h
console.c Windows: Console log handler fixups. 2019-03-14 21:15:08 +00:00
console.h
decode_as_utils.c Accept protocol aliases in Decode As (-d tcp.port==4433,ssl) 2019-02-05 22:40:01 +00:00
decode_as_utils.h HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
dissect_opts.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
dissect_opts.h Reorganize long option values 2019-12-15 20:02:09 +00:00
export_object_ui.c
export_object_ui.h
export_pdu_ui_utils.c Use g_file_open_tmp within create_tempfile 2019-12-20 19:26:38 +00:00
export_pdu_ui_utils.h
failure_message.c
failure_message.h
file_dialog.c 1514 is a better initial Buffer size than 1500. 2019-04-06 21:04:02 +00:00
file_dialog.h
filter_files.c FilterFiles: Remove GTK+-only filter lists 2019-10-25 13:46:44 +00:00
filter_files.h FilterFiles: Remove GTK+-only filter lists 2019-10-25 13:46:44 +00:00
firewall_rules.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
firewall_rules.h
help_url.c Qt: Rename the Capture Interfaces dialog to Capture Options. 2019-12-03 03:16:16 +00:00
help_url.h Qt: Rename the Capture Interfaces dialog to Capture Options. 2019-12-03 03:16:16 +00:00
iface_lists.c capchild,ifaces: use g_get_monotonic_time 2019-07-17 06:26:09 +00:00
iface_lists.h
iface_toolbar.c
iface_toolbar.h
io_graph_item.c IO Graph shows unsigned values correctly 2020-01-18 12:17:24 +00:00
io_graph_item.h IO Graph shows unsigned values correctly 2020-01-18 12:17:24 +00:00
language.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
language.h HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
last_open_dir.h
main_statusbar.h
mcast_stream.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
mcast_stream.h HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
packet_list_utils.c
packet_list_utils.h
packet_range.c Qt: Multiselection in PacketList 2019-11-17 12:20:29 +00:00
packet_range.h Qt: Multiselection in PacketList 2019-11-17 12:20:29 +00:00
persfilepath_opt.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
persfilepath_opt.h HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
preference_utils.c profiles: Try to better sync on disk config state 2019-12-16 05:34:28 +00:00
preference_utils.h ui: Refactoring column_prefs_add_custom 2019-06-30 13:08:40 +00:00
profile.c Qt: Prevent loop in renames of profiles 2019-08-13 08:16:12 +00:00
profile.h Qt: Prevent loop in renames of profiles 2019-08-13 08:16:12 +00:00
progress_dlg.h file: remove use of g_get_current_time 2019-07-17 06:25:28 +00:00
proto_hier_stats.c file: remove use of g_get_current_time 2019-07-17 06:25:28 +00:00
proto_hier_stats.h
recent.c Qt: Make it possible to hide welcome screen warnings. 2020-02-07 07:36:03 +00:00
recent.h Qt: Make it possible to hide welcome screen warnings. 2020-02-07 07:36:03 +00:00
recent_utils.h
rtp_media.c codecs API: Added description of API usage 2019-12-30 15:41:00 +00:00
rtp_media.h rtp_analysis_dialog.cpp: save any supported codec as .au 2019-11-21 16:06:49 +00:00
rtp_stream.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
rtp_stream.h rtp_player: Player is able to set start of audio play by double click 2020-01-07 09:38:14 +00:00
rtp_stream_id.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
rtp_stream_id.h HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
service_response_time.c
service_response_time.h
simple_dialog.h Qt: Add asynchronous simple dialog 2019-05-20 12:53:38 +00:00
software_update.c macOS: Software update fixes. 2020-02-28 04:50:38 +00:00
software_update.h Test+Qt: Add an automatic update check. 2020-02-15 11:13:25 +00:00
ssl_key_export.c
ssl_key_export.h
summary.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
summary.h HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
tap-credentials.h credentials: don't use wmem file scope but a local copy. 2019-07-05 12:26:44 +00:00
tap-iax2-analysis.c HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
tap-iax2-analysis.h HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
tap-rlc-graph.c Some more issues spotted by PVS-Studio in bug 16335. 2020-02-23 21:43:51 +00:00
tap-rlc-graph.h
tap-rtp-analysis.c RTP Stream Analysis: fix wrong values for clock drift and freq drift. 2020-01-24 13:36:13 +00:00
tap-rtp-analysis.h HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
tap-rtp-common.c rtp_player: Player is able to set start of audio play by double click 2020-01-07 09:38:14 +00:00
tap-rtp-common.h rtp_analysis_dialog: save as au: fix for streams with multiple codecs 2019-11-03 11:12:30 +00:00
tap-sctp-analysis.c [SCTP] ui: fix Analyse Association with correct number of endpoint streams 2019-06-13 18:01:43 +00:00
tap-sctp-analysis.h
tap-tcp-stream.c Some more issues spotted by PVS-Studio in bug 16335. 2020-02-23 21:43:51 +00:00
tap-tcp-stream.h
tap_export_pdu.c wiretap: fix memleaks with wtap_rec::opt_comment 2019-01-25 04:53:10 +00:00
tap_export_pdu.h
taps.h HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
text_import.c text import: make TCP dest port truly direction dependant 2019-04-20 06:59:27 +00:00
text_import.h Text Import: update code comments and help texts 2019-01-21 21:03:49 +00:00
text_import_scanner.h Put back EOF rule, but without exporting write_current_packet(). 2019-03-20 16:06:57 +00:00
text_import_scanner.l Put back EOF rule, but without exporting write_current_packet(). 2019-03-20 16:06:57 +00:00
time_shift.c
time_shift.h HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
traffic_table_ui.c Don't cast away constness if you don't have to. 2019-03-17 22:10:10 +00:00
traffic_table_ui.h Re-implement "Map" feature for Endpoints 2019-02-16 21:11:12 +00:00
util.c HTTPS In More Places, update some URLs. 2019-07-27 07:55:36 +00:00
util.h
voip_calls.c rtp_player: Player is able to set start of audio play by double click 2020-01-07 09:38:14 +00:00
voip_calls.h
ws_ui_util.h Allow Multiselection of packets to work during live captures 2020-01-12 22:33:42 +00:00