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/wimax/packet-wmx.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/wimax/packet-wmx.c')
-rw-r--r-- | plugins/wimax/packet-wmx.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/wimax/packet-wmx.c b/plugins/wimax/packet-wmx.c index 621ef44220..82dec1b993 100644 --- a/plugins/wimax/packet-wmx.c +++ b/plugins/wimax/packet-wmx.c @@ -254,12 +254,14 @@ proto_tree *add_protocol_subtree(tlv_info_t *self, gint idx, proto_tree *tree, i /* WiMax protocol dissector */ -static void dissect_wimax(tvbuff_t *tvb _U_, packet_info *pinfo, proto_tree *tree _U_) +static int dissect_wimax(tvbuff_t *tvb _U_, packet_info *pinfo, proto_tree *tree _U_, void* data _U_) { /* display the WiMax protocol name */ col_set_str(pinfo->cinfo, COL_PROTOCOL, "WiMax"); /* Clear out stuff in the info column */ col_clear(pinfo->cinfo, COL_INFO); + + return tvb_captured_length(tvb); } gboolean is_down_link(packet_info *pinfo) @@ -306,7 +308,7 @@ void proto_register_wimax(void) proto_register_subtree_array(ett_reg, array_length(ett_reg)); /* Register the WiMax dissector */ - register_dissector("wmx", dissect_wimax, proto_wimax); + new_register_dissector("wmx", dissect_wimax, proto_wimax); wimax_module = prefs_register_protocol(proto_wimax, NULL); |