diff options
Diffstat (limited to 'plugins/docsis/packet-cmctrlreq.c')
-rw-r--r-- | plugins/docsis/packet-cmctrlreq.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/docsis/packet-cmctrlreq.c b/plugins/docsis/packet-cmctrlreq.c index b909da1c36..1c9e569865 100644 --- a/plugins/docsis/packet-cmctrlreq.c +++ b/plugins/docsis/packet-cmctrlreq.c @@ -37,8 +37,8 @@ static dissector_handle_t cmctrl_tlv_handle; static gint ett_docsis_cmctrlreq = -1; /* Dissection */ -static void -dissect_cmctrlreq (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) +static int +dissect_cmctrlreq (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data _U_) { proto_item *it; proto_tree *cmctrlreq_tree = NULL; @@ -63,6 +63,7 @@ dissect_cmctrlreq (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) /* Call Dissector for Appendix C TLV's */ next_tvb = tvb_new_subset_remaining (tvb, 2); call_dissector (cmctrl_tlv_handle, next_tvb, pinfo, cmctrlreq_tree); + return tvb_captured_length(tvb); } /* Register the protocol with Wireshark */ @@ -88,7 +89,7 @@ proto_register_docsis_cmctrlreq (void) proto_register_field_array (proto_docsis_cmctrlreq, hf, array_length (hf)); proto_register_subtree_array (ett, array_length (ett)); - register_dissector ("docsis_cmctrlreq", dissect_cmctrlreq, proto_docsis_cmctrlreq); + new_register_dissector ("docsis_cmctrlreq", dissect_cmctrlreq, proto_docsis_cmctrlreq); } void |