aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/docsis/packet-regreq.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/docsis/packet-regreq.c')
-rw-r--r--plugins/docsis/packet-regreq.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/docsis/packet-regreq.c b/plugins/docsis/packet-regreq.c
index 93008a3c8e..1608ff178f 100644
--- a/plugins/docsis/packet-regreq.c
+++ b/plugins/docsis/packet-regreq.c
@@ -39,8 +39,8 @@ static gint ett_docsis_regreq = -1;
static dissector_handle_t docsis_tlv_handle;
/* Code to actually dissect the packets */
-static void
-dissect_regreq (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
+static int
+dissect_regreq (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data _U_)
{
proto_item *it;
proto_tree *regreq_tree = NULL;
@@ -64,6 +64,7 @@ dissect_regreq (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, regreq_tree);
+ return tvb_captured_length(tvb);
}
/* Register the protocol with Wireshark */
@@ -89,7 +90,7 @@ proto_register_docsis_regreq (void)
proto_register_field_array (proto_docsis_regreq, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
- register_dissector ("docsis_regreq", dissect_regreq, proto_docsis_regreq);
+ new_register_dissector ("docsis_regreq", dissect_regreq, proto_docsis_regreq);
}
void