decode as: Add data dissector to all tables that support Decode As
Register the data dissector to all dissector tables that support Decode As. This provides a way to disable decoding for table entries that have a default dissector registered to a value. It is particularly useful when a dissector is registered by default to several values (e.g. HTTP), to be able to disable decoding for one port without disabling the dissector in general.
It is also useful to prevent payloads from being handed off to heuristic dissectors, and is thus distinguished from the fallback to data when no dissector is set. N.B.: that this has no effect on dissectors that have a "Try heuristic sub-dissectors first" preference set to TRUE.
It does not solve a second issue for table entries with a default dissector - setting the dissector to "none" in order to force payloads to be sent to heuristic dissectors without setting a preference as above. (Note that in some cases one will wish to send dissection on some ports to heuristics without enabling heuristics first for all ports.)
Fix #17518 (closed). Fix #15717 (closed). Related to #12098 (closed), which also needs the last issue mentioned above addressed.
Merge request reports
Activity
assigned to @johnthacker
added 13 commits
-
40e2314f...79310ebb - 12 commits from branch
wireshark:master
- adef01ab - decode as: Add data dissector to all tables that support Decode As
-
40e2314f...79310ebb - 12 commits from branch
On second thought, this may not be everything necessary to close the issue. There are several different behaviors that relate to the idea of disabling dissection through Decode As:
- Reset to the original dissector
- Decode as Data
- Set the dissector to NULL, which can fallback to data but also can allow heuristic dissectors to be tried later.
What Decode As refers to as "(none)" means the first, though it seems like it should mean the third, perhaps, with a phrase like "(default)" for the current none behavior. Adding the ability to force Decode As data still seems useful, though.
added 216 commits
-
adef01ab...7935734d - 215 commits from branch
wireshark:master
- 0749873c - decode as: Add data dissector to all tables that support Decode As
-
adef01ab...7935734d - 215 commits from branch
assigned to @ws-gitlab-utility