wireshark/ui/cli
Guy Harris 2c44a7f930 Clean up handling of enabled/disabled protocols/heuristic dissectors.
Add a "report a warning message" routine to the "report_err" code in
libwsutil, and rename files and routines appropriately, as they don't
only handle errors any more.

Have a routine read_enabled_and_disabled_protos() that reads all the
files that enable or disable protocols or heuristic dissectors, enables
and disables them based on the contents of those files, and reports
errors itself (as warnings) using the new "report a warning message"
routine.  Fix that error reporting to report separately on the disabled
protocols, enabled protocols, and heuristic dissectors files.

Have a routine to set up the enabled and disabled protocols and
heuristic dissectors from the command-line arguments, so it's done the
same way in all programs.

If we try to enable or disable an unknown heuristic dissector via a
command-line argument, report an error.

Update a bunch of comments.

Update the name of disabled_protos_cleanup(), as it cleans up
information for disabled *and* enabled protocols and for heuristic
dissectors.

Support the command-line flags to enable and disable protocols and
heuristic dissectors in tfshark.

Change-Id: I9b8bd29947cccdf6dc34a0540b5509ef941391df
Reviewed-on: https://code.wireshark.org/review/20966
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2017-04-08 20:40:08 +00:00
..
.editorconfig Add EditorConfig settings for most C files 2016-03-08 10:46:35 +00:00
Makefile.am Put tap-exportobject.h into the release tarball. 2016-12-02 18:28:43 +00:00
tap-camelsrt.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
tap-comparestat.c CLI/GTK: Fix compare_stat checksum to include IPv4 offset again 2016-07-26 17:57:07 +00:00
tap-diameter-avp.c cli: use ws_strtou function. 2016-09-15 21:38:43 +00:00
tap-endpoints.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
tap-expert.c tap: use g_new0() instead of g_new() and memset() 2017-02-19 16:15:52 +00:00
tap-exportobject.c Switch export objects to use wmem_tree_t instead of (sorted) GSList. 2017-02-08 14:24:28 +00:00
tap-exportobject.h Enable exporting objects with tshark 2016-12-02 16:07:35 +00:00
tap-follow.c stat_tap_ui: remove leaks. 2017-02-19 13:25:44 +00:00
tap-funnel.c Lua: Added reload_lua_plugins 2016-01-11 07:43:36 +00:00
tap-gsm_astat.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
tap-hosts.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
tap-httpstat.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
tap-icmpstat.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
tap-icmpv6stat.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
tap-iostat.c tap-iostat (cli): fix this statement may fall through [-Werror=implicit-fallthrough] found by gcc7 2017-03-13 12:33:37 +00:00
tap-iousers.c More checks for localtime() and gmtime() returning NULL. 2016-10-22 02:27:32 +00:00
tap-macltestat.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
tap-protocolinfo.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
tap-protohierstat.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
tap-rlcltestat.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
tap-rpcprogs.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
tap-rtd.c stat_tap_ui: remove leaks. 2017-02-19 13:25:44 +00:00
tap-rtp.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
tap-rtspstat.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
tap-sctpchunkstat.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
tap-simple_stattable.c stat_tap_ui: remove leaks. 2017-02-19 13:25:44 +00:00
tap-sipstat.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
tap-smbsids.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
tap-srt.c stat_tap_ui: remove leaks. 2017-02-19 13:25:44 +00:00
tap-stats_tree.c Clean up handling of enabled/disabled protocols/heuristic dissectors. 2017-04-08 20:40:08 +00:00
tap-sv.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
tap-wspstat.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
tshark-tap.h Switch stat tap to use wmem_tree_t instead of (sorted) GSList. 2017-02-08 14:25:07 +00:00