wireshark/plugins
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
..
docsis cmake: make WERROR_COMMON_FLAGS a normal string 2016-09-30 20:08:02 +00:00
easy_codec Remove Makefile.common files 2016-06-30 11:04:17 +00:00
ethercat Combine Decode As and port preferences for tcp.port dissector table. 2016-10-08 02:44:53 +00:00
gryphon Combine Decode As and port preferences for tcp.port dissector table. 2016-10-08 02:44:53 +00:00
irda Combine Decode As and port preferences for tcp.port dissector table. 2016-10-08 02:44:53 +00:00
m2m cmake: make WERROR_COMMON_FLAGS a normal string 2016-09-30 20:08:02 +00:00
mate cmake: make WERROR_COMMON_FLAGS a normal string 2016-09-30 20:08:02 +00:00
opcua Combine Decode As and port preferences for tcp.port dissector table. 2016-10-08 02:44:53 +00:00
profinet PROFINET: Add preliminary version of the Reporting System (RS) dissection. 2016-10-03 17:44:23 +00:00
stats_tree cmake: make WERROR_COMMON_FLAGS a normal string 2016-09-30 20:08:02 +00:00
tpg Combine Decode As and port preferences for tcp.port dissector table. 2016-10-08 02:44:53 +00:00
unistim cmake: make WERROR_COMMON_FLAGS a normal string 2016-09-30 20:08:02 +00:00
wimax cmake: make WERROR_COMMON_FLAGS a normal string 2016-09-30 20:08:02 +00:00
wimaxasncp cmake: make WERROR_COMMON_FLAGS a normal string 2016-09-30 20:08:02 +00:00
wimaxmacphy cmake: make WERROR_COMMON_FLAGS a normal string 2016-09-30 20:08:02 +00:00
Custom.m4.example
Custom.make.example
Makefile.am Remove Makefile.common files 2016-06-30 11:04:17 +00:00
Makefile.am.inc Remove Makefile.common files 2016-06-30 11:04:17 +00:00