aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/wimax/wimax_hack_decoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/wimax/wimax_hack_decoder.c')
-rw-r--r--plugins/wimax/wimax_hack_decoder.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/wimax/wimax_hack_decoder.c b/plugins/wimax/wimax_hack_decoder.c
index c90dde3f2c..4a0bd0ba44 100644
--- a/plugins/wimax/wimax_hack_decoder.c
+++ b/plugins/wimax/wimax_hack_decoder.c
@@ -59,7 +59,7 @@ static gint hf_hack_symboloffset = -1;
static gint hf_hack_value = -1;
-static void dissect_wimax_hack_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+static int dissect_wimax_hack_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
{
gint offset = 0;
guint length, num_of_hacks, i;
@@ -89,6 +89,7 @@ static void dissect_wimax_hack_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_
proto_tree_add_item(hack_tree, hf_hack_value, tvb, offset++, 1, ENC_BIG_ENDIAN);
}
}
+ return tvb_captured_length(tvb);
}
/* Register Wimax HARQ ACK Protocol */
@@ -133,7 +134,7 @@ void proto_register_wimax_hack(void)
proto_wimax_hack_decoder = proto_wimax;
- register_dissector("wimax_hack_burst_handler", dissect_wimax_hack_decoder, -1);
+ new_register_dissector("wimax_hack_burst_handler", dissect_wimax_hack_decoder, -1);
proto_register_field_array(proto_wimax_hack_decoder, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));