aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/docsis/packet-dscreq.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/docsis/packet-dscreq.c')
-rw-r--r--plugins/docsis/packet-dscreq.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/docsis/packet-dscreq.c b/plugins/docsis/packet-dscreq.c
index 357df0b2b0..6a1d302067 100644
--- a/plugins/docsis/packet-dscreq.c
+++ b/plugins/docsis/packet-dscreq.c
@@ -37,8 +37,8 @@ static dissector_handle_t docsis_tlv_handle;
static gint ett_docsis_dscreq = -1;
/* Dissection */
-static void
-dissect_dscreq (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
+static int
+dissect_dscreq (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data _U_)
{
proto_item *it;
proto_tree *dscreq_tree = NULL;
@@ -63,6 +63,7 @@ dissect_dscreq (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, dscreq_tree);
+ return tvb_captured_length(tvb);
}
/* Register the protocol with Wireshark */
@@ -88,7 +89,7 @@ proto_register_docsis_dscreq (void)
proto_register_field_array (proto_docsis_dscreq, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
- register_dissector ("docsis_dscreq", dissect_dscreq, proto_docsis_dscreq);
+ new_register_dissector ("docsis_dscreq", dissect_dscreq, proto_docsis_dscreq);
}
void