aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-itdm.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2017-01-07 21:31:05 -0500
committerAnders Broman <a.broman58@gmail.com>2017-01-08 08:15:41 +0000
commit3952052426fbf063585b57aefe6b1b2fa57d651d (patch)
tree57bd5f6e8b45294d48266c6d2331917bbd875c3d /epan/dissectors/packet-itdm.c
parentebd3dc6907c44d642a76f2a459395ffdb728143b (diff)
Restore some MPLS registered dissectors.
Per https://ask.wireshark.org/questions/58532/missing-dissector-pw_eth_cw it appears some MPLS dissectors are still referenced by name and not just for the dissector table created in I1e0c3ae784b71c0145b1f1730a97feae8e9f488f. Change-Id: I27be132f56c879be16f78f76ac0e9688673a47c1 Reviewed-on: https://code.wireshark.org/review/19582 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-itdm.c')
-rw-r--r--epan/dissectors/packet-itdm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-itdm.c b/epan/dissectors/packet-itdm.c
index cbadee8d3c..37d8b0b53d 100644
--- a/epan/dissectors/packet-itdm.c
+++ b/epan/dissectors/packet-itdm.c
@@ -64,6 +64,8 @@ static int hf_itdm_ctl_cksum = -1;
static gint ett_itdm = -1;
static gint ett_itdm_ctl = -1;
+static dissector_handle_t itdm_handle;
+
/* ZZZZ some magic number.. */
static guint gbl_ItdmMPLSLabel = 0x99887;
static guint gbl_ItdmCTLFlowNo = 0;
@@ -439,6 +441,7 @@ proto_register_itdm(void)
module_t *itdm_module;
proto_itdm = proto_register_protocol("Internal TDM", "ITDM", "itdm");
+ itdm_handle = register_dissector("itdm", dissect_itdm, proto_itdm);
proto_register_field_array(proto_itdm, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
@@ -460,11 +463,9 @@ void
proto_reg_handoff_itdm(void)
{
static gboolean Initialized=FALSE;
- static dissector_handle_t itdm_handle;
static guint ItdmMPLSLabel;
if (!Initialized) {
- itdm_handle = create_dissector_handle( dissect_itdm, proto_itdm );
Initialized=TRUE;
} else {
dissector_delete_uint("mpls.label", ItdmMPLSLabel, itdm_handle);