diff options
Diffstat (limited to 'plugins/docsis/packet-cmctrlrsp.c')
-rw-r--r-- | plugins/docsis/packet-cmctrlrsp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/docsis/packet-cmctrlrsp.c b/plugins/docsis/packet-cmctrlrsp.c index bd415e35e0..8d8f396238 100644 --- a/plugins/docsis/packet-cmctrlrsp.c +++ b/plugins/docsis/packet-cmctrlrsp.c @@ -45,8 +45,8 @@ static dissector_handle_t cmctrl_tlv_handle; static gint ett_docsis_cmctrlrsp = -1; /* Dissection */ -static void -dissect_cmctrlrsp (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) +static int +dissect_cmctrlrsp (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data _U_) { proto_item *it; proto_tree *cmctrlrsp_tree = NULL; @@ -71,6 +71,7 @@ dissect_cmctrlrsp (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, cmctrlrsp_tree); + return tvb_captured_length(tvb); } /* Register the protocol with Wireshark */ @@ -96,7 +97,7 @@ proto_register_docsis_cmctrlrsp (void) proto_register_field_array (proto_docsis_cmctrlrsp, hf, array_length (hf)); proto_register_subtree_array (ett, array_length (ett)); - register_dissector ("docsis_cmctrlrsp", dissect_cmctrlrsp, proto_docsis_cmctrlrsp); + new_register_dissector ("docsis_cmctrlrsp", dissect_cmctrlrsp, proto_docsis_cmctrlrsp); } void |