diff options
author | Michael Mann <mmann78@netscape.net> | 2015-11-14 15:11:44 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-11-14 21:54:39 +0000 |
commit | 159227a14b25b15b535ac95c85d8bc699317d45e (patch) | |
tree | 7d02f802790d5701a0cc5c40537538944b60bb63 /plugins/docsis/packet-ucd.c | |
parent | 28ea58251c04562cc0670e57bf073dc6966e73e6 (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-ucd.c')
-rw-r--r-- | plugins/docsis/packet-ucd.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/docsis/packet-ucd.c b/plugins/docsis/packet-ucd.c index 8944c67935..a7a2a265a9 100644 --- a/plugins/docsis/packet-ucd.c +++ b/plugins/docsis/packet-ucd.c @@ -155,8 +155,8 @@ static const value_string last_cw_len_vals[] = { }; /* Dissection */ -static void -dissect_ucd (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) +static int +dissect_ucd (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data _U_) { int pos, endtlvpos; guint8 type, length; @@ -633,6 +633,8 @@ dissect_ucd (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) } /* switch(type) */ } /* while (pos < len) */ } /* if (tree) */ + + return tvb_captured_length(tvb); } /* Register the protocol with Wireshark */ @@ -794,7 +796,7 @@ proto_register_docsis_ucd (void) proto_register_field_array (proto_docsis_ucd, hf, array_length (hf)); proto_register_subtree_array (ett, array_length (ett)); - register_dissector ("docsis_ucd", dissect_ucd, proto_docsis_ucd); + new_register_dissector ("docsis_ucd", dissect_ucd, proto_docsis_ucd); } void |