📄 plugins-wimax-msg_reg_req.c
字号:
plugins/wimax/msg_reg_req.c - Google Code Search这是 Google 取自
http://anonsvn.wireshark.org/wireshark/trunk 的 plugins/wimax/msg_reg_req.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_reg_req.c
* WiMax MAC Management REG-REQ Message decoder
*
* Copyright (c) 2007 by Intel Corporation.
*
* Author: John R. Underwood <junderx@yahoo.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 WIMAX_16E_2005
#include "moduleinfo.h"
#include <glib.h>
#include <epan/packet.h>
#include <epan/prefs.h>
#include "crc.h"
#include "wimax_tlv.h"
#include "wimax_mac.h"
#include "wimax_utils.h"
extern gint proto_wimax;
extern gboolean include_cor2_changes;
/* Forward reference */
void dissect_mac_mgmt_msg_reg_req_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
gint proto_mac_mgmt_msg_reg_req_decoder = -1;
static gint ett_mac_mgmt_msg_reg_req_decoder = -1;
/* Setup protocol subtree array */
static gint *ett[] =
{
&ett_mac_mgmt_msg_reg_req_decoder
};
/* REG-REQ fields */
static gint hf_reg_ss_mgmt_support = -1;
static gint hf_reg_ip_mgmt_mode = -1;
static gint hf_reg_ip_version = -1;
static gint hf_reg_req_secondary_mgmt_cid = -1;
static gint hf_reg_ul_cids = -1;
static gint hf_reg_max_classifiers = -1;
static gint hf_reg_phs = -1;
static gint hf_reg_arq = -1;
static gint hf_reg_dsx_flow_control = -1;
static gint hf_reg_mac_crc_support = -1;
static gint hf_reg_mca_flow_control = -1;
static gint hf_reg_mcast_polling_cids = -1;
static gint hf_reg_num_dl_trans_cid = -1;
static gint hf_reg_mac_address = -1;
static gint hf_reg_tlv_t_20_1_max_mac_level_data_per_dl_frame = -1;
static gint hf_reg_tlv_t_20_2_max_mac_level_data_per_ul_frame = -1;
static gint hf_reg_tlv_t_21_packing_support = -1;
static gint hf_reg_tlv_t_22_mac_extended_rtps_support = -1;
static gint hf_reg_tlv_t_23_max_num_bursts_concurrently_to_the_ms = -1;
static gint hf_reg_method_for_allocating_ip_addr_sec_mgmt_conn_dhcp = -1;
static gint hf_reg_method_for_allocating_ip_addr_sec_mgmt_conn_mobile_ipv4 = -1;
static gint hf_reg_method_for_allocating_ip_addr_sec_mgmt_conn_dhcpv6 = -1;
static gint hf_reg_method_for_allocating_ip_addr_sec_mgmt_conn_ipv6 = -1;
static gint hf_reg_method_for_allocating_ip_addr_sec_mgmt_conn_rsvd = -1;
static gint hf_reg_tlv_t_27_handover_fbss_mdho_ho_disable = -1;
static gint hf_reg_tlv_t_27_handover_fbss_mdho_dl_rf_monitoring_maps = -1;
static gint hf_reg_tlv_t_27_handover_mdho_dl_monitoring_single_map = -1;
static gint hf_reg_tlv_t_27_handover_mdho_dl_monitoring_maps = -1;
static gint hf_reg_tlv_t_27_handover_mdho_ul_multiple = -1;
static gint hf_reg_tlv_t_27_handover_reserved = -1;
static gint hf_reg_tlv_t_29_ho_process_opt_ms_timer = -1;
static gint hf_reg_tlv_t_31_mobility_handover = -1;
static gint hf_reg_tlv_t_31_mobility_sleep_mode = -1;
static gint hf_reg_tlv_t_31_mobility_idle_mode = -1;
static gint hf_reg_req_tlv_t_32_sleep_mode_recovery_time = -1;
static gint hf_ms_previous_ip_address_v4 = -1;
static gint hf_ms_previous_ip_address_v6 = -1;
static gint hf_idle_mode_timeout = -1;
static gint hf_reg_req_tlv_t_45_ms_periodic_ranging_timer = -1;
static gint hf_reg_tlv_t_40_arq_ack_type_selective_ack_entry = -1;
static gint hf_reg_tlv_t_40_arq_ack_type_cumulative_ack_entry = -1;
static gint hf_reg_tlv_t_40_arq_ack_type_cumulative_with_selective_ack_entry = -1;
static gint hf_reg_tlv_t_40_arq_ack_type_cumulative_ack_with_block_sequence_ack = -1;
static gint hf_reg_tlv_t_40_arq_ack_type_reserved = -1;
static gint hf_reg_tlv_t_41_ho_connections_param_processing_time = -1;
static gint hf_reg_tlv_t_42_ho_tek_processing_time = -1;
static gint hf_reg_tlv_t_43_bandwidth_request_ul_tx_power_report_header_support = -1;
static gint hf_reg_tlv_t_43_bandwidth_request_cinr_report_header_support = -1;
static gint hf_reg_tlv_t_43_cqich_allocation_request_header_support = -1;
static gint hf_reg_tlv_t_43_phy_channel_report_header_support = -1;
static gint hf_reg_tlv_t_43_bandwidth_request_ul_sleep_control_header_support = -1;
static gint hf_reg_tlv_t_43_sn_report_header_support = -1;
static gint hf_reg_tlv_t_43_feedback_header_support = -1;
static gint hf_reg_tlv_t_43_sdu_sn_extended_subheader_support_and_parameter = -1;
static gint hf_reg_tlv_t_43_sdu_sn_parameter = -1;
static gint hf_reg_tlv_t_43_dl_sleep_control_extended_subheader = -1;
static gint hf_reg_tlv_t_43_feedback_request_extended_subheader = -1;
static gint hf_reg_tlv_t_43_mimo_mode_feedback_extended_subheader = -1;
static gint hf_reg_tlv_t_43_ul_tx_power_report_extended_subheader = -1;
static gint hf_reg_tlv_t_43_mini_feedback_extended_subheader = -1;
static gint hf_reg_tlv_t_43_sn_request_extended_subheader = -1;
static gint hf_reg_tlv_t_43_pdu_sn_short_extended_subheader = -1;
static gint hf_reg_tlv_t_43_pdu_sn_long_extended_subheader = -1;
static gint hf_reg_tlv_t_43_reserved = -1;
static gint hf_reg_tlv_t_46_handover_indication_readiness_timer = -1;
static gint hf_reg_req_min_time_for_intra_fa = -1;
static gint hf_reg_req_min_time_for_inter_fa = -1;
static gint hf_reg_encap_atm_4 = -1;
static gint hf_reg_encap_ipv4_4 = -1;
static gint hf_reg_encap_ipv6_4 = -1;
static gint hf_reg_encap_802_3_4 = -1;
static gint hf_reg_encap_802_1q_4 = -1;
static gint hf_reg_encap_ipv4_802_3_4 = -1;
static gint hf_reg_encap_ipv6_802_3_4 = -1;
static gint hf_reg_encap_ipv4_802_1q_4 = -1;
static gint hf_reg_encap_ipv6_802_1q_4 = -1;
static gint hf_reg_encap_packet_8023_ethernet_and_rohc_header_compression_4 = -1;
static gint hf_reg_encap_packet_8023_ethernet_and_ecrtp_header_compression_4 = -1;
static gint hf_reg_encap_packet_ip_rohc_header_compression_4 = -1;
static gint hf_reg_encap_packet_ip_ecrtp_header_compression_4 = -1;
static gint hf_reg_encap_rsvd_4 = -1;
static gint hf_reg_encap_atm_2 = -1;
static gint hf_reg_encap_ipv4_2 = -1;
static gint hf_reg_encap_ipv6_2 = -1;
static gint hf_reg_encap_802_3_2 = -1;
static gint hf_reg_encap_802_1q_2 = -1;
static gint hf_reg_encap_ipv4_802_3_2 = -1;
static gint hf_reg_encap_ipv6_802_3_2 = -1;
static gint hf_reg_encap_ipv4_802_1q_2 = -1;
static gint hf_reg_encap_ipv6_802_1q_2 = -1;
static gint hf_reg_encap_packet_8023_ethernet_and_rohc_header_compression_2 = -1;
static gint hf_reg_encap_packet_8023_ethernet_and_ecrtp_header_compression_2 = -1;
static gint hf_reg_encap_packet_ip_rohc_header_compression_2 = -1;
static gint hf_reg_encap_packet_ip_ecrtp_header_compression_2 = -1;
static gint hf_reg_encap_rsvd_2 = -1;
static gint hf_tlv_type = -1;
static gint hf_reg_invalid_tlv = -1;
static gint hf_reg_req_message_type = -1;
/* STRING RESOURCES */
static const true_false_string tfs_reg_ip_mgmt_mode = {
"IP-managed mode",
"Unmanaged mode"
};
static const true_false_string tfs_reg_ss_mgmt_support = {
"secondary management connection",
"no secondary management connection"
};
static const true_false_string tfs_arq_enable = {
"ARQ Requested/Accepted",
"ARQ Not Requested/Accepted"
};
static const true_false_string tfs_arq_deliver_in_order = {
"Order of delivery is preserved",
"Order of delivery is not preserved"
};
static const true_false_string tfs_reg_fbss_mdho_ho_disable = {
"Disable",
"Enable"
};
static const value_string vals_reg_ip_version[] = {
{0x1, "IPv4"},
{0x2, "IPV6"},
{0, NULL}
};
static const value_string vals_reg_phs_support[] = {
{0, "no PHS support"},
{1, "ATM PHS"},
{2, "Packet PHS"},
{3, "ATM and Packet PHS"},
{0, NULL}
};
static const true_false_string tfs_supported = {
"supported",
"unsupported"
};
static const true_false_string tfs_mac_crc_support = {
"MAC CRC Support (Default)",
"No MAC CRC Support"
};
static const value_string tfs_support[] = {
{0, "not supported"},
{1, "supported"},
{0, NULL}
};
/* REG-REQ fields display */
static hf_register_info hf[] =
{
{
&hf_reg_method_for_allocating_ip_addr_sec_mgmt_conn_dhcp,
{
"DHCP", "wimax.reg.alloc_sec_mgmt_dhcp",
FT_BOOLEAN, 8, TFS(&tfs_supported), 0x01, "", HFILL
}
},
{
&hf_reg_method_for_allocating_ip_addr_sec_mgmt_conn_dhcpv6,
{
"DHCPv6", "wimax.reg.alloc_sec_mgmt_dhcpv6",
FT_BOOLEAN, 8, TFS(&tfs_supported), 0x04, "", HFILL
}
},
{
&hf_reg_method_for_allocating_ip_addr_sec_mgmt_conn_ipv6,
{
"IPv6 Stateless Address Autoconfiguration", "wimax.reg.alloc_sec_mgmt_ipv6",
FT_BOOLEAN, 8, TFS(&tfs_supported), 0x08, "", HFILL
}
},
{
&hf_reg_method_for_allocating_ip_addr_sec_mgmt_conn_mobile_ipv4,
{
"Mobile IPv4", "wimax.reg.alloc_sec_mgmt_mobile_ipv4",
FT_BOOLEAN, 8, TFS(&tfs_supported), 0x02, "", HFILL
}
},
{
&hf_reg_method_for_allocating_ip_addr_sec_mgmt_conn_rsvd,
{
"Reserved", "wimax.reg.alloc_sec_mgmt_rsvd",
FT_UINT8, BASE_DEC, NULL, 0xF0, "", HFILL
}
},
{
&hf_reg_arq,
{
"ARQ support", "wimax.reg.arq",
FT_BOOLEAN, 8, TFS(&tfs_supported), 0x0, "", HFILL
}
},
{
&hf_reg_tlv_t_40_arq_ack_type_cumulative_ack_entry,
{
"Cumulative ACK entry", "wimax.reg.arq_ack_type_cumulative_ack_entry",
FT_UINT8, BASE_DEC, NULL, 0x2, "", HFILL
}
},
{
&hf_reg_tlv_t_40_arq_ack_type_cumulative_ack_with_block_sequence_ack,
{
"Cumulative ACK with Block Sequence ACK", "wimax.reg.arq_ack_type_cumulative_ack_with_block_sequence_ack",
FT_UINT8, BASE_DEC, NULL, 0x8, "", HFILL
}
},
{
&hf_reg_tlv_t_40_arq_ack_type_cumulative_with_selective_ack_entry,
{
"Cumulative with Selective ACK entry", "wimax.reg.arq_ack_type_cumulative_with_selective_ack_entry",
FT_UINT8, BASE_DEC, NULL, 0x4, "", HFILL
}
},
{
&hf_reg_tlv_t_40_arq_ack_type_reserved,
{
"Reserved", "wimax.reg.arq_ack_type_reserved",
FT_UINT8, BASE_DEC, NULL, 0xf0, "", HFILL
}
},
{
&hf_reg_tlv_t_40_arq_ack_type_selective_ack_entry,
{
"Selective ACK entry", "wimax.reg.arq_ack_type_selective_ack_entry",
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -