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

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

?? 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 和網頁作者無關,不對網頁的內容負責。



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


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品免费观看| 日本一区二区三区免费乱视频| 狠狠色丁香婷婷综合久久片| 午夜av电影一区| 亚洲女人的天堂| 国产精品久久久久精k8| 国产精品麻豆视频| 中文字幕一区二区三区在线不卡| 国产视频一区不卡| 国产精品欧美一区喷水| 国产欧美视频在线观看| 国产欧美1区2区3区| 国产亚洲一区二区三区四区| 精品粉嫩aⅴ一区二区三区四区| 91精品国产一区二区| 日本电影亚洲天堂一区| 欧美日韩一本到| 欧美一级在线免费| 久久综合国产精品| 国产精品久久久久精k8 | 国产在线播放一区| 国产伦精品一区二区三区视频青涩 | 日韩一区二区中文字幕| 精品久久久久久无| 中文在线资源观看网站视频免费不卡| 国产精品无圣光一区二区| 日韩一区在线看| 亚洲美女在线国产| 五月婷婷综合在线| 久久国产人妖系列| 国产精品亚洲专一区二区三区| 成人精品视频一区| 欧美日韩在线一区二区| 精品国产91乱码一区二区三区| 亚洲一区二区三区中文字幕| 日韩国产精品久久| 国产91精品欧美| 在线观看www91| 日韩一区二区中文字幕| 国产色综合一区| 亚洲欧美区自拍先锋| 亚洲综合视频网| 男女性色大片免费观看一区二区| 国产精品亚洲午夜一区二区三区| 国产精品18久久久久久久网站| 91福利区一区二区三区| 久久九九国产精品| 日本美女一区二区三区| 99v久久综合狠狠综合久久| 日韩一区二区不卡| ㊣最新国产の精品bt伙计久久| 日韩专区一卡二卡| 一本色道**综合亚洲精品蜜桃冫| 91.麻豆视频| 日韩一区有码在线| 国产二区国产一区在线观看| 91麻豆高清视频| 2024国产精品| 老司机精品视频导航| av亚洲精华国产精华精| 欧美精品一区二区三| 午夜婷婷国产麻豆精品| 色拍拍在线精品视频8848| 国产欧美视频一区二区三区| 蜜臀久久久久久久| 99久久国产免费看| 欧美国产丝袜视频| 国产成人av一区二区三区在线| 日韩欧美中文一区二区| 日韩高清一区二区| 5月丁香婷婷综合| 亚洲国产精品影院| 在线观看亚洲一区| 一区二区高清在线| 欧美三级蜜桃2在线观看| 国产精品久久久久婷婷二区次| 久久成人久久爱| 日韩女优av电影在线观看| 日韩av电影天堂| 日韩一区二区电影| 国产综合久久久久久鬼色| 精品久久久久久久久久久院品网| 美女在线视频一区| 精品久久久久久久久久久久久久久久久 | 久久久噜噜噜久噜久久综合| 国产乱码字幕精品高清av| 精品国产第一区二区三区观看体验| 国产盗摄视频一区二区三区| 欧美精品一区二区精品网| 国内外成人在线| 国产三级欧美三级日产三级99| 国产黑丝在线一区二区三区| 久久嫩草精品久久久精品| 日本欧美大码aⅴ在线播放| 日韩免费观看2025年上映的电影 | 久久久久久久综合| 91丨九色丨黑人外教| 亚洲色图欧洲色图婷婷| 欧美日韩国产一二三| 舔着乳尖日韩一区| 久久久久99精品国产片| 99久久综合色| 天天综合日日夜夜精品| 日韩午夜电影av| 国产高清精品网站| 国产精品国产三级国产普通话三级 | 亚洲午夜在线电影| 欧美精品自拍偷拍| 韩日精品视频一区| 夜夜爽夜夜爽精品视频| 欧美一区二区福利视频| 大美女一区二区三区| 日本一区二区视频在线| 日本韩国一区二区| 国内精品伊人久久久久av一坑| 中文字幕五月欧美| 91精品在线免费| 91在线视频网址| 国产在线国偷精品免费看| 亚洲影院久久精品| 日韩欧美中文一区| 欧美在线视频不卡| 懂色av一区二区在线播放| 五月激情综合色| 日韩理论片网站| 久久久99久久| 日韩一区二区精品葵司在线 | 一区二区高清免费观看影视大全 | 不卡av在线网| 美国欧美日韩国产在线播放| 亚洲天堂av一区| 久久久久久黄色| 日韩一卡二卡三卡四卡| 欧美亚洲综合在线| av在线不卡网| 国产精品亚洲第一区在线暖暖韩国| 婷婷综合另类小说色区| 亚洲欧美日韩国产手机在线 | 色婷婷综合五月| 国产米奇在线777精品观看| 午夜激情久久久| 亚洲一区二区在线免费观看视频| 久久久久久久久久久久久夜| 欧美一区二区久久久| 欧美日韩国产影片| 欧亚一区二区三区| 一本到三区不卡视频| 播五月开心婷婷综合| 国产成人免费视频| 国产一区二区按摩在线观看| 精品系列免费在线观看| 蜜桃精品在线观看| 日本va欧美va精品| 日韩电影在线一区二区三区| 午夜精品久久久久久久| 亚洲成人高清在线| 久久精品国产秦先生| 青椒成人免费视频| 亚洲成a人片综合在线| 国产福利一区二区三区视频在线| 国产清纯白嫩初高生在线观看91 | 亚洲天堂精品视频| 亚洲人成在线观看一区二区| 亚洲日韩欧美一区二区在线| 亚洲欧美激情一区二区| 亚洲免费观看高清完整版在线观看| 1区2区3区国产精品| 亚洲色图视频网站| 亚洲国产日韩在线一区模特| 午夜视频在线观看一区二区| 日韩中文字幕不卡| 精品一二线国产| 成人av电影免费在线播放| 99视频一区二区| 精品视频在线看| 欧美大白屁股肥臀xxxxxx| 久久久国际精品| 亚洲摸摸操操av| 视频一区欧美日韩| 国产黄色成人av| 欧洲精品一区二区三区在线观看| 91精品国产欧美一区二区18 | 成人短视频下载| 91国模大尺度私拍在线视频| 91精品婷婷国产综合久久竹菊| 精品国产一区二区在线观看| 中文字幕亚洲区| 青青草国产精品亚洲专区无| 国产v综合v亚洲欧| 欧洲视频一区二区| www成人在线观看| 亚洲精品视频一区二区| 激情五月婷婷综合网| 一本到一区二区三区| 精品久久久久av影院| 亚洲一区二区三区国产| 国产麻豆视频精品| 在线不卡一区二区| 中文字幕一区二区三区在线观看| 青青国产91久久久久久|