aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/docsis/packet-regrspmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/docsis/packet-regrspmp.c')
-rw-r--r--plugins/docsis/packet-regrspmp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/docsis/packet-regrspmp.c b/plugins/docsis/packet-regrspmp.c
index c304ccac5a..816c7006cb 100644
--- a/plugins/docsis/packet-regrspmp.c
+++ b/plugins/docsis/packet-regrspmp.c
@@ -46,8 +46,8 @@ static dissector_handle_t docsis_tlv_handle;
static gint ett_docsis_regrspmp = -1;
/* Dissection */
-static void
-dissect_regrspmp (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
+static int
+dissect_regrspmp (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data _U_)
{
proto_item *it;
proto_tree *regrspmp_tree = NULL;
@@ -69,6 +69,7 @@ dissect_regrspmp (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
/* Call Dissector for Appendix C TLV's */
next_tvb = tvb_new_subset_remaining (tvb, 5);
call_dissector (docsis_tlv_handle, next_tvb, pinfo, regrspmp_tree);
+ return tvb_captured_length(tvb);
}
/* Register the protocol with Wireshark */
@@ -109,7 +110,7 @@ proto_register_docsis_regrspmp (void)
proto_register_field_array (proto_docsis_regrspmp, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
- register_dissector ("docsis_regrspmp", dissect_regrspmp, proto_docsis_regrspmp);
+ new_register_dissector ("docsis_regrspmp", dissect_regrspmp, proto_docsis_regrspmp);
}
void