📄 plugins-wimax-msg_ucd.c
字号:
plugins/wimax/msg_ucd.c - Google Code Search这是 Google 取自
http://anonsvn.wireshark.org/wireshark/trunk 的 plugins/wimax/msg_ucd.c
缓存副本
Google 和网页作者无关,不对网页的内容负责。
http://anonsvn.wireshark.org/wireshark/trunk/plugins/wimax/
AUTHORS
COPYING
ChangeLog
Makefile.am
Makefile.common
Makefile.nmake
README.wimax
crc.c
crc.h
crc_data.c
mac_hd_generic_decoder.c
mac_hd_type1_decoder.c
mac_hd_type2_decoder.c
mac_mgmt_msg_decoder.c
moduleinfo.h
moduleinfo.nmake
msg_aas_beam.c
msg_aas_fbck.c
msg_arq.c
msg_clk_cmp.c
msg_dcd.c
msg_dlmap.c
msg_dreg.c
msg_dsa.c
msg_dsc.c
msg_dsd.c
msg_dsx_rvd.c
msg_fpc.c
msg_pkm.c
msg_pmc.c
msg_prc_lt_ctrl.c
msg_reg_req.c
msg_reg_rsp.c
msg_rep.c
msg_res_cmd.c
msg_rng_req.c
msg_rng_rsp.c
msg_sbc.c
msg_ucd.c
msg_ulmap.c
packet-wmx.c
plugin.rc.in
wimax_bits.h
wimax_cdma_code_decoder.c
wimax_compact_dlmap_ie_decoder.c
wimax_compact_ulmap_ie_decoder.c
wimax_fch_decoder.c
wimax_ffb_decoder.c
wimax_hack_decoder.c
wimax_harq_map_decoder.c
wimax_mac.h
wimax_pdu_decoder.c
wimax_phy_attributes_decoder.c
wimax_tlv.c
wimax_tlv.h
wimax_utils.c
wimax_utils.h
/* msg_ucd.c
* WiMax MAC Management UCD Message decoder
*
* Copyright (c) 2007 by Intel Corporation.
*
* Author: Lu Pan <lu.pan@intel.com>
*
* $Id$
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1999 Gerald Combs
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* Include files */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
/*
#define DEBUG
*/
#include <glib.h>
#include <epan/packet.h>
#include "wimax_tlv.h"
#include "wimax_mac.h"
extern gint proto_mac_mgmt_msg_dcd_decoder;
extern gboolean include_cor2_changes;
guint cqich_id_size; /* Set for CQICH_Alloc_IE */
/* forward reference */
void proto_register_mac_mgmt_msg_ucd(void);
void dissect_mac_mgmt_msg_ucd_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
static gint proto_mac_mgmt_msg_ucd_decoder = -1;
static gint ett_mac_mgmt_msg_ucd_decoder = -1;
/* Setup protocol subtree array */
static gint *ett[] =
{
&ett_mac_mgmt_msg_ucd_decoder,
};
/* fix fields */
static gint hf_ucd_message_type = -1;
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 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 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_unknown_type = -1;
static gint hf_ucd_invalid_tlv = -1;
static const value_string vals_dcd_burst_tcs[] =
{
{0, "TCS disabled"},
{1, "TCS enabled"},
{0, NULL}
};
static const value_string vals_dcd_burst_fec[] =
{
{0, "QPSK (CC) 1/2"},
{1, "QPSK (CC) 3/4"},
{2, "16-QAM (CC) 1/2"},
{3, "16-QAM (CC) 3/4"},
{4, "64-QAM (CC) 1/2"},
{5, "64-QAM (CC) 2/3"},
{6, "64-QAM (CC) 3/4"},
{7, "QPSK (BTC) 1/2"},
{8, "QPSK (BTC) 3/4 or 2/3"},
{9, "16-QAM (BTC) 3/5"},
{10, "16-QAM (BTC) 4/5"},
{11, "64-QAM (BTC) 2/3 or 5/8"},
{12, "64-QAM (BTC) 5/6 or 4/5"},
{13, "QPSK (CTC) 1/2"},
{14, "Reserved"},
{15, "QPSK (CTC) 3/4"},
{16, "16-QAM (CTC) 1/2"},
{17, "16-QAM (CTC) 3/4"},
{18, "64-QAM (CTC) 1/2"},
{19, "64-QAM (CTC) 2/3"},
{20, "64-QAM (CTC) 3/4"},
{21, "64-QAM (CTC) 5/6"},
{22, "QPSK (ZT CC) 1/2"},
{23, "QPSK (ZT CC) 3/4"},
{24, "16-QAM (ZT CC) 1/2"},
{25, "16-QAM (ZT CC) 3/4"},
{26, "64-QAM (ZT CC) 1/2"},
{27, "64-QAM (ZT CC) 2/3"},
{28, "64-QAM (ZT CC) 3/4"},
{29, "QPSK (LDPC) 1/2"},
{30, "QPSK (LDPC) 2/3 A code"},
{31, "16-QAM (LDPC) 3/4 A code"},
{32, "16-QAM (LDPC) 1/2"},
{33, "16-QAM (LDPC) 2/3 A code"},
{34, "16-QAM (LDPC) 3/4 A code"},
{35, "64-QAM (LDPC) 1/2"},
{36, "64-QAM (LDPC) 2/3 A code"},
{37, "64-QAM (LDPC) 3/4 A code"},
{38, "QPSK (LDPC) 2/3 B code"},
{39, "QPSK (LDPC) 3/4 B code"},
{40, "16-QAM (LDPC) 2/3 B code"},
{41, "16-QAM (LDPC) 3/4 B code"},
{42, "64-QAM (LDPC) 2/3 B code"},
{43, "64-QAM (LDPC) 3/4 B code"},
{44, "QPSK (CC with optional interleaver) 1/2"},
{45, "QPSK (CC with optional interleaver) 3/4"},
{46, "16-QAM (CC with optional interleaver) 1/2"},
{47, "16-QAM (CC optional interleaver) 0%00"},
{48, "64-QAM (CC with optional interleaver) 2/3"},
{49, "64-QAM (CC with optional interleaver) 3/4"},
{50, "QPSK (LDPC) 5/6"},
{51, "16-QAM (LDPC) 5/6"},
{52, "64-QAM (LDPC) 5/6"},
{0, NULL}
};
static const value_string vals_ucd_cqich_size[] =
{
{0, "0 bits"},
{1, "3 bits"},
{2, "4 bits"},
{3, "5 bits"},
{4, "6 bits"},
{5, "7 bits"},
{6, "8 bits"},
{7, "9 bits"},
{0, NULL}
};
static const value_string vals_yes_no_str[] =
{
{0, "No"},
{1, "Yes"},
{0, NULL}
};
/* UCD display */
static hf_register_info hf[] =
{
{
&hf_ucd_message_type,
{
"MAC Management Message Type", "wimax.macmgtmsgtype.ucd",
FT_UINT8, BASE_DEC, NULL, 0, "", HFILL
}
},
{
&hf_ucd_tlv_t_188_allow_aas_beam_select_message,
{
"Allow AAS Beam Select Message", "wimax.ucd.allow_aas_beam_select_message",
FT_INT8, BASE_DEC, VALS(vals_yes_no_str), 0, "", HFILL
}
},
{
&hf_ucd_tlv_t_159_band_amc_allocation_threshold,
{
"Band AMC Allocation Threshold ", "wimax.ucd.band_amc.allocation_threshold",
FT_UINT8, BASE_HEX, NULL, 0, "", HFILL
}
},
{
&hf_ucd_tlv_t_161_band_amc_allocation_timer,
{
"Band AMC Allocation Timer", "wimax.ucd.band_amc.allocation_timer",
FT_UINT8, BASE_HEX, NULL, 0, "", HFILL
}
},
{
&hf_ucd_tlv_t_160_band_amc_release_threshold,
{
"Band AMC Release Threshold", "wimax.ucd.band_amc.release_threshold",
FT_UINT8, BASE_HEX, NULL, 0, "", HFILL
}
},
{
&hf_ucd_tlv_t_162_band_amc_release_timer,
{
"Band AMC Release Timer", "wimax.ucd.band_amc.release_timer",
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -