diff options
Diffstat (limited to 'plugins/epan/wimax/msg_ucd.c')
-rw-r--r-- | plugins/epan/wimax/msg_ucd.c | 243 |
1 files changed, 123 insertions, 120 deletions
diff --git a/plugins/epan/wimax/msg_ucd.c b/plugins/epan/wimax/msg_ucd.c index ab6d811d..0779f4ab 100644 --- a/plugins/epan/wimax/msg_ucd.c +++ b/plugins/epan/wimax/msg_ucd.c @@ -21,103 +21,106 @@ */ #include <epan/packet.h> +#include <epan/tfs.h> +#include <epan/unit_strings.h> + +#include <wsutil/array.h> #include "wimax_tlv.h" #include "wimax_mac.h" #include "wimax_utils.h" +#include "wimax_prefs.h" void proto_register_mac_mgmt_msg_ucd(void); void proto_reg_handoff_mac_mgmt_msg_ucd(void); static dissector_handle_t ucd_handle; -extern gboolean include_cor2_changes; - -guint cqich_id_size; /* Set for CQICH_Alloc_IE */ +unsigned cqich_id_size; /* Set for CQICH_Alloc_IE */ -static gint proto_mac_mgmt_msg_ucd_decoder = -1; -static gint ett_mac_mgmt_msg_ucd_decoder = -1; +static int proto_mac_mgmt_msg_ucd_decoder; +static int ett_mac_mgmt_msg_ucd_decoder; /* fix fields */ -static gint hf_ucd_res_timeout = -1; -static gint hf_ucd_bw_req_size = -1; -static gint hf_ucd_ranging_req_size = -1; -static gint hf_ucd_freq = -1; -/* static gint hf_ucd_subchan_params_num_chan = -1; */ -static gint hf_ucd_ul_allocated_subchannles_bitmap = -1; -/* static gint hf_ucd_subchan_params_num_sym = -1; */ -/* static gint hf_ucd_subchan_codes = -1; */ +static int hf_ucd_res_timeout; +static int hf_ucd_bw_req_size; +static int hf_ucd_ranging_req_size; +static int hf_ucd_freq; +/* static int hf_ucd_subchan_params_num_chan; */ +static int hf_ucd_ul_allocated_subchannles_bitmap; +/* static int hf_ucd_subchan_params_num_sym; */ +/* static int hf_ucd_subchan_codes; */ -static gint hf_ucd_ul_burst_reserved = -1; -static gint hf_ucd_ul_burst_uiuc = -1; -static gint hf_ucd_burst_fec = -1; -static gint hf_ucd_burst_ranging_data_ratio = -1; -/*static gint hf_ucd_burst_power_boost = -1; -*static gint hf_ucd_burst_tcs_enable = -1; +static int hf_ucd_ul_burst_reserved; +static int hf_ucd_ul_burst_uiuc; +static int hf_ucd_burst_fec; +static int hf_ucd_burst_ranging_data_ratio; +/*static int hf_ucd_burst_power_boost; +*static int hf_ucd_burst_tcs_enable; */ -static gint hf_ucd_tlv_t_159_band_amc_allocation_threshold = -1; -static gint hf_ucd_tlv_t_158_optional_permutation_ul_allocated_subchannels_bitmap = -1; -static gint hf_ucd_tlv_t_160_band_amc_release_threshold = -1; -static gint hf_ucd_tlv_t_161_band_amc_allocation_timer = -1; -static gint hf_ucd_tlv_t_162_band_amc_release_timer = -1; -static gint hf_ucd_tlv_t_163_band_status_report_max_period = -1; -static gint hf_ucd_tlv_t_164_band_amc_retry_timer = -1; -static gint hf_ucd_tlv_t_171_harq_ack_delay_dl_burst = -1; -static gint hf_ucd_tlv_t_170_safety_channel_retry_timer = -1; -static gint hf_ucd_tlv_t_172_cqich_band_amc_transition_delay = -1; -static gint hf_ucd_tlv_t_174_maximum_retransmission = -1; -static gint hf_ucd_tlv_t_177_normalized_cn_override2 = -1; -static gint hf_ucd_tlv_t_177_normalized_cn_override2_first_line = -1; -static gint hf_ucd_tlv_t_177_normalized_cn_override2_list = -1; -static gint hf_ucd_tlv_t_176_size_of_cqich_id_field = -1; -static gint hf_ucd_tlv_t_186_upper_bound_aas_preamble = -1; -static gint hf_ucd_tlv_t_187_lower_bound_aas_preamble = -1; -static gint hf_ucd_tlv_t_188_allow_aas_beam_select_message = -1; -static gint hf_ucd_tlv_t_189_use_cqich_indication_flag = -1; -static gint hf_ucd_tlv_t_190_ms_specific_up_power_addjustment_step = -1; -static gint hf_ucd_tlv_t_191_ms_specific_down_power_addjustment_step = -1; -static gint hf_ucd_tlv_t_192_min_level_power_offset_adjustment = -1; -static gint hf_ucd_tlv_t_193_max_level_power_offset_adjustment = -1; -static gint hf_ucd_tlv_t_194_handover_ranging_codes = -1; -static gint hf_ucd_tlv_t_195_initial_ranging_interval = -1; -static gint hf_ucd_tlv_t_196_tx_power_report = -1; -static gint hf_ucd_tlv_t_196_tx_power_report_threshold = -1; -static gint hf_ucd_tlv_t_196_tx_power_report_interval = -1; -static gint hf_ucd_tlv_t_196_tx_power_report_a_p_avg = -1; -static gint hf_ucd_tlv_t_196_tx_power_report_threshold_icqch = -1; -static gint hf_ucd_tlv_t_196_tx_power_report_interval_icqch = -1; -static gint hf_ucd_tlv_t_196_tx_power_report_a_p_avg_icqch = -1; -/* static gint hf_ucd_tlv_t_197_normalized_cn_channel_sounding = -1; */ -static gint hf_ucd_tlv_t_202_uplink_burst_profile_for_multiple_fec_types = -1; -static gint hf_ucd_tlv_t_203_ul_pusc_subchannel_rotation = -1; -static gint hf_ucd_tlv_t_205_relative_power_offset_ul_harq_burst = -1; -static gint hf_ucd_tlv_t_206_relative_power_offset_ul_burst_containing_mac_mgmt_msg = -1; -static gint hf_ucd_tlv_t_207_ul_initial_transmit_timing = -1; -static gint hf_ucd_tlv_t_210_fast_feedback_region = -1; -static gint hf_ucd_tlv_t_211_harq_ack_region = -1; -static gint hf_ucd_tlv_t_212_ranging_region = -1; -static gint hf_ucd_tlv_t_213_sounding_region = -1; -static gint hf_ucd_tlv_t_150_initial_ranging_codes = -1; -static gint hf_ucd_tlv_t_151_periodic_ranging_codes = -1; -static gint hf_ucd_tlv_t_152_bandwidth_request_codes = -1; -static gint hf_ucd_tlv_t_155_start_of_ranging_codes_group = -1; -static gint hf_ucd_tlv_t_156_permutation_base = -1; -static gint hf_ucd_ho_ranging_start = -1; -static gint hf_ucd_ho_ranging_end = -1; -static gint hf_ucd_initial_range_backoff_start = -1; -static gint hf_ucd_initial_range_backoff_end = -1; -static gint hf_ucd_bandwidth_backoff_start = -1; -static gint hf_ucd_bandwidth_backoff_end = -1; -static gint hf_ucd_periodic_ranging_backoff_start = -1; -static gint hf_ucd_periodic_ranging_backoff_end = -1; -static gint hf_ucd_config_change_count = -1; -static gint hf_ucd_ranging_backoff_start = -1; -static gint hf_ucd_ranging_backoff_end = -1; -static gint hf_ucd_request_backoff_start = -1; -static gint hf_ucd_request_backoff_end = -1; +static int hf_ucd_tlv_t_159_band_amc_allocation_threshold; +static int hf_ucd_tlv_t_158_optional_permutation_ul_allocated_subchannels_bitmap; +static int hf_ucd_tlv_t_160_band_amc_release_threshold; +static int hf_ucd_tlv_t_161_band_amc_allocation_timer; +static int hf_ucd_tlv_t_162_band_amc_release_timer; +static int hf_ucd_tlv_t_163_band_status_report_max_period; +static int hf_ucd_tlv_t_164_band_amc_retry_timer; +static int hf_ucd_tlv_t_171_harq_ack_delay_dl_burst; +static int hf_ucd_tlv_t_170_safety_channel_retry_timer; +static int hf_ucd_tlv_t_172_cqich_band_amc_transition_delay; +static int hf_ucd_tlv_t_174_maximum_retransmission; +static int hf_ucd_tlv_t_177_normalized_cn_override2; +static int hf_ucd_tlv_t_177_normalized_cn_override2_first_line; +static int hf_ucd_tlv_t_177_normalized_cn_override2_list; +static int hf_ucd_tlv_t_176_size_of_cqich_id_field; +static int hf_ucd_tlv_t_186_upper_bound_aas_preamble; +static int hf_ucd_tlv_t_187_lower_bound_aas_preamble; +static int hf_ucd_tlv_t_188_allow_aas_beam_select_message; +static int hf_ucd_tlv_t_189_use_cqich_indication_flag; +static int hf_ucd_tlv_t_190_ms_specific_up_power_addjustment_step; +static int hf_ucd_tlv_t_191_ms_specific_down_power_addjustment_step; +static int hf_ucd_tlv_t_192_min_level_power_offset_adjustment; +static int hf_ucd_tlv_t_193_max_level_power_offset_adjustment; +static int hf_ucd_tlv_t_194_handover_ranging_codes; +static int hf_ucd_tlv_t_195_initial_ranging_interval; +static int hf_ucd_tlv_t_196_tx_power_report; +static int hf_ucd_tlv_t_196_tx_power_report_threshold; +static int hf_ucd_tlv_t_196_tx_power_report_interval; +static int hf_ucd_tlv_t_196_tx_power_report_a_p_avg; +static int hf_ucd_tlv_t_196_tx_power_report_threshold_icqch; +static int hf_ucd_tlv_t_196_tx_power_report_interval_icqch; +static int hf_ucd_tlv_t_196_tx_power_report_a_p_avg_icqch; +/* static int hf_ucd_tlv_t_197_normalized_cn_channel_sounding; */ +static int hf_ucd_tlv_t_202_uplink_burst_profile_for_multiple_fec_types; +static int hf_ucd_tlv_t_203_ul_pusc_subchannel_rotation; +static int hf_ucd_tlv_t_205_relative_power_offset_ul_harq_burst; +static int hf_ucd_tlv_t_206_relative_power_offset_ul_burst_containing_mac_mgmt_msg; +static int hf_ucd_tlv_t_207_ul_initial_transmit_timing; +static int hf_ucd_tlv_t_210_fast_feedback_region; +static int hf_ucd_tlv_t_211_harq_ack_region; +static int hf_ucd_tlv_t_212_ranging_region; +static int hf_ucd_tlv_t_213_sounding_region; +static int hf_ucd_tlv_t_150_initial_ranging_codes; +static int hf_ucd_tlv_t_151_periodic_ranging_codes; +static int hf_ucd_tlv_t_152_bandwidth_request_codes; +static int hf_ucd_tlv_t_155_start_of_ranging_codes_group; +static int hf_ucd_tlv_t_156_permutation_base; +static int hf_ucd_ho_ranging_start; +static int hf_ucd_ho_ranging_end; +static int hf_ucd_initial_range_backoff_start; +static int hf_ucd_initial_range_backoff_end; +static int hf_ucd_bandwidth_backoff_start; +static int hf_ucd_bandwidth_backoff_end; +static int hf_ucd_periodic_ranging_backoff_start; +static int hf_ucd_periodic_ranging_backoff_end; +static int hf_ucd_config_change_count; +static int hf_ucd_ranging_backoff_start; +static int hf_ucd_ranging_backoff_end; +static int hf_ucd_request_backoff_start; +static int hf_ucd_request_backoff_end; -/* static gint hf_ucd_unknown_type = -1; */ -static gint hf_ucd_invalid_tlv = -1; +/* static int hf_ucd_unknown_type; */ +static int hf_ucd_invalid_tlv; #if 0 static const value_string vals_dcd_burst_tcs[] = @@ -210,19 +213,19 @@ static const value_string vals_yes_no_str[] = /* UCD dissector */ 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; - gint tlv_type, tlv_len, tlv_offset, tlv_value_offset; + unsigned offset = 0; + unsigned tvb_len, length; + int tlv_type, tlv_len, tlv_offset, tlv_value_offset; tlv_info_t tlv_info; - gchar* proto_str; + char* proto_str; { /* we are being asked for details */ proto_item *ucd_item; proto_tree *ucd_tree; - guint ucd_ranging_backoff_start; - guint ucd_ranging_backoff_end; - guint ucd_request_backoff_start; - guint ucd_request_backoff_end; + unsigned ucd_ranging_backoff_start; + unsigned ucd_ranging_backoff_end; + unsigned ucd_request_backoff_start; + unsigned ucd_request_backoff_end; tvb_len = tvb_reported_length(tvb); /* display MAC payload type UCD */ @@ -235,22 +238,22 @@ static int dissect_mac_mgmt_msg_ucd_decoder(tvbuff_t *tvb, packet_info *pinfo, p offset++; /* get the ranging backoff start */ - ucd_ranging_backoff_start = tvb_get_guint8(tvb, offset); + ucd_ranging_backoff_start = tvb_get_uint8(tvb, offset); proto_tree_add_uint_format_value(ucd_tree, hf_ucd_ranging_backoff_start, tvb, offset, 1, (1 << ucd_ranging_backoff_start), "2^%u = %u", ucd_ranging_backoff_start, (1 << ucd_ranging_backoff_start)); offset++; /* get the ranging backoff end */ - ucd_ranging_backoff_end = tvb_get_guint8(tvb, offset); + ucd_ranging_backoff_end = tvb_get_uint8(tvb, offset); proto_tree_add_uint_format_value(ucd_tree, hf_ucd_ranging_backoff_end, tvb, offset, 1, (1 << ucd_ranging_backoff_end), "2^%u = %u", ucd_ranging_backoff_end, (1 << ucd_ranging_backoff_end)); offset++; /* get the request backoff start */ - ucd_request_backoff_start = tvb_get_guint8(tvb, offset); + ucd_request_backoff_start = tvb_get_uint8(tvb, offset); proto_tree_add_uint_format_value(ucd_tree, hf_ucd_request_backoff_start, tvb, offset, 1, (1 << ucd_request_backoff_start), "2^%u = %u", ucd_request_backoff_start, (1 << ucd_request_backoff_start)); offset++; /* get the request backoff end */ - ucd_request_backoff_end = tvb_get_guint8(tvb, offset); + ucd_request_backoff_end = tvb_get_uint8(tvb, offset); proto_tree_add_uint_format_value(ucd_tree, hf_ucd_request_backoff_end, tvb, offset, 1, (1 << ucd_request_backoff_end), "2^%u = %u", ucd_request_backoff_end, (1 << ucd_request_backoff_end)); offset++; @@ -258,8 +261,8 @@ static int dissect_mac_mgmt_msg_ucd_decoder(tvbuff_t *tvb, packet_info *pinfo, p { proto_tree *tlv_tree; proto_item *tlv_item1; - guint ul_burst_uiuc; - guint utemp; + unsigned ul_burst_uiuc; + unsigned utemp; /* get the TLV information */ init_tlv_info(&tlv_info, tvb, offset); /* get the TLV type */ @@ -331,7 +334,7 @@ static int dissect_mac_mgmt_msg_ucd_decoder(tvbuff_t *tvb, packet_info *pinfo, p case UCD_UPLINK_BURST_PROFILE: { /* get the UIUC */ - ul_burst_uiuc = tvb_get_guint8(tvb, offset) & 0x0F; + ul_burst_uiuc = tvb_get_uint8(tvb, offset) & 0x0F; /* add TLV subtree */ proto_str = wmem_strdup_printf(pinfo->pool, "Uplink Burst Profile (UIUC = %u)", ul_burst_uiuc); tlv_tree = add_protocol_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, proto_mac_mgmt_msg_ucd_decoder, tvb, offset-tlv_value_offset, tlv_len, proto_str); @@ -406,14 +409,14 @@ static int dissect_mac_mgmt_msg_ucd_decoder(tvbuff_t *tvb, packet_info *pinfo, p case UCD_TLV_T_7_HO_RANGING_START: { tlv_tree = add_tlv_subtree_no_item(&tlv_info, ucd_tree, hf_ucd_ho_ranging_start, tvb, offset-tlv_value_offset); - utemp = tvb_get_guint8(tvb, offset); + utemp = tvb_get_uint8(tvb, offset); proto_tree_add_uint_format_value(tlv_tree, hf_ucd_ho_ranging_start, tvb, offset, tvb_len, utemp, "2^%u = %u", utemp, (1 << utemp)); break; } case UCD_TLV_T_8_RANGING_HO_END: { tlv_tree = add_tlv_subtree_no_item(&tlv_info, ucd_tree, hf_ucd_ho_ranging_end, tvb, offset-tlv_value_offset); - utemp = tvb_get_guint8(tvb, offset); + utemp = tvb_get_uint8(tvb, offset); proto_tree_add_uint_format_value(tlv_tree, hf_ucd_ho_ranging_end, tvb, offset, tvb_len, utemp, "2^%u = %u", utemp, (1 << utemp)); break; } @@ -474,7 +477,7 @@ static int dissect_mac_mgmt_msg_ucd_decoder(tvbuff_t *tvb, packet_info *pinfo, p } case UCD_TLV_T_176_SIZE_OF_CQICH_ID_FIELD: { - utemp = tvb_get_guint8(tvb, offset); + utemp = tvb_get_uint8(tvb, offset); cqich_id_size = 0; /* Default is 0 */ if (utemp && utemp < 8) { /* Set for CQICH_Alloc_IE */ @@ -562,28 +565,28 @@ static int dissect_mac_mgmt_msg_ucd_decoder(tvbuff_t *tvb, packet_info *pinfo, p case UCD_TLV_T_198_INTIAL_RANGING_BACKOFF_START: { tlv_tree = add_tlv_subtree_no_item(&tlv_info, ucd_tree, hf_ucd_initial_range_backoff_start, tvb, offset-tlv_value_offset); - utemp = tvb_get_guint8(tvb, offset); + utemp = tvb_get_uint8(tvb, offset); proto_tree_add_uint_format_value(tlv_tree, hf_ucd_initial_range_backoff_start, tvb, offset, tvb_len, utemp, "2^%u = %u", utemp, (1 << utemp)); break; } case UCD_TLV_T_199_INITIAL_RANGING_BACKOFF_END: { tlv_tree = add_tlv_subtree_no_item(&tlv_info, ucd_tree, hf_ucd_initial_range_backoff_end, tvb, offset-tlv_value_offset); - utemp = tvb_get_guint8(tvb, offset); + utemp = tvb_get_uint8(tvb, offset); proto_tree_add_uint_format_value(tlv_tree, hf_ucd_initial_range_backoff_end, tvb, offset, tvb_len, utemp, "2^%u = %u", utemp, (1 << utemp)); break; } case UCD_TLV_T_200_BANDWIDTH_REQUESET_BACKOFF_START: { tlv_tree = add_tlv_subtree_no_item(&tlv_info, ucd_tree, hf_ucd_bandwidth_backoff_start, tvb, offset-tlv_value_offset); - utemp = tvb_get_guint8(tvb, offset); + utemp = tvb_get_uint8(tvb, offset); proto_tree_add_uint_format_value(tlv_tree, hf_ucd_bandwidth_backoff_start, tvb, offset, tvb_len, utemp, "2^%u = %u", utemp, (1 << utemp)); break; } case UCD_TLV_T_201_BANDWIDTH_REQUEST_BACKOFF_END: { tlv_tree = add_tlv_subtree_no_item(&tlv_info, ucd_tree, hf_ucd_bandwidth_backoff_end, tvb, offset-tlv_value_offset); - utemp = tvb_get_guint8(tvb, offset); + utemp = tvb_get_uint8(tvb, offset); proto_tree_add_uint_format_value(tlv_tree, hf_ucd_bandwidth_backoff_end, tvb, offset, tvb_len, utemp, "2^%u = %u", utemp, (1 << utemp)); break; } @@ -610,7 +613,7 @@ static int dissect_mac_mgmt_msg_ucd_decoder(tvbuff_t *tvb, packet_info *pinfo, p case UCD_PERIODIC_RANGING_BACKOFF_START: { tlv_tree = add_tlv_subtree_no_item(&tlv_info, ucd_tree, hf_ucd_periodic_ranging_backoff_start, tvb, offset-tlv_value_offset); - utemp = tvb_get_guint8(tvb, offset); + utemp = tvb_get_uint8(tvb, offset); proto_tree_add_uint_format_value(tlv_tree, hf_ucd_periodic_ranging_backoff_start, tvb, offset, tvb_len, utemp, "2^%u = %u", utemp, (1 << utemp)); break; @@ -618,7 +621,7 @@ static int dissect_mac_mgmt_msg_ucd_decoder(tvbuff_t *tvb, packet_info *pinfo, p case UCD_PERIODIC_RANGING_BACKOFF_END: { tlv_tree = add_tlv_subtree_no_item(&tlv_info, ucd_tree, hf_ucd_periodic_ranging_backoff_end, tvb, offset-tlv_value_offset); - utemp = tvb_get_guint8(tvb, offset); + utemp = tvb_get_uint8(tvb, offset); proto_tree_add_uint_format_value(tlv_tree, hf_ucd_periodic_ranging_backoff_end, tvb, offset, tvb_len, utemp, "2^%u = %u", utemp, (1 << utemp)); break; } @@ -682,42 +685,42 @@ void proto_register_mac_mgmt_msg_ucd(void) &hf_ucd_tlv_t_159_band_amc_allocation_threshold, { "Band AMC Allocation Threshold", "wmx.ucd.band_amc.allocation_threshold", - FT_UINT8, BASE_HEX|BASE_UNIT_STRING, &wimax_units_db, 0, NULL, HFILL + FT_UINT8, BASE_HEX|BASE_UNIT_STRING, UNS(&wimax_units_db), 0, NULL, HFILL } }, { &hf_ucd_tlv_t_161_band_amc_allocation_timer, { "Band AMC Allocation Timer", "wmx.ucd.band_amc.allocation_timer", - FT_UINT8, BASE_HEX|BASE_UNIT_STRING, &wimax_units_frame_frames, 0, NULL, HFILL + FT_UINT8, BASE_HEX|BASE_UNIT_STRING, UNS(&wimax_units_frame_frames), 0, NULL, HFILL } }, { &hf_ucd_tlv_t_160_band_amc_release_threshold, { "Band AMC Release Threshold", "wmx.ucd.band_amc.release_threshold", - FT_UINT8, BASE_HEX|BASE_UNIT_STRING, &wimax_units_db, 0, NULL, HFILL + FT_UINT8, BASE_HEX|BASE_UNIT_STRING, UNS(&wimax_units_db), 0, NULL, HFILL } }, { &hf_ucd_tlv_t_162_band_amc_release_timer, { "Band AMC Release Timer", "wmx.ucd.band_amc.release_timer", - FT_UINT8, BASE_HEX|BASE_UNIT_STRING, &wimax_units_frame_frames, 0, NULL, HFILL + FT_UINT8, BASE_HEX|BASE_UNIT_STRING, UNS(&wimax_units_frame_frames), 0, NULL, HFILL } }, { &hf_ucd_tlv_t_164_band_amc_retry_timer, { "Band AMC Retry Timer", "wmx.ucd.band_amc.retry_timer", - FT_UINT8, BASE_HEX|BASE_UNIT_STRING, &wimax_units_frame_frames, 0, NULL, HFILL + FT_UINT8, BASE_HEX|BASE_UNIT_STRING, UNS(&wimax_units_frame_frames), 0, NULL, HFILL } }, { &hf_ucd_tlv_t_163_band_status_report_max_period, { "Band Status Report MAC Period", "wmx.ucd.band_status.report_max_period", - FT_UINT8, BASE_DEC|BASE_UNIT_STRING, &wimax_units_frame_frames, 0, NULL, HFILL + FT_UINT8, BASE_DEC|BASE_UNIT_STRING, UNS(&wimax_units_frame_frames), 0, NULL, HFILL } }, { @@ -738,7 +741,7 @@ void proto_register_mac_mgmt_msg_ucd(void) &hf_ucd_burst_ranging_data_ratio, { "Ranging Data Ratio", "wmx.ucd.burst.ranging_data_ratio", - FT_UINT8, BASE_DEC|BASE_UNIT_STRING, &wimax_units_db, 0, NULL, HFILL + FT_UINT8, BASE_DEC|BASE_UNIT_STRING, UNS(&wimax_units_db), 0, NULL, HFILL } }, { @@ -758,7 +761,7 @@ void proto_register_mac_mgmt_msg_ucd(void) #if 0 { &hf_ucd_burst_power_boost, - {"Focused Contention Power Boost", "wmx.ucd.burst.power_boost", FT_UINT8, BASE_HEX|BASE_UNIT_STRING, &wimax_units_db, 0, NULL, HFILL} + {"Focused Contention Power Boost", "wmx.ucd.burst.power_boost", FT_UINT8, BASE_HEX|BASE_UNIT_STRING, UNS(&wimax_units_db), 0, NULL, HFILL} }, { &hf_ucd_burst_tcs_enable, @@ -769,21 +772,21 @@ void proto_register_mac_mgmt_msg_ucd(void) &hf_ucd_bw_req_size, { "Bandwidth Request Opportunity Size", "wmx.ucd.bw_req_size", - FT_UINT16, BASE_DEC|BASE_UNIT_STRING, &wimax_units_ps, 0, NULL, HFILL + FT_UINT16, BASE_DEC|BASE_UNIT_STRING, UNS(&wimax_units_ps), 0, NULL, HFILL } }, { &hf_ucd_tlv_t_172_cqich_band_amc_transition_delay, { "CQICH Band AMC-Transition Delay", "wmx.ucd.cqich_band_amc_transition_delay", - FT_UINT8, BASE_DEC|BASE_UNIT_STRING, &wimax_units_frame_frames, 0, NULL, HFILL + FT_UINT8, BASE_DEC|BASE_UNIT_STRING, UNS(&wimax_units_frame_frames), 0, NULL, HFILL } }, { &hf_ucd_freq, { "Frequency", "wmx.ucd.frequency", - FT_UINT32, BASE_DEC|BASE_UNIT_STRING, &wimax_units_khz, 0, NULL, HFILL + FT_UINT32, BASE_DEC|BASE_UNIT_STRING, UNS(&wimax_units_khz), 0, NULL, HFILL } }, { @@ -797,7 +800,7 @@ void proto_register_mac_mgmt_msg_ucd(void) &hf_ucd_tlv_t_171_harq_ack_delay_dl_burst, { "HARQ ACK Delay for DL Burst", "wmx.ucd.harq_ack_delay_dl_burst", - FT_UINT8, BASE_DEC|BASE_UNIT_STRING, &wimax_units_frame_offset, 0, NULL, HFILL + FT_UINT8, BASE_DEC|BASE_UNIT_STRING, UNS(&wimax_units_frame_offset), 0, NULL, HFILL } }, { @@ -918,7 +921,7 @@ void proto_register_mac_mgmt_msg_ucd(void) &hf_ucd_ranging_req_size, { "Ranging Request Opportunity Size", "wmx.ucd.ranging_req_size", - FT_UINT16, BASE_DEC|BASE_UNIT_STRING, &wimax_units_db, 0, NULL, HFILL + FT_UINT16, BASE_DEC|BASE_UNIT_STRING, UNS(&wimax_units_db), 0, NULL, HFILL } }, { @@ -932,7 +935,7 @@ void proto_register_mac_mgmt_msg_ucd(void) &hf_ucd_tlv_t_170_safety_channel_retry_timer, { "Safety Channel Release Timer", "wmx.ucd.safety_channel_release_timer", - FT_UINT8, BASE_HEX|BASE_UNIT_STRING, &wimax_units_frame_frames, 0, NULL, HFILL + FT_UINT8, BASE_HEX|BASE_UNIT_STRING, UNS(&wimax_units_frame_frames), 0, NULL, HFILL } }, { @@ -1208,7 +1211,7 @@ void proto_register_mac_mgmt_msg_ucd(void) }; /* Setup protocol subtree array */ - static gint *ett[] = + static int *ett[] = { &ett_mac_mgmt_msg_ucd_decoder, }; |