diff options
Diffstat (limited to 'plugins/docsis/packet-dbcreq.c')
-rw-r--r-- | plugins/docsis/packet-dbcreq.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/docsis/packet-dbcreq.c b/plugins/docsis/packet-dbcreq.c index 5993231554..059b0a9b4f 100644 --- a/plugins/docsis/packet-dbcreq.c +++ b/plugins/docsis/packet-dbcreq.c @@ -39,8 +39,8 @@ static dissector_handle_t docsis_tlv_handle; static gint ett_docsis_dbcreq = -1; /* Dissection */ -static void -dissect_dbcreq (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) +static int +dissect_dbcreq (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data _U_) { proto_item *dbcreq_item; proto_tree *dbcreq_tree = NULL; @@ -68,6 +68,7 @@ dissect_dbcreq (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) /* Call Dissector for Appendix C TLV's */ next_tvb = tvb_new_subset_remaining (tvb, 4); call_dissector (docsis_tlv_handle, next_tvb, pinfo, dbcreq_tree); + return tvb_captured_length(tvb); } /* Register the protocol with Wireshark */ @@ -103,7 +104,7 @@ 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); + new_register_dissector ("docsis_dbcreq", dissect_dbcreq, proto_docsis_dbcreq); } void |