📄 plugins-wimax-msg_ulmap.c
字号:
plugins/wimax/msg_ulmap.c - Google Code Search这是 Google 取自
http://anonsvn.wireshark.org/wireshark/trunk 的 plugins/wimax/msg_ulmap.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_ulmap.c
* WiMax MAC Management UL-MAP Message decoder
*
* Copyright (c) 2007 by Intel Corporation.
*
* Author: Mike Harvey <michael.harvey@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
#include "moduleinfo.h"
#include <glib.h>
#include <epan/packet.h>
#include <epan/prefs.h>
#include "crc.h"
#include "wimax_bits.h"
extern gint proto_mac_mgmt_msg_dlmap_decoder;
extern gboolean include_cor2_changes;
#define MAC_MGMT_MSG_ULMAP 3
#define XBIT(var, bits, desc) \
do { \
var = BIT_BITS(bit, bufptr, bits); \
proto_tree_add_text(tree, tvb, BITHI(bit, bits), desc ": %d", var); \
bit += bits; \
} while(0)
#define XNIB(var, nibs, desc) \
do { \
var = NIB_NIBS(nib, bufptr, nibs); \
proto_tree_add_text(tree, tvb, NIBHI(nib, nibs), desc ": %d", var); \
nib += nibs; \
} while(0)
extern gint man_ofdma;
/* from msg_ucd.c */
extern guint cqich_id_size; /* Set for CQICH_Alloc_IE */
/* from msg_dlmap.c */
extern gint harq;
extern gint ir_type;
extern gint N_layer;
extern gint RCID_Type;
extern gint RCID_IE(proto_tree *diuc_tree, const guint8 *bufptr, gint offset, gint length, tvbuff_t *tvb, gint RCID_Type);
/* forward reference */
void dissect_mac_mgmt_msg_ulmap_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
static gint proto_mac_mgmt_msg_ulmap_decoder = -1;
static gint ett_ulmap = -1;
static gint ett_ulmap_ie = -1;
static gint ett_ulmap_ffb = -1;
static gint ett_ulmap_c = -1;
static gint ett_ulmap_c_ie = -1;
static gint ett_ulmap_s = -1;
static gint ett_ulmap_s_ie = -1;
static gint ett_287_1 = -1;
static gint ett_287_2 = -1;
static gint ett_289 = -1;
static gint ett_290 = -1;
static gint ett_290b = -1;
static gint ett_291 = -1;
static gint ett_292 = -1;
static gint ett_293 = -1;
static gint ett_294 = -1;
static gint ett_295 = -1;
static gint ett_299 = -1;
static gint ett_300 = -1;
static gint ett_302 = -1;
static gint ett_302a = -1;
static gint ett_302b = -1;
static gint ett_302c = -1;
static gint ett_302d = -1;
static gint ett_302e = -1;
static gint ett_302f = -1;
static gint ett_302g = -1;
static gint ett_302h = -1;
static gint ett_302i = -1;
static gint ett_302j = -1;
static gint ett_302k = -1;
static gint ett_302l = -1;
static gint ett_302m = -1;
static gint ett_302n = -1;
static gint ett_302o = -1;
static gint ett_302p = -1;
static gint ett_302q = -1;
static gint ett_302r = -1;
static gint ett_302s = -1;
static gint ett_302t = -1;
static gint ett_302u = -1;
static gint ett_302v = -1;
static gint ett_306 = -1;
static gint ett_306_ul = -1;
static gint ett_308b = -1;
static gint ett_315d = -1;
/* Setup protocol subtree array */
static gint *ett[] =
{
&ett_ulmap,
&ett_ulmap_ie,
&ett_ulmap_ffb,
&ett_ulmap_c,
&ett_ulmap_c_ie,
&ett_ulmap_s,
&ett_ulmap_s_ie,
&ett_287_1,
&ett_287_2,
&ett_289,
&ett_290,
&ett_290b,
&ett_291,
&ett_292,
&ett_293,
&ett_294,
&ett_295,
&ett_299,
&ett_300,
&ett_302,
&ett_302a,
&ett_302b,
&ett_302c,
&ett_302d,
&ett_302e,
&ett_302f,
&ett_302h,
&ett_302g,
&ett_302i,
&ett_302j,
&ett_302k,
&ett_302l,
&ett_302m,
&ett_302n,
&ett_302o,
&ett_302p,
&ett_302q,
&ett_302r,
&ett_302s,
&ett_302t,
&ett_302u,
&ett_302v,
&ett_306,
&ett_306_ul,
&ett_308b,
&ett_315d,
};
#define DCD_DOWNLINK_BURST_PROFILE 1
#define DCD_BS_EIRP 2
#define DCD_FRAME_DURATION 3
#define DCD_PHY_TYPE 4
#define DCD_POWER_ADJUSTMENT 5
#define DCD_CHANNEL_NR 6
#define DCD_TTG 7
#define DCD_RTG 8
#define DCD_RSS 9
#define DCD_CHANNEL_SWITCH_FRAME_NR 10
#define DCD_FREQUENCY 12
#define DCD_BS_ID 13
#define DCD_FRAME_DURATION_CODE 14
#define DCD_FRAME_NR 15
#define DCD_SIZE_CQICH_ID 16
#define DCD_H_ARQ_ACK_DELAY 17
#define DCD_MAC_VERSION 148
#define DCD_RESTART_COUNT 154
#define DCD_BURST_FREQUENCY 1
#define DCD_BURST_FEC_CODE_TYPE 150
#define DCD_BURST_DIUC_EXIT_THRESHOLD 151
#define DCD_BURST_DIUC_ENTRY_THRESHOLD 152
#define DCD_BURST_TCS_ENABLE 153
#define DCD_TLV_T_541_TYPE_FUNCTION_ACTION 1
#define DCD_TLV_T542_TRIGGER_VALUE 2
#define DCD_TLV_T_543_TRIGGER_AVERAGING_DURATION 3
#define DCD_TLV_T_19_PERMUTATION_TYPE_FOR_BROADCAST_REGION_IN_HARQ_ZONE 19
#define DCD_TLV_T_20_MAXIMUM_RETRANSMISSION 20
#define DCD_TLV_T_21_DEFAULT_RSSI_AND_CINR_AVERAGING_PARAMETER 21
#define DCD_TLV_T_22_DL_AMC_ALLOCATED_PHYSICAL_BANDS_BITMAP 22
#define DCD_TLV_T_31_H_ADD_THRESHOLD 31
#define DCD_TLV_T_32_H_DELETE_THRESHOLD 32
#define DCD_TLV_T_33_ASR 33
#define DCD_TLV_T_34_DL_REGION_DEFINITION 34
#define DCD_TLV_T_35_PAGING_GROUP_ID 35
#define DCD_TLV_T_36_TUSC1_PERMUTATION_ACTIVE_SUBCHANNELS_BITMAP 36
#define DCD_TLV_T_37_TUSC2_PERMUTATION_ACTIVE_SUBCHANNELS_BITMAP 37
#define DCD_TLV_T_45_PAGING_INTERVAL_LENGTH 45
#define DCD_TLV_T_50_HO_TYPE_SUPPORT 50
#define DCD_TLV_T_51_HYSTERSIS_MARGIN 51
#define DCD_TLV_T_52_TIME_TO_TRIGGER_DURATION 52
#define DCD_TLV_T_54_TRIGGER 54
#define DCD_TLV_T_153_DOWNLINK_BURST_PROFILE_FOR_MULTIPLE_FEC_TYPES 153
#define UL_MAP_NCT_PMP 0
#define UL_MAP_NCT_DM 1
#define UL_MAP_NCT_PTP 2
/* NCT messages */
static const value_string nct_msgs[] =
{
{ UL_MAP_NCT_PMP, "PMP" },
{ UL_MAP_NCT_PMP, "DM" },
{ UL_MAP_NCT_PMP, "PTP" },
{ 0, NULL }
};
/* Repetition Coding Indications */
static const value_string rep_msgs[] =
{
{ 0, "No Repetition Coding" },
{ 1, "Repetition Coding of 2 Used" },
{ 2, "Repetition Coding of 4 Used" },
{ 3, "Repetition Coding of 6 Used" },
{ 0, NULL }
};
/* DL Frame Prefix Coding Indications */
static const value_string boost_msgs[] =
{
{ 0, "Normal (not boosted)" },
{ 1, "+6dB" },
{ 2, "-6dB" },
{ 3, "+9dB" },
{ 4, "+3dB" },
{ 5, "-3dB" },
{ 6, "-9dB" },
{ 7, "-12dB" },
{ 0, NULL }
};
/* ul-map fields */
static gint hf_ulmap_message_type = -1;
static gint hf_ulmap_reserved = -1;
static gint hf_ulmap_ucd_count = -1;
static gint hf_ulmap_alloc_start_time = -1;
static gint hf_ulmap_ofdma_sym = -1;
static gint hf_ulmap_fch_expected = -1;
static gint hf_ulmap_ie = -1;
static gint hf_ulmap_ie_cid = -1;
static gint hf_ulmap_ie_uiuc = -1;
static gint hf_ulmap_uiuc12_symofs = -1;
static gint hf_ulmap_uiuc12_subofs = -1;
static gint hf_ulmap_uiuc12_numsym = -1;
static gint hf_ulmap_uiuc12_numsub = -1;
static gint hf_ulmap_uiuc12_method = -1;
static gint hf_ulmap_uiuc12_dri = -1;
static gint hf_ulmap_uiuc10_dur = -1;
static gint hf_ulmap_uiuc10_rep = -1;
static gint hf_ulmap_uiuc14_dur = -1;
static gint hf_ulmap_uiuc14_uiuc = -1;
static gint hf_ulmap_uiuc14_rep = -1;
static gint hf_ulmap_uiuc14_idx = -1;
static gint hf_ulmap_uiuc14_code = -1;
static gint hf_ulmap_uiuc14_sym = -1;
static gint hf_ulmap_uiuc14_sub = -1;
static gint hf_ulmap_uiuc14_bwr = -1;
static gint hf_ulmap_uiuc11_ext = -1;
static gint hf_ulmap_uiuc11_len = -1;
static gint hf_ulmap_uiuc11_data = -1;
static gint hf_ulmap_uiuc15_ext = -1;
static gint hf_ulmap_uiuc15_len = -1;
static gint hf_ulmap_uiuc15_data = -1;
static gint hf_ulmap_uiuc0_symofs = -1;
static gint hf_ulmap_uiuc0_subofs = -1;
static gint hf_ulmap_uiuc0_numsym = -1;
static gint hf_ulmap_uiuc0_numsub = -1;
static gint hf_ulmap_uiuc0_rsv = -1;
static gint hf_ulmap_uiuc13_symofs = -1;
static gint hf_ulmap_uiuc13_subofs = -1;
static gint hf_ulmap_uiuc13_numsym = -1;
static gint hf_ulmap_uiuc13_numsub = -1;
static gint hf_ulmap_uiuc13_papr = -1;
static gint hf_ulmap_uiuc13_zone = -1;
static gint hf_ulmap_uiuc13_rsv = -1;
/* UL-MAP fields display */
static hf_register_info hf[] =
{
{
&hf_ulmap_message_type,
{
"MAC Management Message Type", "wimax.macmgtmsgtype.ulmap",
FT_UINT8, BASE_DEC, NULL, 0x0, "", HFILL
}
},
{
&hf_ulmap_fch_expected,
{
"FCH Expected", "wimax.ulmap.fch.expected",
FT_UINT16, BASE_DEC, NULL, 0x0, "", HFILL
}
},
{
&hf_ulmap_ie,
{
"UL-MAP IE", "wimax.ulmap.ie",
FT_UINT8, BASE_DEC, NULL, 0x0, "", HFILL
}
},
{
&hf_ulmap_ie_cid,
{
"CID", "wimax.ulmap.ie.cid",
FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL
}
},
{
&hf_ulmap_ie_uiuc,
{
"UIUC", "wimax.ulmap.ie.uiuc",
FT_UINT8, BASE_DEC, NULL, 0x0, "", HFILL
}
},
{
&hf_ulmap_ofdma_sym,
{
"Num OFDMA Symbols", "wimax.ulmap.ofdma.sym",
FT_UINT8, BASE_DEC, NULL, 0x0, "", HFILL
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -