?? plugins-wimax-wimax_compact_dlmap_ie_decoder.c
字號:
plugins/wimax/wimax_compact_dlmap_ie_decoder.c - Google Code Search這是
Google 取自
http://anonsvn.wireshark.org/wireshark/trunk 的
plugins/wimax/wimax_compact_dlmap_ie_decoder.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
/* wimax_compact_dlmap_ie_decoder.c
* WiMax HARQ Map 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
#include <glib.h>
#include <epan/packet.h>
#include <epan/prefs.h>
#include "crc.h"
#include "wimax_tlv.h"
extern gint proto_wimax;
/* MASKs */
#define MSB_NIBBLE_MASK 0xF0
#define LSB_NIBBLE_MASK 0x0F
#define CID_TYPE_NORMAL 0
#define CID_TYPE_RCID11 1
#define CID_TYPE_RCID7 2
#define CID_TYPE_RCID3 3
/* Global Variables */
guint cid_type = 0;
guint band_amc_subchannel_type = 0;
guint max_logical_bands = 12;
guint num_of_broadcast_symbols = 0;
guint num_of_dl_band_amc_symbols = 0;
guint num_of_ul_band_amc_symbols = 0;
/* from switch HARQ mode extension IE */
guint harq_mode = 0;
/* forward reference */
static guint wimax_compact_dlmap_format_configuration_ie_decoder(proto_tree *tree, packet_info *pinfo, tvbuff_t *tvb, guint offset, guint nibble_offset);
static guint wimax_compact_dlmap_rcid_ie_decoder(proto_tree *tree, packet_info *pinfo, tvbuff_t *tvb, guint offset, guint nibble_offset);
static guint wimax_compact_dlmap_harq_control_ie_decoder(proto_tree *tree, packet_info *pinfo, tvbuff_t *tvb, guint offset, guint nibble_offset);
static guint wimax_compact_dlmap_cqich_control_ie_decoder(proto_tree *tree, packet_info *pinfo, tvbuff_t *tvb, guint offset, guint nibble_offset);
static guint wimax_cdlmap_extension_ie_decoder(proto_tree *tree, packet_info *pinfo, tvbuff_t *tvb, guint offset, guint nibble_offset);
guint wimax_extended_diuc_dependent_ie_decoder(proto_tree *tree, packet_info *pinfo, tvbuff_t *tvb, guint offset, guint nibble_offset);
static gint proto_wimax_compact_dlmap_ie_decoder = -1;
static gint ett_wimax_compact_dlmap_ie_decoder = -1;
static gint ett_wimax_format_configuration_ie_decoder = -1;
static gint ett_wimax_rcid_ie_decoder = -1;
static gint ett_wimax_harq_control_ie_decoder = -1;
static gint ett_wimax_extended_diuc_dependent_ie_decoder = -1;
static gint ett_wimax_cqich_control_ie_decoder = -1;
static gint ett_wimax_extension_type_ie_decoder = -1;
/* Setup protocol subtree array */
static gint *ett[] =
{
&ett_wimax_compact_dlmap_ie_decoder,
&ett_wimax_format_configuration_ie_decoder,
&ett_wimax_rcid_ie_decoder,
&ett_wimax_harq_control_ie_decoder,
&ett_wimax_extended_diuc_dependent_ie_decoder,
&ett_wimax_cqich_control_ie_decoder,
&ett_wimax_extension_type_ie_decoder,
};
/* New Format Indications */
static const true_false_string tfs_indication =
{
"New format",
"No new format"
};
/* Prefixes */
static const true_false_string tfs_prefix =
{
"Enable HARQ",
"Temporary Disable HARQ"
};
/* CQICH Indicator */
static const true_false_string tfs_cqich_ind =
{
"With CQICH Control IE",
"No CQICH Control IE"
};
/* CID types */
static const value_string vals_cid_types[] =
{
{ 0, "Normal CID" },
{ 1, "RCID11 (default)" },
{ 2, "RCID7" },
{ 3, "RCID3" },
{ 0, NULL }
};
/* Subchannel Types */
static const value_string vals_subchannel_types[] =
{
{ 0, "Default Type" },
{ 1, "1 bin x 6 symbols Type" },
{ 2, "2 bin x 3 symbols Type" },
{ 3, "3 bin x 2 symbols Type" },
{ 0, NULL }
};
/* Max Logical Bands */
static const value_string vals_max_logical_bands[] =
{
{ 0, "3 Bands" },
{ 1, "6 Bands" },
{ 2, "12 Bands (default)" },
{ 3, "24 Bands" },
{ 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 }
};
/* Repetition Coding Indications */
static const value_string vals_allocation_modes[] =
{
{ 0, "Same Number Of Subchannels For The Selected Bands" },
{ 1, "Different Same Number Of Subchannels For The Selected Bands" },
{ 2, "Total Number Of Subchannels For The Selected Bands Determined by Nsch Code and Nep Code" },
{ 3, "Reserved" },
{ 0, NULL }
};
/* Masks */
#define DL_MAP_TYPE_MASK 0xE0
#define UL_MAP_APPEND_MASK 0x10
#define SHORTENED_DIUC_MASK 0xE0
#define COMPANDED_SC_MASK 0x1F
#define DL_MAP_TYPE_MASK_1 0x0E
#define UL_MAP_APPEND_MASK_1 0x01
#define SHORTENED_DIUC_MASK_1 0x0E00
#define COMPANDED_SC_MASK_1 0x01F0
/* display indexies */
static gint hf_cdlmap_dl_map_type = -1;
static gint hf_cdlmap_ul_map_append = -1;
static gint hf_cdlmap_reserved = -1;
static gint hf_cdlmap_nep_code = -1;
static gint hf_cdlmap_nsch_code = -1;
static gint hf_cdlmap_num_bands = -1;
static gint hf_cdlmap_band_index = -1;
static gint hf_cdlmap_nb_bitmap = -1;
static gint hf_cdlmap_dl_map_type_1 = -1;
static gint hf_cdlmap_ul_map_append_1 = -1;
static gint hf_cdlmap_reserved_1 = -1;
static gint hf_cdlmap_nep_code_1 = -1;
static gint hf_cdlmap_nsch_code_1 = -1;
static gint hf_cdlmap_num_bands_1 = -1;
//static gint hf_cdlmap_band_index_1 = -1;
static gint hf_cdlmap_nb_bitmap_1 = -1;
static gint hf_cdlmap_shortened_diuc = -1;
static gint hf_cdlmap_companded_sc = -1;
static gint hf_cdlmap_shortened_uiuc = -1;
static gint hf_cdlmap_shortened_diuc_1 = -1;
static gint hf_cdlmap_companded_sc_1 = -1;
static gint hf_cdlmap_shortened_uiuc_1 = -1;
static gint hf_cdlmap_bin_offset = -1;
static gint hf_cdlmap_bin_offset_1 = -1;
static gint hf_cdlmap_diuc_num_of_subchannels = -1;
static gint hf_cdlmap_diuc_num_of_subchannels_1 = -1;
static gint hf_cdlmap_diuc_repetition_coding_indication = -1;
static gint hf_cdlmap_diuc_repetition_coding_indication_1 = -1;
static gint hf_cdlmap_diuc_reserved = -1;
static gint hf_cdlmap_diuc_reserved_1 = -1;
static gint hf_cdlmap_bit_map_length = -1;
static gint hf_cdlmap_bit_map_length_1 = -1;
static gint hf_cdlmap_bit_map = -1;
static gint hf_cdlmap_diuc = -1;
static gint hf_cdlmap_diuc_1 = -1;
static gint hf_cdlmap_allocation_mode = -1;
static gint hf_cdlmap_allocation_mode_rsvd = -1;
static gint hf_cdlmap_num_subchannels = -1;
static gint hf_cdlmap_allocation_mode_1 = -1;
static gint hf_cdlmap_allocation_mode_rsvd_1 = -1;
static gint hf_cdlmap_num_subchannels_1 = -1;
static gint hf_cdlmap_reserved_type = -1;
static gint hf_cdlmap_reserved_type_1 = -1;
/* Compact DL-MAP IE display */
static hf_register_info hf_compact_dlmap[] =
{
{
&hf_cdlmap_dl_map_type,
{"DL-MAP Type", "wimax.compact_dlmap.dl_map_type", FT_UINT8, BASE_DEC, NULL, DL_MAP_TYPE_MASK, "", HFILL}
},
{
&hf_cdlmap_dl_map_type_1,
{"DL-MAP Type", "wimax.compact_dlmap.dl_map_type", FT_UINT8, BASE_DEC, NULL, DL_MAP_TYPE_MASK_1, "", HFILL}
},
{
&hf_cdlmap_ul_map_append,
{"UL-MAP Append", "wimax.compact_dlmap.ul_map_append", FT_UINT8, BASE_HEX, NULL, UL_MAP_APPEND_MASK, "", HFILL}
},
{
&hf_cdlmap_ul_map_append_1,
{"UL-MAP Append", "wimax.compact_dlmap.ul_map_append", FT_UINT8, BASE_HEX, NULL, UL_MAP_APPEND_MASK_1, "", HFILL}
},
{
&hf_cdlmap_reserved,
{"Reserved", "wimax.compact_dlmap.reserved", FT_UINT8, BASE_HEX, NULL, UL_MAP_APPEND_MASK, "", HFILL}
},
{
&hf_cdlmap_reserved_1,
{"Reserved", "wimax.compact_dlmap.reserved", FT_UINT8, BASE_HEX, NULL, UL_MAP_APPEND_MASK_1, "", HFILL}
},
{
&hf_cdlmap_nep_code,
{"Nep Code", "wimax.compact_dlmap.nep_code", FT_UINT8, BASE_HEX, NULL, MSB_NIBBLE_MASK, "", HFILL}
},
{
&hf_cdlmap_nep_code_1,
{"Nep Code", "wimax.compact_dlmap.nep_code", FT_UINT8, BASE_HEX, NULL, LSB_NIBBLE_MASK, "", HFILL}
},
{
&hf_cdlmap_nsch_code,
{"Nsch Code", "wimax.compact_dlmap.nsch_code", FT_UINT8, BASE_HEX, NULL, MSB_NIBBLE_MASK, "", HFILL}
},
{
&hf_cdlmap_nsch_code_1,
{"Nsch Code", "wimax.compact_dlmap.nsch_code", FT_UINT8, BASE_HEX, NULL, LSB_NIBBLE_MASK, "", HFILL}
},
{
&hf_cdlmap_num_bands,
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -