aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/docsis/packet-dpvreq.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-11-14 15:11:44 -0500
committerMichael Mann <mmann78@netscape.net>2015-11-14 21:54:39 +0000
commit159227a14b25b15b535ac95c85d8bc699317d45e (patch)
tree7d02f802790d5701a0cc5c40537538944b60bb63 /plugins/docsis/packet-dpvreq.c
parent28ea58251c04562cc0670e57bf073dc6966e73e6 (diff)
register_dissector -> new_register_dissector for plugins.
Picking off "easy" dissectors that only have one or two exit points at most. Change-Id: Ie98e071a7cb568c13c8958de56b1fc25a4ce2ce9 Reviewed-on: https://code.wireshark.org/review/11831 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'plugins/docsis/packet-dpvreq.c')
-rw-r--r--plugins/docsis/packet-dpvreq.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/docsis/packet-dpvreq.c b/plugins/docsis/packet-dpvreq.c
index 6b7f5a6b15..d39f189053 100644
--- a/plugins/docsis/packet-dpvreq.c
+++ b/plugins/docsis/packet-dpvreq.c
@@ -44,8 +44,8 @@ static int hf_docsis_dpvreq_ts_end = -1;
static gint ett_docsis_dpvreq = -1;
/* Dissection */
-static void
-dissect_dpvreq (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
+static int
+dissect_dpvreq (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data _U_)
{
proto_item *it;
proto_tree *dpvreq_tree = NULL;
@@ -84,6 +84,7 @@ dissect_dpvreq (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
proto_tree_add_item (dpvreq_tree, hf_docsis_dpvreq_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_dpvreq (void)
proto_register_field_array (proto_docsis_dpvreq, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
- register_dissector ("docsis_dpvreq", dissect_dpvreq, proto_docsis_dpvreq);
+ new_register_dissector ("docsis_dpvreq", dissect_dpvreq, proto_docsis_dpvreq);
}
void