wireshark/ui
Michael Mann 268841f3e0 Combine Decode As and port preferences for tcp.port dissector table.
This patch introduces new APIs to allow dissectors to have a preference for
a (TCP) port, but the underlying data is actually part of Decode As functionality.
For now the APIs are intentionally separate from the regular APIs that register a
dissector within a dissector table.  It may be possible to eventually combine the
two so that all dissectors that register with a dissector table have an opportunity
to "automatically" have a preference to adjust the "table value" through the
preferences dialog.

The tcp.port dissector table was used as the guinea pig.  This will eventually be
expanded to other dissector tables as well (most notably UDP ports).  Some
dissectors that "shared" a TCP/UDP port preference were also converted. It also
removed the need for some preference callback functions (mostly when the callback
function was the proto_reg_handoff function) so there is cleanup around that.

Dissectors that has a port preference whose default was 0 were switched to using
the dissector_add_for_decode_as_with_preference API rather than dissector_add_uint_with_preference

Also added comments for TCP ports used that aren't IANA registered.

Change-Id: I99604f95d426ad345f4b494598d94178b886eb67
Reviewed-on: https://code.wireshark.org/review/17724
Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-10-08 02:44:53 +00:00
..
cli tshark: follow streams should start with chunk 1. 2016-10-03 00:14:41 +00:00
gtk Combine Decode As and port preferences for tcp.port dissector table. 2016-10-08 02:44:53 +00:00
qt Combine Decode As and port preferences for tcp.port dissector table. 2016-10-08 02:44:53 +00:00
win32 Have "All Capture Files" match only capture files. 2016-09-10 06:45:08 +00:00
.editorconfig
alert_box.c
alert_box.h
all_files_wildcard.h
capture.c
capture.h
capture_globals.h
capture_ui_utils.c
capture_ui_utils.h
CMakeLists.txt cmake: make WERROR_COMMON_FLAGS a normal string 2016-09-30 20:08:02 +00:00
commandline.c More signed vs. unsigned argument cleanups. 2016-09-11 20:49:05 +00:00
commandline.h More signed vs. unsigned argument cleanups. 2016-09-11 20:49:05 +00:00
console.c
console.h
decode_as_utils.c Combine Decode As and port preferences for tcp.port dissector table. 2016-10-08 02:44:53 +00:00
decode_as_utils.h Combine Decode As and port preferences for tcp.port dissector table. 2016-10-08 02:44:53 +00:00
doxygen.cfg.in
export_object.c
export_object.h
export_object_dicom.c
export_object_http.c
export_object_smb.c
export_object_tftp.c
export_pdu_ui_utils.c Allow create_tempfile to support a suffix. 2016-06-01 06:24:05 +00:00
export_pdu_ui_utils.h
file_dialog.h Add JSON export to Qt/GTK UI 2016-06-20 01:22:57 +00:00
firewall_rules.c Firewall rule fixups. 2016-06-06 06:27:47 +00:00
firewall_rules.h Qt: Firewall Rules dialog. 2016-06-01 23:37:25 +00:00
help_url.c Replace an #ifdef with g_path_is_absolute() 2016-07-23 19:38:04 +00:00
help_url.h
iface_lists.c *_stdup_printf -> strdup for "single string only" formatting. 2016-06-06 06:03:58 +00:00
iface_lists.h
io_graph_item.c
io_graph_item.h Place variable declarations where they're used. 2016-09-07 01:43:22 +00:00
language.c
language.h
last_open_dir.h
main_statusbar.h
Makefile.am Remove Makefile.common files 2016-06-30 11:04:17 +00:00
mcast_stream.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
mcast_stream.h
packet_list_utils.c Qt: Support "Resolve Names" with multiple custom column fields 2016-08-27 11:15:34 +00:00
packet_list_utils.h
persfilepath_opt.c
persfilepath_opt.h
preference_utils.c Combine Decode As and port preferences for tcp.port dissector table. 2016-10-08 02:44:53 +00:00
preference_utils.h Combine Decode As and port preferences for tcp.port dissector table. 2016-10-08 02:44:53 +00:00
profile.c
profile.h
progress_dlg.h
proto_hier_stats.c
proto_hier_stats.h
recent.c Use separate main geometry settings for Qt and GTK+. 2016-06-08 03:41:32 +00:00
recent.h Use separate main geometry settings for Qt and GTK+. 2016-06-08 03:41:32 +00:00
recent_utils.h
rtp_media.c
rtp_media.h
rtp_stream.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
rtp_stream.h RTP player: increase the maximum number of silence frames to 30 minutes worth. 2016-06-23 03:30:39 +00:00
service_response_time.c
service_response_time.h
simple_dialog.h
software_update.c
software_update.h
ssl_key_export.c
ssl_key_export.h
tap-iax2-analysis.c
tap-iax2-analysis.h
tap-rlc-graph.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
tap-rlc-graph.h
tap-rtp-analysis.h
tap-rtp-common.c
tap-rtp-common.h
tap-sctp-analysis.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
tap-sctp-analysis.h
tap-sequence-analysis.c Qt: Only color sequence analysis items having color filter 2016-10-02 17:55:40 +00:00
tap-sequence-analysis.h Qt: Only color sequence analysis items having color filter 2016-10-02 17:55:40 +00:00
tap-tcp-stream.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
tap-tcp-stream.h Qt: add initializers (CID 1162824). 2016-07-06 06:48:10 +00:00
tap_export_pdu.c Ensure to have a valid string pointer when writing OS SHB option 2016-07-26 13:48:40 +00:00
tap_export_pdu.h
text_import.c Qt: Multi line import from hex dump without offsets 2016-06-13 08:02:04 +00:00
text_import.h
text_import_scanner.h
text_import_scanner.l
time_shift.c
time_shift.h
traffic_table_ui.c Qt: Conversation time column updates. 2016-09-02 23:53:37 +00:00
traffic_table_ui.h Qt: Conversation time column updates. 2016-09-02 23:53:37 +00:00
ui_util.h
util.c
util.h
voip_calls.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
voip_calls.h