summaryrefslogtreecommitdiff
path: root/plugins/wimax/msg_ucd.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/wimax/msg_ucd.c')
-rw-r--r--plugins/wimax/msg_ucd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/wimax/msg_ucd.c b/plugins/wimax/msg_ucd.c
index 4dc20fe475..9216f6269c 100644
--- a/plugins/wimax/msg_ucd.c
+++ b/plugins/wimax/msg_ucd.c
@@ -217,7 +217,7 @@ static const value_string vals_yes_no_str[] =
/* UCD dissector */
-static void dissect_mac_mgmt_msg_ucd_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+static int dissect_mac_mgmt_msg_ucd_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
{
guint offset = 0;
guint tvb_len, length;
@@ -687,6 +687,7 @@ static void dissect_mac_mgmt_msg_ucd_decoder(tvbuff_t *tvb, packet_info *pinfo,
offset += tlv_len;
} /* end of TLV process while loop */
}
+ return tvb_captured_length(tvb);
}
/* Register Wimax Mac Payload Protocol and Dissector */
@@ -1253,7 +1254,7 @@ void proto_reg_handoff_mac_mgmt_msg_ucd(void)
{
dissector_handle_t ucd_handle;
- ucd_handle = create_dissector_handle(dissect_mac_mgmt_msg_ucd_decoder, proto_mac_mgmt_msg_ucd_decoder);
+ ucd_handle = new_create_dissector_handle(dissect_mac_mgmt_msg_ucd_decoder, proto_mac_mgmt_msg_ucd_decoder);
dissector_add_uint("wmx.mgmtmsg", MAC_MGMT_MSG_UCD, ucd_handle);
}