?? plugins-wimax-mac_hd_generic_decoder.c
字號:
"MAC Sub-type Bit 1", "wimax.genericType1",
FT_UINT24, BASE_HEX, VALS(type_msg1), WIMAX_MAC_HEADER_GENERIC_TYPE_1,
"", HFILL
}
},
{
&hf_mac_header_generic_type_2,
{
"MAC Sub-type Bit 2", "wimax.genericType2",
FT_UINT24, BASE_HEX, VALS(type_msg2), WIMAX_MAC_HEADER_GENERIC_TYPE_2,
"", HFILL
}
},
{
&hf_mac_header_generic_type_3,
{
"MAC Sub-type Bit 3", "wimax.genericType3",
FT_UINT24, BASE_HEX, VALS(type_msg3), WIMAX_MAC_HEADER_GENERIC_TYPE_3,
"", HFILL
}
},
{
&hf_mac_header_generic_type_4,
{
"MAC Sub-type Bit 4", "wimax.genericType4",
FT_UINT24, BASE_HEX, VALS(type_msg4), WIMAX_MAC_HEADER_GENERIC_TYPE_4,
"", HFILL
}
},
{
&hf_mac_header_generic_type_5,
{
"MAC Sub-type Bit 5", "wimax.genericType5",
FT_UINT24, BASE_HEX, VALS(type_msg5), WIMAX_MAC_HEADER_GENERIC_TYPE_5,
"", HFILL
}
},
{
&hf_mac_header_generic_esf,
{
"Extended Sub-header Field", "wimax.genericEsf",
FT_UINT24, BASE_HEX, VALS(esf_msgs), WIMAX_MAC_HEADER_GENERIC_ESF,
"", HFILL
}
},
{
&hf_mac_header_generic_ci,
{
"CRC Indicator", "wimax.genericCi",
FT_UINT24, BASE_HEX, VALS(ci_msgs), WIMAX_MAC_HEADER_GENERIC_CI,
"", HFILL
}
},
{
&hf_mac_header_generic_eks,
{
"Encryption Key Sequence", "wimax.genericEks",
FT_UINT24, BASE_HEX, NULL, WIMAX_MAC_HEADER_GENERIC_EKS,
"", HFILL
}
},
{
&hf_mac_header_generic_rsv,
{
"Reserved", "wimax.genericRsv",
FT_UINT24, BASE_DEC, NULL, WIMAX_MAC_HEADER_GENERIC_RSV,
"", HFILL
}
},
{
&hf_mac_header_generic_len,
{
"Length", "wimax.genericLen",
FT_UINT24, BASE_DEC, NULL, WIMAX_MAC_HEADER_GENERIC_LEN,
"", HFILL
}
},
{
&hf_mac_header_generic_cid,
{
"Connection ID", "wimax.genericCid",
FT_UINT16, BASE_DEC, NULL, 0x0,
"", HFILL
}
},
{
&hf_mac_header_generic_hcs,
{
"Header Check Sequence", "wimax.genericHcs",
FT_UINT8, BASE_HEX, NULL, 0x0,
"", HFILL
}
},
{
&hf_mac_header_generic_crc,
{
"CRC", "wimax.genericCrc",
FT_UINT32, BASE_HEX, NULL, 0x0,
"", HFILL
}
}
};
/* Extended sub-headers */
/* DL sub-header types */
enum
{
SDU_SN,
DL_SLEEP_CONTROL,
FEEDBACK_REQ,
SN_REQ,
PDU_SN_SHORT_DL,
PDU_SN_LONG_DL
} DL_EXT_SUBHEADER;
static const value_string dl_ext_sub_header_type[] =
{
{0, "SDU_SN"},
{1, "DL Sleep Control"},
{2, "Feedback Request"},
{3, "SN Request"},
{4, "PDU SN (short)"},
{5, "PDU SN (long)"},
{0, NULL}
};
/* DL Sleep Control Extended Subheader field masks (table 13e) */
#define DL_SLEEP_CONTROL_POWER_SAVING_CLASS_ID_MASK 0xFC0000 /*0x00003F*/
#define DL_SLEEP_CONTROL_OPERATION_MASK 0x020000 /*0x000040*/
#define DL_SLEEP_CONTROL_FINAL_SLEEP_WINDOW_EXPONENT_MASK 0x01C000 /*0x000380*/
#define DL_SLEEP_CONTROL_FINAL_SLEEP_WINDOW_BASE_MASK 0x003FF0 /*0x0FFC00*/
#define DL_SLEEP_CONTROL_RESERVED_MASK 0x00000F /*0xF00000*/
/* Feedback Request Extended Subheader field masks (table 13f) */
#define FEEDBACK_REQUEST_UIUC_MASK 0xF00000 /*0x00000F*/
#define FEEDBACK_REQUEST_FEEDBACK_TYPE_MASK 0x0F0000 /*0x0000F0*/
#define FEEDBACK_REQUEST_OFDMA_SYMBOL_OFFSET_MASK 0x00FC00 /*0x003F00*/
#define FEEDBACK_REQUEST_SUBCHANNEL_OFFSET_MASK 0x0003F0 /*0x0FC000*/
#define FEEDBACK_REQUEST_NUMBER_OF_SLOTS_MASK 0x00000E /*0x700000*/
#define FEEDBACK_REQUEST_FRAME_OFFSET_MASK 0x000001 /*0x800000*/
/* OFDMA UIUC Values ??? */
static const value_string uiuc_values[] =
{
{ 0, "Fast-Feedback Channel" },
{ 1, "Burst Profile 1" },
{ 2, "Burst Profile 2" },
{ 3, "Burst Profile 3" },
{ 4, "Burst Profile 4" },
{ 5, "Burst Profile 5" },
{ 6, "Burst Profile 6" },
{ 7, "Burst Profile 7" },
{ 8, "Burst Profile 8" },
{ 9, "Burst Profile 9" },
{ 10, "Burst Profile 10" },
{ 11, "Extended UIUC 2 IE" },
{ 12, "CDMA Bandwidth Request, CDMA Ranging" },
{ 13, "PAPR Reduction Allocation, Safety Zone" },
{ 14, "CDMA Allocation IE" },
{ 15, "Extended UIUC" },
{ 0, NULL}
};
/* UL sub-header types */
enum
{
MIMO_MODE_FEEDBACK,
UL_TX_POWER_REPORT,
MINI_FEEDBACK,
PDU_SN_SHORT_UL,
PDU_SN_LONG_UL
} UL_EXT_SUBHEADER;
static const value_string ul_ext_sub_header_type[] =
{
{0, "MIMO Mode Feedback"},
{1, "UL TX Power Report"},
{2, "Mini-feedback"},
{3, "PDU SN (short)"},
{4, "PDU SN (long)"},
{0, NULL}
};
/* MIMO Mode Feedback Extended Subheader field masks (table 13g) */
#define MIMO_FEEDBACK_TYPE_MASK 0xC0 /*0x03*/
#define MIMO_FEEDBACK_CONTENT_MASK 0x3F /*0xFC*/
/* Mimo Feedback Types ??? */
static const value_string mimo_fb_types[] =
{
{ 0, "Fast DL measurement" },
{ 1, "Default Feedback with Antenna Grouping" },
{ 2, "Antenna Selection and Reduced Codebook" },
{ 3, "Quantized Precoding Weight Feedback" },
{ 0, NULL}
};
/* MNI-Feedback Extended Subheader field masks (table 13i) */
#define MINI_FEEDBACK_TYPE_MASK 0xF000 /*0x000F*/
#define MINI_FEEDBACK_CONTENT_MASK 0x0FFF /*0xFFF0*/
/* Feedback Types */
static const value_string fb_types[] =
{
{ 0, "CQI and MIMO Feedback" },
{ 1, "DL average CINR" },
{ 2, "MIMO Coefficients Feedback" },
{ 3, "Preferred DL Channel DIUC Feedback" },
{ 4, "UL Transmission Power" },
{ 5, "PHY Channel Feedback" },
{ 6, "AMC Band Indication Bitmap" },
{ 7, "Life Span of Short-term Precoding Feedback" },
{ 8, "Multiple Types of Feedback" },
{ 9, "Long-term Precoding Feedback" },
{ 10, "Combined DL Average CINR of Active BSs" },
{ 11, "MIMO Channel Feedback" },
{ 12, "CINR Feedback" },
{ 13, "Close-loop MIMO Feedback" },
{ 14, "Reserved" },
{ 15, "Reserved" },
{ 0, NULL}
};
/* common fields */
static gint hf_mac_header_generic_ext_subheader_rsv = -1;
/* DL sub-header */
static gint hf_mac_header_generic_ext_subheader_type_dl = -1;
static gint hf_mac_header_generic_ext_subheader_sdu_sn = -1;
static gint hf_mac_header_generic_ext_subheader_dl_sleep_control_pscid = -1;
static gint hf_mac_header_generic_ext_subheader_dl_sleep_control_op = -1;
static gint hf_mac_header_generic_ext_subheader_dl_sleep_control_fswe = -1;
static gint hf_mac_header_generic_ext_subheader_dl_sleep_control_fswb = -1;
static gint hf_mac_header_generic_ext_subheader_dl_sleep_control_rsv = -1;
static gint hf_mac_header_generic_ext_subheader_fb_req_uiuc = -1;
static gint hf_mac_header_generic_ext_subheader_fb_req_fb_type = -1;
static gint hf_mac_header_generic_ext_subheader_fb_req_ofdma_symbol_offset = -1;
static gint hf_mac_header_generic_ext_subheader_fb_req_subchannel_offset = -1;
static gint hf_mac_header_generic_ext_subheader_fb_req_slots = -1;
static gint hf_mac_header_generic_ext_subheader_fb_req_frame_offset = -1;
/* DL Sleep Control Operations */
static const value_string dl_sleep_control_ops[] =
{
{ 0, "De-activate Power Saving Class" },
{ 1, "Activate Power Saving Class" },
{ 0, NULL}
};
/* UL sub-header */
static gint hf_mac_header_generic_ext_subheader_type_ul = -1;
static gint hf_mac_header_generic_ext_subheader_mimo_mode_fb_type = -1;
static gint hf_mac_header_generic_ext_subheader_mimo_fb_content = -1;
static gint hf_mac_header_generic_ext_subheader_ul_tx_pwr_rep = -1;
static gint hf_mac_header_generic_ext_subheader_mini_fb_type = -1;
static gint hf_mac_header_generic_ext_subheader_mini_fb_content = -1;
/* common fields */
static gint hf_mac_header_generic_ext_subheader_pdu_sn_short = -1;
static gint hf_mac_header_generic_ext_subheader_pdu_sn_long = -1;
/* SN Request subheader */
#define SN_REQUEST_SUBHEADER_SN_REPORT_INDICATION_1_MASK 0x01
#define SN_REQUEST_SUBHEADER_SN_REPORT_INDICATION_2_MASK 0x02
#define SN_REQUEST_SUBHEADER_RESERVED_MASK 0xFC
static gint hf_mac_header_generic_ext_subheader_sn_req_rep_ind_1 = -1;
static gint hf_mac_header_generic_ext_subheader_sn_req_rep_ind_2 = -1;
static gint hf_mac_header_generic_ext_subheader_sn_req_rsv = -1;
/* SN Report Indication message */
static const value_string sn_rep_msg[] =
{
{ 0, "" },
{ 1, "request transmission" },
{ 0, NULL}
};
/* Extended Subheader display */
static hf_register_info hf_ext[] =
{
{
&hf_mac_header_generic_ext_subheader_rsv,
{
"Reserved", "wimax.genericExtSubhd.Rsv",
FT_UINT8, BASE_DEC, NULL, EXTENDED_SUB_HEADER_RSV_MASK,
"", HFILL
}
},
{
&hf_mac_header_generic_ext_subheader_type_dl,
{
"DL Extended Subheader Type", "wimax.genericExtSubhd.Dl",
FT_UINT8, BASE_DEC, VALS(dl_ext_sub_header_type), EXTENDED_SUB_HEADER_TYPE_MASK,
"", HFILL
}
},
{
&hf_mac_header_generic_ext_subheader_type_ul,
{
"UL Extended Subheader Type", "wimax.genericExtSubhd.Ul",
FT_UINT8, BASE_DEC, VALS(ul_ext_sub_header_type), EXTENDED_SUB_HEADER_TYPE_MASK,
"", HFILL
}
},
{
&hf_mac_header_generic_ext_subheader_sdu_sn,
{
"SDU Sequence Number", "wimax.genericExtSubhd.SduSn",
FT_UINT8, BASE_DEC, NULL, 0x0,
"", HFILL
}
},
{
&hf_mac_header_generic_ext_subheader_dl_sleep_control_pscid,
{
"Power Saving Class ID", "wimax.genericExtSubhd.DlSleepCtrlPSCID",
FT_UINT24, BASE_DEC, NULL, DL_SLEEP_CONTROL_POWER_SAVING_CLASS_ID_MASK,
"", HFILL
}
},
{
&hf_mac_header_generic_ext_subheader_dl_sleep_control_op,
{
"Operation", "wimax.genericExtSubhd.DlSleepCtrlOP",
FT_UINT24, BASE_HEX, VALS(dl_sleep_control_ops), DL_SLEEP_CONTROL_OPERATION_MASK,
"", HFILL
}
},
{
&hf_mac_header_generic_ext_subheader_dl_sleep_control_fswe,
{
"Final Sleep Window Exponent", "wimax.genericExtSubhd.DlSleepCtrlFSWE",
FT_UINT24, BASE_DEC, NULL, DL_SLEEP_CONTROL_FINAL_SLEEP_WINDOW_EXPONENT_MASK,
"", HFILL
}
},
{
&hf_mac_header_generic_ext_subheader_dl_sleep_control_fswb,
{
"Final Sleep Window Base", "wimax.genericExtSubhd.DlSleepCtrlFSWB",
FT_UINT24, BASE_DEC, NULL, DL_SLEEP_CONTROL_FINAL_SLEEP_WINDOW_BASE_MASK,
"", HFILL
}
},
{
&hf_mac_header_generic_ext_subheader_dl_sleep_control_rsv,
{
"Reserved", "wimax.genericExtSubhd.DlSleepCtrlRsv",
FT_UINT24, BASE_DEC, NULL, DL_SLEEP_CONTROL_RESERVED_MASK,
"", HFILL
}
},
{
&hf_mac_header_generic_ext_subheader_fb_req_uiuc,
{
"UIUC", "wimax.genericExtSubhd.FbReqUIUC",
FT_UINT24, BASE_HEX, VALS(uiuc_values), FEEDBACK_REQUEST_UIUC_MASK,
"", HFILL
}
},
{
&hf_mac_header_generic_ext_subheader_fb_req_fb_type,
{
"Feedback Type", "wimax.genericExtSubhd.FbReqFbType",
FT_UINT24, BASE_HEX, VALS(fb_types), FEEDBACK_REQUEST_FEEDBACK_TYPE_MASK,
"", HFILL
}
},
{
&hf_mac_header_generic_ext_subheader_fb_req_ofdma_symbol_offset,
{
"OFDMA Symbol Offset", "wimax.genericExtSubhd.FbReqOfdmaSymbolOffset",
FT_UINT24, BASE_HEX, NULL, FEEDBACK_REQUEST_OFDMA_SYMBOL_OFFSET_MASK,
"", HFILL
}
},
{
&hf_mac_header_generic_ext_subheader_fb_req_subchannel_offset,
{
"Subchannel Offset", "wimax.genericExtSubhd.FbReqSubchannelOffset",
FT_UINT24, BASE_HEX, NULL, FEEDBACK_REQUEST_SUBCHANNEL_OFFSET_MASK,
"", HFILL
}
},
{
&hf_mac_header_generic_ext_subheader_fb_req_slots,
{
"Number of Slots", "wimax.genericExtSubhd.FbReqSlots",
FT_UINT24, BASE_HEX, NULL, FEEDBACK_REQUEST_NUMBER_OF_SLOTS_MASK,
"", HFILL
}
},
{
&hf_mac_header_generic_ext_subheader_fb_req_frame_offset,
{
"Frame Offset", "wimax.genericExtSubhd.FbReqFrameOffset",
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -