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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? plugins-wimax-wimax_utils.c

?? Intel的WIMAX代碼,主要是mac層code
?? C
?? 第 1 頁 / 共 4 頁
字號:
				tlv_tree = add_tlv_subtree(&tlv_info, ett_sa_descriptor_decoder, tree, hf_pkm_attr_sa_service_type, tvb, offset, tlv_len, FALSE);
				proto_tree_add_item(tlv_tree, hf_pkm_attr_sa_service_type, tvb, offset, tlv_len, FALSE);
			break;
			case PKM_ATTR_CRYPTO_SUITE:
				/* add subtree */
				tlv_tree = add_tlv_subtree(&tlv_info, ett_sa_descriptor_decoder, tree, hf_pkm_msg_crypto_suite, tvb, offset, tlv_len, FALSE);
				proto_tree_add_item(tlv_tree, hf_pkm_msg_crypto_suite_msb, tvb, offset, 1, FALSE);
				proto_tree_add_item(tlv_tree, hf_pkm_msg_crypto_suite_middle, tvb, offset, 1, FALSE);
				proto_tree_add_item(tlv_tree, hf_pkm_msg_crypto_suite_lsb, tvb, offset, 1, FALSE);
			break;
			default:
				tlv_tree = add_tlv_subtree(&tlv_info, ett_sa_descriptor_decoder, tree, hf_pkm_msg_unknown_type, tvb, offset, tlv_len, FALSE);
				proto_tree_add_item(tlv_tree, hf_pkm_msg_unknown_type, tvb, offset, tlv_len, FALSE);
			break;
		}
		offset += tlv_len;
	}	/* end of TLV process while loop */
}

/******************************************************************/
/* wimax_security_capabilities_decoder()                          */
/* decode and display the WiMax Security Capabilities             */
/* parameter:                                                     */
/*   tvb - pointer of the tvb of service flow encodings           */
/*   tree - pointer of Wireshark display tree                     */
/*   pinfo - pointer of Wireshark packet information structure    */
/******************************************************************/
void wimax_security_capabilities_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
	guint offset;
	guint tvb_len, tlv_len, tlv_value_offset;
	gint  tlv_type;
	proto_tree *tlv_tree = NULL;
	tlv_info_t tlv_info;

	/* get the tvb reported length */
	tvb_len = tvb_reported_length(tvb);
	/* do nothing if the TLV fields is not exist */
	if(!tvb_len)
		return;
	/* report error if the packet size is less than 2 bytes (type+length) */
	if(tvb_len < 2)
	{	/* invalid tlv info */
		if(pinfo->cinfo)
		{
			col_append_sep_str(pinfo->cinfo, COL_INFO, NULL, "Invalid Security Capabilities");
		}
		return;
	}
	/* process Security Capabilities (11.9.13) */
	for(offset = 0; 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, "Security Capabilities TLV error");
			}
			proto_tree_add_item(tree, hf_cst_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(tree, proto_wimax_utility_decoders, tvb, offset, (tlv_len + tlv_value_offset), "Security Capabilities TLV Type: %u (%u bytes, offset=%u, tvb_len=%u)", tlv_type, (tlv_len + tlv_value_offset), offset, tvb_len);
#endif
		/* update the offset for the TLV value */
		offset += tlv_value_offset;
		/* parse Security Capabilities (table 374) */
		switch (tlv_type)
		{
			case PKM_ATTR_CRYPTO_LIST:
				tlv_tree = add_protocol_subtree(&tlv_info, ett_security_capabilities_decoder, tree, proto_wimax_utility_decoders, tvb, offset, tlv_len, "Cryptographic-Suite List (%u bytes)", tlv_len);
				/* add subtree */
				wimax_cryptographic_suite_list_decoder(tvb_new_subset(tvb, offset, tlv_len, tlv_len), pinfo, tlv_tree);
			break;
			default:
				tlv_tree = add_tlv_subtree(&tlv_info, ett_security_capabilities_decoder, tree, proto_wimax_utility_decoders, tvb, offset, tlv_len, FALSE);
				proto_tree_add_item(tlv_tree, hf_pkm_msg_unknown_type, tvb, offset, tlv_len, FALSE);
			break;
		}
		offset += tlv_len;
	}	/* end of TLV process while loop */
}

/******************************************************************/
/* wimax_vendor_specific_information_decoder()                    */
/* decode and display the WiMax Vendor-Specific Information       */
/* parameter:                                                     */
/*   tvb - pointer of the tvb of service flow encodings           */
/*   tree - pointer of Wireshark display tree                     */
/*   pinfo - pointer of Wireshark packet information structure    */
/******************************************************************/
void wimax_vendor_specific_information_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
	proto_tree *tlv_tree = NULL;
	guint offset;
	guint tvb_len, tlv_len, tlv_value_offset;
	gint  tlv_type;
	tlv_info_t tlv_info;

	/* get the tvb reported length */
	tvb_len = tvb_reported_length(tvb);
	/* do nothing if the TLV fields is not exist */
	if(!tvb_len)
		return;
	/* report error if the packet size is less than 2 bytes (type+length) */
	if(tvb_len < 2)
	{	/* invalid tlv info */
		if(pinfo->cinfo)
		{
			col_append_sep_str(pinfo->cinfo, COL_INFO, NULL, "Invalid Vendor Specific Info");
		}
		proto_tree_add_text(tree, tvb, 0, tvb_len, "Invalid TLV info");
		return;
	}
	/* process Vendor Specific Information (11.1.6) */
	for(offset = 0; 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, "Vendor Specific Info TLV error");
			}
			proto_tree_add_item(tree, hf_cst_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(tree, proto_wimax_utility_decoders, tvb, offset, (tlv_len + tlv_value_offset), "Vendor Specific Info TLV Type: %u (%u bytes, offset=%u, tvb_len=%u)", tlv_type, (tlv_len + tlv_value_offset), offset, tvb_len);
#endif
		/* parse Vendor Specific Information (11.1.6) */
		if(tlv_type == VENDOR_ID_ENCODING)
		{
			/* decode and display the Vendor ID Encoding */
			tlv_tree = add_tlv_subtree(&tlv_info, ett_vendor_id_encoding_decoder, tree, hf_common_tlv_vendor_id, tvb, (offset + tlv_value_offset), tlv_len, FALSE);
			proto_tree_add_item(tlv_tree, hf_common_tlv_vendor_id, tvb, (offset + tlv_value_offset), tlv_len, FALSE);
		}
		else
		{
			/* decode and display the Vendor Specific Info */
			proto_tree_add_item(tree, hf_common_tlv_vendor_specific_type, tvb, offset, 1, FALSE);
			if(get_tlv_length_type(&tlv_info) == 0)
			{	/* single byte TLV length */
				proto_tree_add_item(tree, hf_common_tlv_vendor_specific_length, tvb, (offset + 1), 1, FALSE);
			}
			else
			{	/* multiple bytes TLV length */
				/* display the length of the TLV length with MSB */
				proto_tree_add_item(tree, hf_common_tlv_vendor_specific_length_size, tvb, (offset + 1), 1, FALSE);
				if(get_tlv_size_of_length(&tlv_info))
				{	/* display the multiple byte TLV length */
					proto_tree_add_text(tree, tvb, (offset + 2), get_tlv_size_of_length(&tlv_info), "Vendor Specific Length: %u", get_tlv_size_of_length(&tlv_info));
				}
				else
				{	/* length = 0 */
					continue;
				}
			}
			proto_tree_add_item(tree, hf_common_tlv_vendor_specific_value, tvb, (offset + tlv_value_offset), tlv_len, FALSE);
		}
		/* update the offset */
		offset += tlv_value_offset + tlv_len;
	}
}

/******************************************************************/
/* wimax_common_tlv_encoding_decoder()                            */
/* decode and display the WiMax Common TLV Encoding (Table 346)   */
/* parameter:                                                     */
/*   tvb - pointer of the tvb of service flow encodings           */
/*   tree - pointer of Wireshark display tree                     */
/*   pinfo - pointer of Wireshark packet information structure    */
/******************************************************************/
guint wimax_common_tlv_encoding_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
	guint offset, value;
	guint tvb_len, tlv_len, tlv_value_offset;
	gint  tlv_type;
	proto_tree *tlv_tree = NULL;
	tlv_info_t tlv_info;
	gfloat current_power;

	/* get the tvb reported length */
	tvb_len = tvb_reported_length(tvb);
	/* do nothing if the TLV fields is not exist */
	if(!tvb_len)
		return 0;
	/* report error if the packet size is less than 2 bytes (type+length) */
	if(tvb_len < 2)
	{	/* invalid tlv info */
		if(pinfo->cinfo)
		{
			col_append_sep_str(pinfo->cinfo, COL_INFO, NULL, "Invalid Common TLV encoding");
		}
		proto_tree_add_item(tree, hf_cst_invalid_tlv, tvb, 0, tvb_len, FALSE);
		return 0;
	}
	/* process Common TLV Encoding (11.1) */
	for(offset = 0; 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, "Common TLV encoding TLV error");
			}
			proto_tree_add_item(tree, hf_cst_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(tree, proto_wimax_utility_decoders, tvb, offset, (tlv_len + tlv_value_offset), "Common TLV Encoding TLV Type: %u (%u bytes, offset=%u, tvb_len=%u)", tlv_type, (tlv_len + tlv_value_offset), offset, tvb_len);
#endif
		/* update the offset for the TLV value */
		offset += tlv_value_offset;
		/* parse Common TLV Encoding (table 346) */
		switch (tlv_type)
		{
			case VENDOR_SPECIFIC_INFO:
				/* display Vendor-Specific Information */
				/* add subtree */
				tlv_tree = add_protocol_subtree(&tlv_info, ett_vendor_specific_info_decoder, tree, proto_wimax_utility_decoders, tvb, offset, tlv_len, "Vendor-Specific Information (%u bytes)", tlv_len);
				/* decode and display the Vendor-Specific Information */
				wimax_vendor_specific_information_decoder(tvb_new_subset(tvb, offset, tlv_len, tlv_len), pinfo, tlv_tree);
			break;
			case VENDOR_ID_ENCODING:
				/* display Vendor ID Encoding */
				/* add subtree */
				tlv_tree = add_protocol_subtree(&tlv_info, ett_vendor_specific_info_decoder, tree, proto_wimax_utility_decoders, tvb, offset, tlv_len, "Vendor ID Encoding (%u bytes)", tlv_len);
				/* decode and display the Vendor ID Encoding */
				proto_tree_add_item(tlv_tree, hf_common_tlv_vendor_id, tvb, offset, tlv_len, FALSE);
			break;
			case DSx_UPLINK_FLOW:
				/* display Uplink Service Flow Encodings info */
				/* add subtree */
				tlv_tree = add_protocol_subtree(&tlv_info, ett_ul_service_flow_decoder, tree, proto_wimax_utility_decoders, tvb, offset, tlv_len, "Uplink Service Flow Encodings (%u bytes)", tlv_len);
				/* decode and display the UL Service Flow Encodings */
				wimax_service_flow_encodings_decoder(tvb_new_subset(tvb, offset, tlv_len, tlv_len), pinfo, tlv_tree);
			break;
			case DSx_DOWNLINK_FLOW:
				/* display Downlink Service Flow Encodings info */
				/* add subtree */
				tlv_tree = add_protocol_subtree(&tlv_info, ett_dl_service_flow_decoder, tree, proto_wimax_utility_decoders, tvb, offset, tlv_len, "Downlink Service Flow Encodings (%u bytes)", tlv_len);
				/* decode and display the DL Service Flow Encodings */
				wimax_service_flow_encodings_decoder(tvb_new_subset(tvb,offset, tlv_len, tlv_len), pinfo, tlv_tree);
			break;
			case CURRENT_TX_POWER:
				tlv_tree = add_protocol_subtree(&tlv_info, ett_dl_service_flow_decoder, tree, proto_wimax_utility_decoders, tvb, offset, tlv_len, "Current Transmitted Power (%u byte(s))", tlv_len);
				value = tvb_get_guint8(tvb, offset);
				current_power = (gfloat)(value - 128) / 2;
				proto_tree_add_text(tlv_tree, tvb, offset, 1, "Current Transmitted Power: %.2f dBm (Value: 0x%x)", (gdouble)current_power, value);
			break;
			case MAC_VERSION_ENCODING:
				/* display MAC Version Encoding */
				/* add subtree */
				tlv_tree = add_protocol_subtree(&tlv_info, ett_vendor_specific_info_decoder, tree, proto_wimax_utility_decoders, tvb, offset, tlv_len, "MAC Version Encoding (%u byte)", tlv_len);
				/* decode and display the MAC Version Encoding */
				proto_tree_add_item(tlv_tree, hf_common_tlv_mac_version, tvb, offset, tlv_len, FALSE);
			break;
			case HMAC_TUPLE:	/* Table 348d */
				tlv_tree = add_protocol_subtree(&tlv_info, ett_vendor_specific_info_decoder, tree, proto_wimax_utility_decoders, tvb, offset, tlv_len, "HMAC Tuple (%u byte(s))", tlv_len);
				/* decode and display the HMAC Tuple */
				wimax_hmac_tuple_decoder(tlv_tree, tvb, offset, tlv_len);
			break;
			case CMAC_TUPLE:	/* Table 348b */
				tlv_tree = add_protocol_subtree(&tlv_info, ett_vendor_specific_info_decoder, tree, proto_wimax_utility_decoders, tvb, offset, tlv_len, "HMAC Tuple (%u byte(s))", tlv_len);
				/* decode and display the CMAC Tuple */
				wimax_cmac_tuple_decoder(tlv_tree, tvb, offset, tlv_len);
			break;
			default:
				/* Back to calling routine to finish decoding. */
				return offset - tlv_value_offset;  /* Ret amount decoded. */
			break;
		}
		offset += tlv_len;
	}	/* end of while loop */
	return offset;
}



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


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜精品福利一区二区蜜股av | 亚洲精品乱码久久久久久日本蜜臀| 一区二区三区影院| 韩国欧美一区二区| 欧美日韩一区三区四区| 国产精品入口麻豆九色| 久久国产精品一区二区| 欧美乱熟臀69xxxxxx| 国产精品久久久一区麻豆最新章节| 久久成人麻豆午夜电影| 在线观看日韩av先锋影音电影院| 久久久国产精品不卡| 美腿丝袜亚洲三区| 欧美日韩国产a| 国产精品久久久久影视| 极品少妇xxxx精品少妇| 51精品视频一区二区三区| 一区二区三区在线视频观看58| 成人美女视频在线看| 日韩你懂的电影在线观看| 亚瑟在线精品视频| 色88888久久久久久影院野外| 欧美韩国日本不卡| 国产精品一区免费在线观看| 日韩欧美综合一区| 视频一区免费在线观看| 欧美日韩成人一区二区| 亚洲成人免费av| 欧美在线观看禁18| 亚洲综合激情网| 一本色道久久综合狠狠躁的推荐| 国产精品欧美一级免费| 国产91对白在线观看九色| 久久综合色综合88| 国产精品资源在线| 久久精品一区八戒影视| 国内外精品视频| 国产亚洲制服色| 国产激情视频一区二区在线观看| 欧美精品一区二区三区在线| 麻豆成人在线观看| 久久免费看少妇高潮| 国产精品亚洲成人| 欧美经典三级视频一区二区三区| 丁香婷婷综合五月| 中文字幕一区在线观看| 不卡一区二区中文字幕| 国产精品欧美精品| 色婷婷久久综合| 亚洲成av人影院| 欧美久久久久久久久| 日本美女一区二区三区| 欧美成人video| 国产一区二区h| 国产精品人成在线观看免费| 一本久久综合亚洲鲁鲁五月天| 亚洲欧美另类图片小说| 91福利精品视频| 天天影视色香欲综合网老头| 日韩午夜av电影| 国产精品一区二区三区乱码| 国产精品久久三区| 在线观看av一区| 美女任你摸久久| 国产视频不卡一区| 色综合色狠狠综合色| 视频在线观看国产精品| www激情久久| 成人高清免费在线播放| 亚洲一区二区视频| 日韩欧美国产一区在线观看| 国产激情一区二区三区| 亚洲丝袜美腿综合| 欧美高清激情brazzers| 国产乱码精品1区2区3区| 最近中文字幕一区二区三区| 欧美午夜精品久久久久久超碰 | 国产精品国产三级国产普通话蜜臀| www.亚洲色图.com| 亚洲成人动漫在线观看| 亚洲精品在线观看视频| 91亚洲精品一区二区乱码| 午夜精品一区二区三区三上悠亚| 久久午夜电影网| 色激情天天射综合网| 久久精品国产久精国产| 国产精品护士白丝一区av| 欧美日韩一区二区在线观看| 精品一区二区三区在线观看国产| 国产精品欧美久久久久一区二区| 欧美视频日韩视频| 精品中文av资源站在线观看| ...av二区三区久久精品| 91精品国产综合久久福利软件| 国产激情一区二区三区桃花岛亚洲| 一个色在线综合| 久久香蕉国产线看观看99| 欧美性生交片4| 国产成人av电影在线播放| 香蕉av福利精品导航| 中文字幕不卡一区| 欧美一级二级三级乱码| 91在线国产观看| 久久99久国产精品黄毛片色诱| 亚洲欧美偷拍卡通变态| 亚洲精品一区在线观看| 欧美在线看片a免费观看| 国产成人免费视频网站| 日韩电影在线观看电影| 亚洲欧美国产三级| 久久久久99精品国产片| 91精品久久久久久久91蜜桃| 91欧美激情一区二区三区成人| 黄色成人免费在线| 午夜精品久久久久久久久久| 国产精品国产精品国产专区不蜜 | 日韩女同互慰一区二区| 91黄色激情网站| 国产999精品久久久久久绿帽| 日韩avvvv在线播放| 亚洲精品视频免费观看| 国产欧美精品国产国产专区| 51精品久久久久久久蜜臀| 在线观看av不卡| 99久久免费精品高清特色大片| 国产一区欧美二区| 奇米综合一区二区三区精品视频| 亚洲激情中文1区| 亚洲欧洲韩国日本视频| 国产午夜亚洲精品午夜鲁丝片| 日韩欧美国产1| 欧美视频三区在线播放| 91激情五月电影| 91视频一区二区三区| 成人精品gif动图一区| 国产一区二区伦理片| 精品一区二区日韩| 奇米精品一区二区三区在线观看一| 一区二区三区日韩欧美精品| 中文字幕永久在线不卡| 国产精品国产三级国产aⅴ原创 | 欧美精品三级日韩久久| 在线看国产一区二区| 91丝袜国产在线播放| 成人午夜伦理影院| 国产suv一区二区三区88区| 国产精品亚洲专一区二区三区| 精品制服美女丁香| 国内久久婷婷综合| 国产一区二区三区高清播放| 精品一二三四区| 久久99精品国产麻豆婷婷| 免费高清在线视频一区·| 日韩国产精品大片| 日韩av一区二区三区四区| 三级一区在线视频先锋| 天堂蜜桃91精品| 日韩**一区毛片| 九九国产精品视频| 国产麻豆欧美日韩一区| 国产在线国偷精品产拍免费yy| 久久国产精品免费| 国产一区美女在线| 国产精品一区二区在线观看网站 | 亚洲v中文字幕| 天堂资源在线中文精品| 日韩电影免费在线| 麻豆精品在线视频| 国产精品一区二区无线| 成人av综合一区| 91免费视频观看| 欧美日韩精品欧美日韩精品一综合| 欧美日韩一区二区欧美激情| 欧美日本在线视频| 日韩欧美一区二区免费| 久久综合九色综合欧美就去吻| 久久免费偷拍视频| 自拍偷在线精品自拍偷无码专区 | 久久久久久免费| 国产精品嫩草99a| 一区二区高清在线| 日本va欧美va欧美va精品| 精品一区二区三区在线播放| 国产成人啪免费观看软件| 成人看片黄a免费看在线| 91啪亚洲精品| 欧美一区二区在线观看| 久久亚洲精精品中文字幕早川悠里 | 91小视频免费观看| 欧美日韩精品一区二区天天拍小说 | 精品一区免费av| 粉嫩一区二区三区性色av| 一本久道中文字幕精品亚洲嫩| 欧美日韩国产乱码电影| 精品成人私密视频| 一区精品在线播放| 午夜精品视频一区| 国产精品一级在线| 欧美色爱综合网| 久久色成人在线|