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

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

?? plugins-wimax-wimax_tlv.c

?? Intel的WIMAX代碼,主要是mac層code
?? C
字號:
plugins/wimax/wimax_tlv.c - Google Code Search這是 Google 取自 
      http://anonsvn.wireshark.org/wireshark/trunk 的 plugins/wimax/wimax_tlv.c 
      緩存副本

      Google 和網(wǎng)頁作者無關(guān),不對網(wǎng)頁的內(nèi)容負(fù)責(zé)。



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_tlv.c
 * WiMax TLV handling functions
 *
 * 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.
 */

/*************************************************************/
/*   ----------------------- NOTE -------------------------  */
/* There is an identical copy of this file, wimax_tlv.c, in  */
/* both .../plugins/m2m and .../plugins/wimax.  If either    */
/* one needs to be modified, please be sure to copy the file */
/* to the sister directory and check it in there also.       */
/* This prevents having to generate a complicated            */
/* Makefile.nmake in .../plugins/m2m.                        */
/*************************************************************/

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include "wimax_tlv.h"

/*************************************************************/
/* init_tlv_info()                                           */
/* retrive the tlv information from specified tvb and offset */
/* parameter:                                                */
/*   this - pointer of a tlv information data structure      */
/* return:                                                   */
/*   0-success                                               */
/*   !=0-the invalid size of the TLV length (failed)         */
/*************************************************************/
gint init_tlv_info(tlv_info_t *this, tvbuff_t *tvb, gint offset)
{
	guint tlv_len;

	/* get TLV type */
	this->type = (guint8)tvb_get_guint8( tvb, offset );
	/* get TLV length */
	tlv_len = (guint)tvb_get_guint8( tvb, (offset + 1) );
	/* set the TLV value offset */
	this->value_offset = 2;
	/* adjust for multiple-byte TLV length */
	if((tlv_len & WIMAX_TLV_EXTENDED_LENGTH_MASK) != 0)
	{	/* multiple bytes TLV length */
		this->length_type = 1;
		/* get the size of the TLV length */
		tlv_len = (tlv_len & WIMAX_TLV_LENGTH_MASK);
		this->size_of_length = tlv_len;
		/* update the TLV value offset */
		this->value_offset += tlv_len;
		switch (tlv_len)
		{
			case 0:
				this->length = 0;  /* no length */
			break;
			case 1:
				this->length = (gint32)tvb_get_guint8( tvb, (offset + 2) ); /* 8 bit */
			break;
			case 2:
				this->length = (gint32)tvb_get_ntohs( tvb, (offset + 2) ); /* 16 bit */
			break;
			case 3:
				this->length = (gint32)tvb_get_ntoh24( tvb, (offset + 2) ); /* 24 bit */
			break;
			case 4:
				this->length = (gint32)tvb_get_ntohl( tvb, (offset + 2) ); /* 32 bit */
			break;
			default:
				/* mark invalid tlv */
				this->valid = 0;
				/* failed, return the invalid size of the tlv length */
				return (gint)tlv_len;
			break;
		}
	}
	else	/* single byte length */
	{
		this->length_type = 0;
		this->size_of_length = 0;
		this->length = (gint32)tlv_len;
	}
	/* mark valid tlv */
	this->valid = 1;
	/* success */
	return 0;
}

/*************************************************************/
/* get_tlv_type()                                            */
/* get the tlv type of the specified tlv information         */
/* parameter:                                                */
/*   this - pointer of a tlv information data structure      */
/* return:                                                   */
/*   >=0 - TLV type                                           */
/*   =-1 - invalid tlv info                                  */
/*************************************************************/
gint get_tlv_type(tlv_info_t *this)
{
	if(this->valid)
		return (gint)this->type;
	return -1;
}

/**************************************************************/
/* get_tlv_size_of_length()                                   */
/* get the size of tlv length of the specified tlv information*/
/* parameter:                                                 */
/*   this - pointer of a tlv information data structure       */
/* return:                                                    */
/*   >=0 - the size of TLV length                              */
/*   =-1 - invalid tlv info                                   */
/**************************************************************/
gint get_tlv_size_of_length(tlv_info_t *this)
{
	if(this->valid)
		return (gint)this->size_of_length;
	return -1;
}

/*************************************************************/
/* get_tlv_length()                                          */
/* get the tlv length of the specified tlv information       */
/* parameter:                                                */
/*   this - pointer of a tlv information data structure      */
/* return:                                                   */
/*   >=0 - TLV length                                         */
/*   =-1 - invalid tlv info                                  */
/*************************************************************/
gint32 get_tlv_length(tlv_info_t *this)
{
	if(this->valid)
		return (gint32)this->length;
	return -1;
}

/*************************************************************/
/* get_tlv_value_offset()                                    */
/* get the tlv value offset of the specified tlv information */
/* parameter:                                                */
/*   this - pointer of a tlv information data structure      */
/* return:                                                   */
/*   >0 - TLV value offset in byte                           */
/*   =-1 - invalid tlv info                                  */
/*************************************************************/
gint get_tlv_value_offset(tlv_info_t *this)
{
	if(this->valid)
		return (gint)this->value_offset;
	return -1;
}

/*************************************************************/
/* get_tlv_length_type()                                     */
/* get the tlv length type of the specified tlv information  */
/* parameter:                                                */
/*   this - pointer of a tlv information data structure      */
/* return:                                                   */
/*   0 - single byte TLV length                              */
/*   1 - multiple bytes TLV length                           */
/*************************************************************/
gint get_tlv_length_type(tlv_info_t *this)
{
	if(this->valid)
		return (gint)this->length_type;
	return -1;
}



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


?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产毛片精品视频| 亚洲三级在线播放| 久久国产精品色| 亚洲精品一区二区三区四区高清| 欧美精品在线观看播放| 97久久精品人人做人人爽| 欧美国产1区2区| av影院午夜一区| 亚洲精品免费电影| 欧美肥妇毛茸茸| 精品一区中文字幕| 综合分类小说区另类春色亚洲小说欧美| 成人免费av网站| 亚洲午夜成aⅴ人片| 91精品国产aⅴ一区二区| 九色|91porny| 中文字幕中文乱码欧美一区二区| 色八戒一区二区三区| 视频一区二区三区中文字幕| 精品国产一区二区三区四区四| 国产二区国产一区在线观看| 亚洲女同一区二区| 欧美肥大bbwbbw高潮| 国产sm精品调教视频网站| 亚洲免费在线电影| 日韩欧美一级二级三级 | 亚洲精品乱码久久久久久| 精品视频在线免费| 寂寞少妇一区二区三区| 大白屁股一区二区视频| 亚洲欧美另类综合偷拍| 欧美高清hd18日本| 国产乱妇无码大片在线观看| 亚洲精品乱码久久久久久久久| 欧美一区二区三区思思人| 成人性视频网站| 亚洲亚洲精品在线观看| 久久婷婷综合激情| 欧美视频自拍偷拍| av在线一区二区| 麻豆精品视频在线观看| 亚洲综合久久av| 中文字幕免费一区| 日韩欧美另类在线| 欧美性大战久久| 丁香啪啪综合成人亚洲小说| 日本伊人精品一区二区三区观看方式| 国产精品久久久久永久免费观看 | 亚洲色图清纯唯美| 欧美亚洲国产怡红院影院| 国产一区美女在线| 午夜精品aaa| 亚洲视频一二三| 久久精品视频一区| 日韩欧美视频一区| 欧美日韩亚洲综合| 91欧美一区二区| 国产成人午夜片在线观看高清观看| 午夜伊人狠狠久久| 亚洲一区二区视频在线| 成人欧美一区二区三区小说| 久久久久久久久久看片| 26uuu久久天堂性欧美| 7777精品伊人久久久大香线蕉完整版 | 日韩综合在线视频| 精品国产污污免费网站入口| 精品精品国产高清一毛片一天堂| 欧美亚洲一区二区三区四区| 91麻豆国产福利精品| av电影在线观看完整版一区二区| 国产精品一级黄| 国产中文字幕一区| 国产精品1024久久| 国产成人a级片| 国产成人99久久亚洲综合精品| 国精产品一区一区三区mba视频 | 精品一区二区日韩| 麻豆国产精品一区二区三区| 老司机一区二区| 另类调教123区| 国产精品中文有码| 国产成人一级电影| 国产+成+人+亚洲欧洲自线| 福利一区二区在线| 91视频免费观看| 欧美性生活一区| 欧美撒尿777hd撒尿| 欧美喷潮久久久xxxxx| 91精品国产综合久久精品app | 五月天丁香久久| 亚洲动漫第一页| 日韩国产精品91| 精品一区免费av| 成人毛片视频在线观看| 91影院在线观看| 欧美性感一区二区三区| 日韩欧美中文一区| 国产日韩综合av| 国产精品福利av| 亚洲国产精品久久不卡毛片 | 国产精品夜夜嗨| 成人免费福利片| 欧美午夜影院一区| 欧美videofree性高清杂交| 国产日韩一级二级三级| 亚洲乱码国产乱码精品精98午夜| 亚洲国产精品久久艾草纯爱| 激情综合网av| 97久久精品人人爽人人爽蜜臀| 欧美性xxxxxxxx| 久久九九国产精品| 亚洲国产毛片aaaaa无费看 | 午夜成人免费视频| 国产麻豆午夜三级精品| 色999日韩国产欧美一区二区| 9191国产精品| 国产精品美女久久久久久| 亚洲国产wwwccc36天堂| 国产精品1区二区.| 欧美日韩一区在线观看| 国产午夜精品一区二区三区视频| 一区二区三区成人| 精品一区二区三区久久久| 色香色香欲天天天影视综合网| 日韩午夜在线观看| 亚洲精品高清视频在线观看| 久久国产精品99久久人人澡| 91久久精品一区二区| 国产午夜精品美女毛片视频| 婷婷国产在线综合| 一本到不卡精品视频在线观看| 精品欧美一区二区在线观看| 亚洲午夜久久久久久久久电影院 | 91高清在线观看| 精品福利一区二区三区| 亚洲一区二区成人在线观看| 懂色av一区二区夜夜嗨| 欧美一二三四区在线| 亚洲欧美色一区| 成人午夜免费电影| 337p粉嫩大胆噜噜噜噜噜91av| 亚洲成av人片www| 99国产精品久久久| 国产欧美视频一区二区| 另类调教123区 | 狠狠色丁香久久婷婷综合丁香| 欧美性色黄大片手机版| 亚洲欧美成aⅴ人在线观看| 亚洲成av人片在www色猫咪| 欧美揉bbbbb揉bbbbb| 中文在线一区二区| 日本欧美加勒比视频| 在线观看日韩电影| 一区二区三区四区乱视频| 99精品视频在线播放观看| 中文字幕不卡在线播放| 国产精品1区2区3区| 欧美大片一区二区| 美女视频网站久久| 欧美成人精品福利| 麻豆视频观看网址久久| 日韩一级片在线观看| 同产精品九九九| 欧美顶级少妇做爰| 蜜桃av一区二区在线观看| 日韩午夜在线影院| 久久国产精品免费| 久久久国产午夜精品| 国产精品资源站在线| 亚洲二区视频在线| 色哟哟一区二区三区| 亚洲福利视频一区| 制服.丝袜.亚洲.中文.综合| 国产成人一级电影| 精品国产3级a| 久久国产精品区| 日韩一级在线观看| 国产综合久久久久影院| 久久午夜色播影院免费高清| 国产.欧美.日韩| 综合婷婷亚洲小说| 欧美日韩精品一区二区三区四区| 亚洲成人综合视频| 日韩一区二区电影| 国产精品 日产精品 欧美精品| 国产精品久久久久久久岛一牛影视| 成人97人人超碰人人99| 亚洲精品视频观看| 制服.丝袜.亚洲.另类.中文| 国产一区中文字幕| 日韩美女啊v在线免费观看| 欧美性视频一区二区三区| 麻豆精品视频在线观看视频| 国产精品午夜电影| 欧美优质美女网站| 国产综合成人久久大片91| 亚洲视频电影在线| 91精品国产综合久久久久| 国产一区二区三区四区五区入口| 中文字幕第一区综合|