diff options
author | Michael Mann <mmann78@netscape.net> | 2014-10-22 09:02:46 -0400 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2014-10-23 18:14:41 +0000 |
commit | 48da429a04956f18667d9de3022b11a60811663c (patch) | |
tree | decf736e87fd0fa79215a4018c83cfaaf17a88a5 | |
parent | d2bb61a3a9ff29826aa332b7e4ee484f3a4746d9 (diff) |
Add a "placeholder protocol" for H.223 to avoid confusion when using Decode As.
The Decode As dialog presents two H.223 options and only "trial and error" can determine if you want bitswapping or not.
Change-Id: I9303c73375d130d3097d347bb374019dfc714068
Reviewed-on: https://code.wireshark.org/review/4909
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
-rw-r--r-- | epan/dissectors/packet-h223.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/epan/dissectors/packet-h223.c b/epan/dissectors/packet-h223.c index 60745f3fec..e6e17c2306 100644 --- a/epan/dissectors/packet-h223.c +++ b/epan/dissectors/packet-h223.c @@ -51,6 +51,7 @@ /* Wireshark ID of the H.223 protocol */ static int proto_h223 = -1; +static int proto_h223_bitswapped = -1; /* The following hf_* variables are used to hold the Wireshark IDs of * our header fields; they are filled out when we call @@ -1593,11 +1594,14 @@ void proto_register_h223 (void) proto_h223 = proto_register_protocol ("ITU-T Recommendation H.223", "H.223", "h223"); + /* Create a H.223 "placeholder" to remove confusion with Decode As" */ + proto_h223_bitswapped = + proto_register_protocol ("ITU-T Recommendation H.223 (Bitswapped)", "H.223 (Bitswapped)", "h223_bitswapped"); proto_register_field_array (proto_h223, hf, array_length (hf)); proto_register_subtree_array (ett, array_length (ett)); register_dissector("h223", dissect_h223, proto_h223); - register_dissector("h223_bitswapped", dissect_h223_bitswapped, proto_h223); + register_dissector("h223_bitswapped", dissect_h223_bitswapped, proto_h223_bitswapped); /* register our init routine to be called at the start of a capture, to clear out our hash tables etc */ |