diff options
Diffstat (limited to 'plugins/docsis/packet-dsdreq.c')
-rw-r--r-- | plugins/docsis/packet-dsdreq.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/docsis/packet-dsdreq.c b/plugins/docsis/packet-dsdreq.c index e84d773ac4..6dac22aa4c 100644 --- a/plugins/docsis/packet-dsdreq.c +++ b/plugins/docsis/packet-dsdreq.c @@ -40,8 +40,8 @@ static dissector_handle_t docsis_tlv_handle; static gint ett_docsis_dsdreq = -1; /* Dissection */ -static void -dissect_dsdreq (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) +static int +dissect_dsdreq (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data _U_) { proto_item *it; proto_tree *dsdreq_tree = NULL; @@ -69,6 +69,7 @@ dissect_dsdreq (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) /* Call Dissector for Appendix C TLV's */ next_tvb = tvb_new_subset_remaining (tvb, 8); call_dissector (docsis_tlv_handle, next_tvb, pinfo, dsdreq_tree); + return tvb_captured_length(tvb); } /* Register the protocol with Wireshark */ @@ -104,7 +105,7 @@ proto_register_docsis_dsdreq (void) proto_register_field_array (proto_docsis_dsdreq, hf, array_length (hf)); proto_register_subtree_array (ett, array_length (ett)); - register_dissector ("docsis_dsdreq", dissect_dsdreq, proto_docsis_dsdreq); + new_register_dissector ("docsis_dsdreq", dissect_dsdreq, proto_docsis_dsdreq); } void |