diff options
Diffstat (limited to 'plugins/docsis/packet-dbcack.c')
-rw-r--r-- | plugins/docsis/packet-dbcack.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/docsis/packet-dbcack.c b/plugins/docsis/packet-dbcack.c index c00e48c8e2..03d94df321 100644 --- a/plugins/docsis/packet-dbcack.c +++ b/plugins/docsis/packet-dbcack.c @@ -36,6 +36,8 @@ static dissector_handle_t docsis_tlv_handle; /* Initialize the subtree pointers */ static gint ett_docsis_dbcack = -1; +static dissector_handle_t docsis_dbcack_handle; + /* Dissection */ static int dissect_dbcack (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data _U_) @@ -88,15 +90,12 @@ proto_register_docsis_dbcack (void) proto_register_field_array (proto_docsis_dbcack, hf, array_length (hf)); proto_register_subtree_array (ett, array_length (ett)); - register_dissector ("docsis_dbcack", dissect_dbcack, proto_docsis_dbcack); + docsis_dbcack_handle = register_dissector ("docsis_dbcack", dissect_dbcack, proto_docsis_dbcack); } void proto_reg_handoff_docsis_dbcack (void) { - dissector_handle_t docsis_dbcack_handle; - - docsis_dbcack_handle = find_dissector ("docsis_dbcack"); docsis_tlv_handle = find_dissector ("docsis_tlv"); dissector_add_uint ("docsis_mgmt", 0x26, docsis_dbcack_handle); } |