diff options
Diffstat (limited to 'plugins/docsis/packet-dbcreq.c')
-rw-r--r-- | plugins/docsis/packet-dbcreq.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/docsis/packet-dbcreq.c b/plugins/docsis/packet-dbcreq.c index e50e08af57..efa9c9755b 100644 --- a/plugins/docsis/packet-dbcreq.c +++ b/plugins/docsis/packet-dbcreq.c @@ -38,6 +38,8 @@ static dissector_handle_t docsis_tlv_handle; /* Initialize the subtree pointers */ static gint ett_docsis_dbcreq = -1; +static dissector_handle_t docsis_dbcreq_handle; + /* Dissection */ static int dissect_dbcreq (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data _U_) @@ -104,15 +106,12 @@ proto_register_docsis_dbcreq (void) proto_register_field_array (proto_docsis_dbcreq, hf, array_length (hf)); proto_register_subtree_array (ett, array_length (ett)); - register_dissector ("docsis_dbcreq", dissect_dbcreq, proto_docsis_dbcreq); + docsis_dbcreq_handle = register_dissector ("docsis_dbcreq", dissect_dbcreq, proto_docsis_dbcreq); } void proto_reg_handoff_docsis_dbcreq (void) { - dissector_handle_t docsis_dbcreq_handle; - - docsis_dbcreq_handle = find_dissector ("docsis_dbcreq"); docsis_tlv_handle = find_dissector ("docsis_tlv"); dissector_add_uint ("docsis_mgmt", 0x24, docsis_dbcreq_handle); } |