亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? plugins-wimax-msg_dsd.c

?? Intel的WIMAX代碼,主要是mac層code
?? C
字號:
plugins/wimax/msg_dsd.c - Google Code Search這是 Google 取自 
      http://anonsvn.wireshark.org/wireshark/trunk 的 plugins/wimax/msg_dsd.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_dsd.c
 * WiMax MAC Management DSD-REQ/RSP Messages 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"
#include "wimax_utils.h"

extern gint proto_mac_mgmt_msg_dsa_decoder;

/* forward reference */
void proto_register_mac_mgmt_msg_dsd(void);
void dissect_mac_mgmt_msg_dsd_req_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
void dissect_mac_mgmt_msg_dsd_rsp_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);

gint proto_mac_mgmt_msg_dsd_decoder = -1;
static gint ett_mac_mgmt_msg_dsd_req_decoder = -1;
static gint ett_mac_mgmt_msg_dsd_rsp_decoder = -1;
static gint ett_dsd_ul_sfe_decoder = -1;
static gint ett_dsd_dl_sfe_decoder = -1;
static gint ett_dsd_hmac_tuple = -1;
static gint ett_dsd_cmac_tuple = -1;

/* Setup protocol subtree array */
static gint *ett[] =
{
	&ett_mac_mgmt_msg_dsd_req_decoder,
	&ett_mac_mgmt_msg_dsd_rsp_decoder,
	&ett_dsd_ul_sfe_decoder,
	&ett_dsd_dl_sfe_decoder,
	&ett_dsd_hmac_tuple,
	&ett_dsd_cmac_tuple,
};

static gchar *dsd_msgs[] =
{
	"Dynamic Service Deletion Request (DSD-REQ)",
	"Dynamic Service Deletion Response (DSD-RSP)"
};

/* fix fields */
static gint hf_dsd_req_message_type = -1;
static gint hf_dsd_transaction_id = -1;
static gint hf_dsd_service_flow_id = -1;
static gint hf_dsd_rsp_message_type = -1;
static gint hf_dsd_confirmation_code = -1;
static gint hf_dsd_invalid_tlv = -1;
static gint hf_dsd_unknown_type = -1;

/* DSx display */
static hf_register_info hf[] =
{
	{
		&hf_dsd_req_message_type,
		{
			"MAC Management Message Type", "wimax.macmgtmsgtype.dsd_req",
			FT_UINT8, BASE_DEC, NULL, 0x0, "", HFILL
		}
	},
	{
		&hf_dsd_rsp_message_type,
		{
			"MAC Management Message Type", "wimax.macmgtmsgtype.dsd_rsp",
			FT_BYTES, BASE_HEX, NULL, 0, "", HFILL
		}
	},
	{
		&hf_dsd_confirmation_code,
		{
			"Confirmation code", "wimax.dsd.confirmation_code",
			FT_UINT8, BASE_HEX, NULL, 0x0, "", HFILL
		}
	},
	{
		&hf_dsd_service_flow_id,
		{
			"Service Flow ID", "wimax.dsd.service_flow_id",
			FT_UINT32, BASE_HEX, NULL, 0x0, "", HFILL
		}
	},
	{
		&hf_dsd_transaction_id,
		{
			"Transaction ID", "wimax.dsd.transaction_id",
			FT_UINT16, BASE_HEX, NULL, 0x0, "", HFILL
		}
	}
};

/* Register Wimax Mac Payload Protocol and Dissector */
void proto_register_mac_mgmt_msg_dsd(void)
{
	if (proto_mac_mgmt_msg_dsd_decoder == -1)
	{
		proto_mac_mgmt_msg_dsd_decoder = proto_mac_mgmt_msg_dsa_decoder;

		proto_register_field_array(proto_mac_mgmt_msg_dsd_decoder, hf, array_length(hf));
		proto_register_subtree_array(ett, array_length(ett));
	}
}

void dissect_mac_mgmt_msg_dsd_req_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
	guint offset = 0;
	guint tvb_len, payload_type, tlv_len, tlv_value_offset;
	gint  tlv_type;
	proto_item *dsd_item = NULL;
	proto_tree *dsd_tree = NULL;
	proto_tree *tlv_tree = NULL;
	tlv_info_t tlv_info;

	if(tree)
	{	/* we are being asked for details */
		/* get the message type */
		payload_type = tvb_get_guint8(tvb, offset);
		/* ensure the message type is DSD REQ/RSP/ACK */
		if(payload_type != MAC_MGMT_MSG_DSD_REQ)
			return;
		/* Get the tvb reported length */
		tvb_len =  tvb_reported_length(tvb);
		/* display MAC message type */
		dsd_item = proto_tree_add_protocol_format(tree, proto_mac_mgmt_msg_dsd_decoder, tvb, offset, tvb_len, "%s (%u bytes)", dsd_msgs[payload_type - MAC_MGMT_MSG_DSD_REQ], tvb_len);
		/* add MAC DSx subtree */
		dsd_tree = proto_item_add_subtree(dsd_item, ett_mac_mgmt_msg_dsd_req_decoder);
		/* Decode and display the DSD message */
		/* display the Message Type */
		proto_tree_add_item(dsd_tree, hf_dsd_req_message_type, tvb, offset, 1, FALSE);
		/* move to next field */
		offset++;
		/* display the Transaction ID */
		proto_tree_add_item(dsd_tree, hf_dsd_transaction_id, tvb, offset, 2, FALSE);
		/* move to next field */
		offset += 2;
		/* display the Service Flow ID */
		proto_tree_add_item(dsd_tree, hf_dsd_service_flow_id, tvb, offset, 4, FALSE);
		/* move to next field */
		offset += 4;
		/* process DSD REQ message TLV Encode Information */
		while(offset < tvb_len)
		{	/* get the TLV information */
			init_tlv_info(&tlv_info, tvb, offset);
			/* get the TLV type */
			tlv_type = get_tlv_type(&tlv_info);
			/* get the TLV length */
			tlv_len = get_tlv_length(&tlv_info);
			if(tlv_type == -1 || tlv_len > MAX_TLV_LEN || tlv_len < 1)
			{	/* invalid tlv info */
				if(pinfo->cinfo)
				{
					col_append_sep_str(pinfo->cinfo, COL_INFO, NULL, "DSD-REQ TLV error");
				}
				proto_tree_add_item(dsd_tree, hf_dsd_invalid_tlv, tvb, offset, (tvb_len - offset), FALSE);
				break;
			}
			/* get the TLV value offset */
			tlv_value_offset = get_tlv_value_offset(&tlv_info);
#ifdef DEBUG /* for debug only */
			proto_tree_add_protocol_format(dsd_tree, proto_mac_mgmt_msg_dsd_decoder, tvb, offset, tlv_len + tlv_value_offset, "DSD-REQ TLV Type: %u (%u bytes, offset=%u, tvb_len=%u)", tlv_type, tlv_len + tlv_value_offset, offset, tvb_len);
#endif
			/* update the offset */
			offset += tlv_value_offset;
			/* process TLV */
			switch (tlv_type)
			{
				case HMAC_TUPLE:	/* Table 348d */
					/* decode and display the HMAC Tuple */
					tlv_tree = add_protocol_subtree(&tlv_info, ett_mac_mgmt_msg_dsd_req_decoder, dsd_tree, proto_mac_mgmt_msg_dsd_decoder, tvb, offset, tlv_len, "HMAC Tuple (%u byte(s))", tlv_len);
					wimax_hmac_tuple_decoder(tlv_tree, tvb, offset, tlv_len);
					break;
				case CMAC_TUPLE:	/* Table 348b */
					/* decode and display the CMAC Tuple */
					tlv_tree = add_protocol_subtree(&tlv_info, ett_mac_mgmt_msg_dsd_req_decoder, dsd_tree, proto_mac_mgmt_msg_dsd_decoder, tvb, offset, tlv_len, "CMAC Tuple (%u byte(s))", tlv_len);
					wimax_cmac_tuple_decoder(tlv_tree, tvb, offset, tlv_len);
					break;
				default:
					/* display the unknown tlv in hex */
					tlv_tree = add_protocol_subtree(&tlv_info, ett_mac_mgmt_msg_dsd_req_decoder, dsd_tree, proto_mac_mgmt_msg_dsd_decoder, tvb, offset, tlv_len, "Unknown TLV (%u byte(s))", tlv_len);
					proto_tree_add_item(tlv_tree, hf_dsd_unknown_type, tvb, (offset - tlv_value_offset), (tlv_len + tlv_value_offset), FALSE);
					break;
			}
			offset += tlv_len;
		}	/* end of while loop */
	}
}

void dissect_mac_mgmt_msg_dsd_rsp_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
	guint offset = 0;
	guint tvb_len, payload_type, tlv_len, tlv_value_offset;
	gint  tlv_type;
	proto_item *dsd_item = NULL;
	proto_tree *dsd_tree = NULL;
	proto_tree *tlv_tree = NULL;
	tlv_info_t tlv_info;

	if(tree)
	{	/* we are being asked for details */
		/* get the message type */
		payload_type = tvb_get_guint8(tvb, offset);
		/* ensure the message type is DSD REQ/RSP/ACK */
		if(payload_type != MAC_MGMT_MSG_DSD_RSP)
			return;
		/* Get the tvb reported length */
		tvb_len =  tvb_reported_length(tvb);
		/* display MAC message type */
		dsd_item = proto_tree_add_protocol_format(tree, proto_mac_mgmt_msg_dsd_decoder, tvb, offset, tvb_len, "%s (%u bytes)", dsd_msgs[payload_type - MAC_MGMT_MSG_DSD_REQ], tvb_len);
		/* add MAC DSx subtree */
		dsd_tree = proto_item_add_subtree(dsd_item, ett_mac_mgmt_msg_dsd_rsp_decoder);
		/* Decode and display the DSD message */
		/* display the Message Type */
		proto_tree_add_item(dsd_tree, hf_dsd_rsp_message_type, tvb, offset, 1, FALSE);
		/* move to next field */
		offset++;
		/* display the Transaction ID */
		proto_tree_add_item(dsd_tree, hf_dsd_transaction_id, tvb, offset, 2, FALSE);
		/* move to next field */
		offset += 2;
		/* display the Confirmation Code */
		proto_tree_add_item(dsd_tree, hf_dsd_confirmation_code, tvb, offset, 1, FALSE);
		/* move to next field */
		offset++;
		/* display the Service Flow ID */
		proto_tree_add_item(dsd_tree, hf_dsd_service_flow_id, tvb, offset, 4, FALSE);
		/* move to next field */
		offset += 4;
		/* process DSD RSP message TLV Encode Information */
		while(offset < tvb_len)
		{	/* get the TLV information */
			init_tlv_info(&tlv_info, tvb, offset);
			/* get the TLV type */
			tlv_type = get_tlv_type(&tlv_info);
			/* get the TLV length */
			tlv_len = get_tlv_length(&tlv_info);
			if(tlv_type == -1 || tlv_len > MAX_TLV_LEN || tlv_len < 1)
			{	/* invalid tlv info */
				if(pinfo->cinfo)
				{
					col_append_sep_str(pinfo->cinfo, COL_INFO, NULL, "DSD RSP TLV error");
				}
				proto_tree_add_item(dsd_tree, hf_dsd_invalid_tlv, tvb, offset, (tvb_len - offset), FALSE);
				break;
			}
			/* get the TLV value offset */
			tlv_value_offset = get_tlv_value_offset(&tlv_info);
#ifdef DEBUG /* for debug only */
			proto_tree_add_protocol_format(dsd_tree, proto_mac_mgmt_msg_dsd_decoder, tvb, offset, tlv_len + tlv_value_offset, "DSD-RSP TLV Type: %u (%u bytes, offset=%u, tvb_len=%u)", tlv_type, tlv_len + tlv_value_offset, offset, tvb_len);
#endif
			/* update the offset */
			offset += tlv_value_offset;
			/* process TLV */
			switch (tlv_type)
			{
				case HMAC_TUPLE:	/* Table 348d */
					/* decode and display the HMAC Tuple */
					tlv_tree = add_protocol_subtree(&tlv_info, ett_mac_mgmt_msg_dsd_req_decoder, dsd_tree, proto_mac_mgmt_msg_dsd_decoder, tvb, offset, tlv_len, "HMAC Tuple (%u byte(s))", tlv_len);
					wimax_hmac_tuple_decoder(tlv_tree, tvb, offset, tlv_len);
					break;
				case CMAC_TUPLE:	/* Table 348b */
					/* decode and display the CMAC Tuple */
					tlv_tree = add_protocol_subtree(&tlv_info, ett_mac_mgmt_msg_dsd_req_decoder, dsd_tree, proto_mac_mgmt_msg_dsd_decoder, tvb, offset, tlv_len, "CMAC Tuple (%u byte(s))", tlv_len);
					wimax_cmac_tuple_decoder(tlv_tree, tvb, offset, tlv_len);
					break;
				default:
					/* display the unknown tlv in hex */
					tlv_tree = add_protocol_subtree(&tlv_info, ett_mac_mgmt_msg_dsd_req_decoder, dsd_tree, proto_mac_mgmt_msg_dsd_decoder, tvb, offset, tlv_len, "Unknown TLV (%u byte(s))", tlv_len);
					proto_tree_add_item(tlv_tree, hf_dsd_unknown_type, tvb, (offset - tlv_value_offset), (tlv_len + tlv_value_offset), FALSE);
					break;
			}
			offset += tlv_len;
		}	/* end of while loop */
	}
}



      取自 
      http://anonsvn.wireshark.org/wireshark/trunk 的 plugins/wimax/msg_dsd.c - 
      LGPL - C


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲女与黑人做爰| 国产精品12区| 国产69精品一区二区亚洲孕妇| 色哟哟精品一区| 久久久久国色av免费看影院| 婷婷激情综合网| 色美美综合视频| 国产视频一区在线观看| 麻豆精品国产91久久久久久| 色婷婷av一区二区三区软件 | 天堂av在线一区| 99免费精品视频| 久久久精品国产免费观看同学| 夜夜操天天操亚洲| 99热这里都是精品| 午夜精品久久久久久久| 国产v综合v亚洲欧| 精品国产一二三| 蜜桃av噜噜一区| 91精品国产福利| 日本美女视频一区二区| 欧美挠脚心视频网站| 午夜精品久久久久久不卡8050| 色猫猫国产区一区二在线视频| 一色屋精品亚洲香蕉网站| 国产91色综合久久免费分享| 国产亚洲短视频| 懂色av一区二区三区免费观看| 久久精品一区二区三区四区| 精品一区二区三区久久久| 精品捆绑美女sm三区| 精品一区二区三区视频在线观看 | 国产精品色哟哟| 国产激情精品久久久第一区二区| 精品粉嫩超白一线天av| 看片网站欧美日韩| 久久久国产午夜精品| 丰满岳乱妇一区二区三区| 中文天堂在线一区| 国产凹凸在线观看一区二区| 国产欧美一区二区精品忘忧草| 国产精品白丝jk黑袜喷水| 中文字幕免费一区| 色综合久久88色综合天天免费| 亚洲自拍偷拍av| 91精品国产乱码| 国产尤物一区二区| 中文字幕日韩欧美一区二区三区| 91丝袜美腿高跟国产极品老师 | 天天操天天综合网| 精品国产网站在线观看| 狠狠色狠狠色综合| 中文字幕中文字幕在线一区| 日本福利一区二区| 日韩av电影免费观看高清完整版| 26uuu成人网一区二区三区| 成人动漫视频在线| 香蕉加勒比综合久久| 亚洲精品一区二区三区四区高清| 国产白丝网站精品污在线入口| 一区二区三区美女视频| 欧美r级在线观看| kk眼镜猥琐国模调教系列一区二区| 亚洲一二三四在线观看| 久久综合色综合88| 欧美在线高清视频| 国产一区二区影院| 一区二区激情小说| 国产色综合一区| 欧美日韩国产综合视频在线观看| 国产高清不卡二三区| 亚洲不卡av一区二区三区| 久久精品视频免费| 欧美男生操女生| 99久久久无码国产精品| 久久国产夜色精品鲁鲁99| 一区二区三区在线视频观看58| 久久综合久色欧美综合狠狠| 欧美日韩一区二区在线观看| 成人av影院在线| 欧美三级电影精品| 国产成人免费网站| 免费视频最近日韩| 一区二区三区不卡视频在线观看| 久久精品一区二区三区不卡牛牛| 欧美群妇大交群中文字幕| 成人综合婷婷国产精品久久免费| 亚洲3atv精品一区二区三区| 中文字幕亚洲精品在线观看| 日韩欧美在线一区二区三区| 欧洲色大大久久| 91热门视频在线观看| 国产激情精品久久久第一区二区| 另类小说一区二区三区| 亚洲mv大片欧洲mv大片精品| 亚洲三级在线免费观看| 亚洲国产精品av| 国产三级精品在线| 久久综合九色综合欧美就去吻 | 精品综合久久久久久8888| 亚洲图片欧美色图| 亚洲精品视频在线观看网站| 欧美国产一区二区在线观看| 久久奇米777| 久久人人97超碰com| 久久亚洲综合色| 精品裸体舞一区二区三区| 91精品欧美综合在线观看最新| 欧美羞羞免费网站| 色激情天天射综合网| 在线观看国产一区二区| 91官网在线观看| 欧美三级日韩三级| 欧美一级xxx| 欧美电视剧免费观看| 日韩免费福利电影在线观看| 日韩一级二级三级| 欧美成va人片在线观看| 精品国产a毛片| 久久婷婷综合激情| 中文在线资源观看网站视频免费不卡| 精品欧美一区二区在线观看| 精品国产91亚洲一区二区三区婷婷| 91精品国产综合久久久蜜臀粉嫩| 91精品婷婷国产综合久久性色| 欧美一级二级三级蜜桃| 久久精品视频在线免费观看| 国产精品久久久久久一区二区三区 | av午夜精品一区二区三区| av色综合久久天堂av综合| 91蜜桃在线免费视频| 欧美三级韩国三级日本一级| 3d成人动漫网站| 久久久综合九色合综国产精品| 中文字幕国产一区| 国产精品美女久久久久aⅴ| 亚洲欧美偷拍另类a∨色屁股| 亚洲综合小说图片| 久久99九九99精品| 不卡一区在线观看| 欧美电影一区二区| 久久久久久一二三区| 亚洲色图欧洲色图婷婷| 日韩成人av影视| 风流少妇一区二区| 制服丝袜一区二区三区| 国产亚洲va综合人人澡精品| 亚洲日本一区二区| 国内精品免费**视频| 色伊人久久综合中文字幕| 欧美变态口味重另类| 亚洲欧美另类在线| 国内精品免费在线观看| 91福利精品视频| 国产午夜一区二区三区| 亚洲成av人片在www色猫咪| 丁香六月久久综合狠狠色| 欧美日韩一区二区三区在线看 | 亚洲精品视频在线观看网站| 日本不卡的三区四区五区| 精品国产污污免费网站入口| 国产精品伦一区二区三级视频| 天天做天天摸天天爽国产一区| 国产不卡视频在线播放| 欧美一级黄色大片| 亚洲综合视频网| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 日韩成人精品在线| 91在线观看污| 久久综合精品国产一区二区三区| 亚洲国产日韩综合久久精品| 国产激情视频一区二区在线观看 | 欧美极品少妇xxxxⅹ高跟鞋| 午夜电影网亚洲视频| 99久久久精品| 久久麻豆一区二区| 日本aⅴ免费视频一区二区三区| 色综合色狠狠天天综合色| 日本一区二区电影| 国产精一品亚洲二区在线视频| 欧美一级日韩不卡播放免费| 亚洲精品成人a在线观看| 成人动漫精品一区二区| 国产欧美一区二区三区在线老狼| 蜜桃av一区二区三区电影| 欧美精品乱码久久久久久| 亚洲色图欧洲色图| 播五月开心婷婷综合| 国产日韩av一区| 国产成人精品三级| 国产亚洲欧美日韩日本| 国产一区二区三区久久久| 精品日韩99亚洲| 韩国av一区二区三区在线观看| 精品免费一区二区三区| 经典三级在线一区| 久久久久九九视频| 国产成人免费在线视频| 国产精品久久免费看| 99在线精品观看|