diff options
Diffstat (limited to 'plugins/docsis/packet-regrsp.c')
-rw-r--r-- | plugins/docsis/packet-regrsp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/docsis/packet-regrsp.c b/plugins/docsis/packet-regrsp.c index fa86f98955..fdc7d6c186 100644 --- a/plugins/docsis/packet-regrsp.c +++ b/plugins/docsis/packet-regrsp.c @@ -41,8 +41,8 @@ extern value_string docsis_conf_code[]; static gint ett_docsis_regrsp = -1; /* Dissection */ -static void -dissect_regrsp (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) +static int +dissect_regrsp (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data _U_) { proto_item *it; proto_tree *regrsp_tree = NULL; @@ -71,6 +71,7 @@ dissect_regrsp (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) /* Call Dissector for Appendix C TLV's */ next_tvb = tvb_new_subset_remaining (tvb, 3); call_dissector (docsis_tlv_handle, next_tvb, pinfo, regrsp_tree); + return tvb_captured_length(tvb); } /* Register the protocol with Wireshark */ @@ -101,7 +102,7 @@ proto_register_docsis_regrsp (void) proto_register_field_array (proto_docsis_regrsp, hf, array_length (hf)); proto_register_subtree_array (ett, array_length (ett)); - register_dissector ("docsis_regrsp", dissect_regrsp, proto_docsis_regrsp); + new_register_dissector ("docsis_regrsp", dissect_regrsp, proto_docsis_regrsp); } void |