wireshark/plugins
Guy Harris a4c8ebc18b Don't do any Decode As stuff for dissector tables not used with Decode As.
Have all dissector tables have a "supports Decode As" flag, which
defaults to FALSE, and which is set to TRUE if a register_decode_as()
refers to it.

When adding a dissector to a dissector table with a given key, only add
it for Decode As if the dissector table supports it.

For non-FT_STRING dissector tables, always check for multiple entries
for the same protocol with different dissectors, and report an error if
we found them.

This means there's no need for the creator of a dissector table to
specify whether duplicates of that sort should be allowed - we always do
the check when registering something for "Decode As" (in a non-FT_STRING
dissector table), and just don't bother registering anything for "Decode
As" if the dissector table doesn't support "Decode As", so there's no
check done for those dissector tables.

Change-Id: I4a1fdea3bddc2af27a65cfbca23edc99b26c0eed
Reviewed-on: https://code.wireshark.org/review/17402
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-08-31 00:08:01 +00:00
..
docsis Don't do any Decode As stuff for dissector tables not used with Decode As. 2016-08-31 00:08:01 +00:00
easy_codec Remove Makefile.common files 2016-06-30 11:04:17 +00:00
ethercat Don't do any Decode As stuff for dissector tables not used with Decode As. 2016-08-31 00:08:01 +00:00
gryphon Remove Makefile.common files 2016-06-30 11:04:17 +00:00
irda Follow up for proto_tree_add_checksum. 2016-07-27 03:40:02 +00:00
m2m Remove Makefile.common files 2016-06-30 11:04:17 +00:00
mate Fix some of the checkAPIs.pl warnings for g_warning. 2016-07-26 04:08:50 +00:00
opcua Remove Makefile.common files 2016-06-30 11:04:17 +00:00
profinet Cleanup the final checkAPI g_warning complaints. 2016-07-31 15:30:09 +00:00
stats_tree Remove Makefile.common files 2016-06-30 11:04:17 +00:00
tpg Remove Makefile.common files 2016-06-30 11:04:17 +00:00
unistim Remove Makefile.common files 2016-06-30 11:04:17 +00:00
wimax Don't do any Decode As stuff for dissector tables not used with Decode As. 2016-08-31 00:08:01 +00:00
wimaxasncp Fix checkAPI.pl warnings about printf 2016-07-25 04:26:50 +00:00
wimaxmacphy Remove Makefile.common files 2016-06-30 11:04:17 +00:00
Custom.m4.example Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
Custom.make.example Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
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