aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/docsis/packet-dbcack.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/docsis/packet-dbcack.c')
-rw-r--r--plugins/docsis/packet-dbcack.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/docsis/packet-dbcack.c b/plugins/docsis/packet-dbcack.c
index 28b4a5fd36..0acd7c1416 100644
--- a/plugins/docsis/packet-dbcack.c
+++ b/plugins/docsis/packet-dbcack.c
@@ -37,8 +37,8 @@ static dissector_handle_t docsis_tlv_handle;
static gint ett_docsis_dbcack = -1;
/* Dissection */
-static void
-dissect_dbcack (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
+static int
+dissect_dbcack (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data _U_)
{
proto_item *dbcack_item;
proto_tree *dbcack_tree = NULL;
@@ -62,6 +62,7 @@ dissect_dbcack (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 (docsis_tlv_handle, next_tvb, pinfo, dbcack_tree);
+ return tvb_captured_length(tvb);
}
/* Register the protocol with Wireshark */
@@ -87,7 +88,7 @@ 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);
+ new_register_dissector ("docsis_dbcack", dissect_dbcack, proto_docsis_dbcack);
}
void