aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-hp-erm.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-hp-erm.c')
-rw-r--r--epan/dissectors/packet-hp-erm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/dissectors/packet-hp-erm.c b/epan/dissectors/packet-hp-erm.c
index c579c03239..209e1a67dc 100644
--- a/epan/dissectors/packet-hp-erm.c
+++ b/epan/dissectors/packet-hp-erm.c
@@ -38,6 +38,8 @@
void proto_register_hp_erm(void);
void proto_reg_handoff_hp_erm(void);
+static dissector_handle_t hp_erm_handle;
+
#define PROTO_SHORT_NAME "HP_ERM"
#define PROTO_LONG_NAME "HP encapsulated remote mirroring"
@@ -143,15 +145,14 @@ proto_register_hp_erm(void)
proto_register_field_array(proto_hp_erm, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
+
+ hp_erm_handle = register_dissector("hp_erm", dissect_hp_erm, proto_hp_erm);
}
void
proto_reg_handoff_hp_erm(void)
{
- dissector_handle_t hp_erm_handle;
-
eth_withoutfcs_handle = find_dissector_add_dependency("eth_withoutfcs", proto_hp_erm);
- hp_erm_handle = create_dissector_handle(dissect_hp_erm, proto_hp_erm);
dissector_add_for_decode_as_with_preference("udp.port", hp_erm_handle);
}
/*