diff options
Diffstat (limited to 'plugins/docsis/packet-dpvrsp.c')
-rw-r--r-- | plugins/docsis/packet-dpvrsp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/docsis/packet-dpvrsp.c b/plugins/docsis/packet-dpvrsp.c index 08f6ac1eb1..bdc9dcc3eb 100644 --- a/plugins/docsis/packet-dpvrsp.c +++ b/plugins/docsis/packet-dpvrsp.c @@ -44,8 +44,8 @@ static int hf_docsis_dpvrsp_ts_end = -1; static gint ett_docsis_dpvrsp = -1; /* Dissection */ -static void -dissect_dpvrsp (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) +static int +dissect_dpvrsp (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data _U_) { proto_item *it; proto_tree *dpvrsp_tree = NULL; @@ -84,6 +84,7 @@ dissect_dpvrsp (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) proto_tree_add_item (dpvrsp_tree, hf_docsis_dpvrsp_ts_end, tvb, 16, 4, ENC_BIG_ENDIAN); } + return tvb_captured_length(tvb); } /* Register the protocol with Wireshark */ @@ -149,7 +150,7 @@ proto_register_docsis_dpvrsp (void) proto_register_field_array (proto_docsis_dpvrsp, hf, array_length (hf)); proto_register_subtree_array (ett, array_length (ett)); - register_dissector ("docsis_dpvrsp", dissect_dpvrsp, proto_docsis_dpvrsp); + new_register_dissector ("docsis_dpvrsp", dissect_dpvrsp, proto_docsis_dpvrsp); } void |