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

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

?? jigb_wlan_support.h

?? 利用opnet網絡仿真軟件,研究802.11的QOS,可以利用此模塊研究802.11e
?? H
字號:
/** JIGB_wlan_support.h				**/

/****************************************/
/*      Copyright (c) 1987 - 2003       */
/*     by OPNET Technologies, Inc.      */
/*       (A Delaware Corporation)      	*/
/*    7255 Woodmont Av., Suite 250     	*/
/*     Bethesda, MD 20814, U.S.A.       */
/*       All Rights Reserved.          	*/
/****************************************/

/* Protect against multiple includes. 	*/
#ifndef	_WLAN_SUPPORT_H_INCLUDED_
#define _WLAN_SUPPORT_H_INCLUDED_

/** Include directives.							**/
#include <opnet.h>
#include <oms_bgutil.h> 

#if defined (__cplusplus)
extern "C" {
#endif

/** Constants									**/

/* Packet lengths for control frames.			*/ 
#define WLANC_ACK_LENGTH				112 		/* bits */
#define WLANC_CTS_LENGTH				112			/* bits */
#define WLANC_RTS_LENGTH				160			/* bits */
#define WLANC_REQ_LENGTH				213			/* bits */

/* Maximum data bits in MAC service data unit 	*/ 
/* received from higher layer.					*/ 
#define WLANC_MAXMSDU_LENGTH			18432		/* bits */ 
 
/* Total size of MAC frame header and the FCS 	*/
/* field in bits for the data frames that do	*/
/* not use the "Address	4" field.				*/
#define WLANC_MSDU_HEADER_SIZE			224			/* bits	*/

/* The size of SERVICE and Tail fields in the	*/
/* OFDM PLCP headers.							*/
#define	WLANC_SERVICE_AND_TAIL_SIZE		22			/* bits */

/* Maximum tuple (or duplicate) buffer size.	*/ 
#define WLANC_TUPLE_SIZE				100			/* pkts	*/

/* Number of operational WLAN channels.			*/
#define	WLANC_11a_OPER_CHNL_COUNT		12
#define	WLANC_11b_OPER_CHNL_COUNT		11

/* Physical layer standard specific parameters.	*/
#define WLANC_11a_CHNL_BANDWIDTH		20.0		/* MHz	*/
#define	WLANC_11b_CHNL_BANDWIDTH		22.0		/* MHz	*/
#define	WLANC_11a_FIRST_CHNL_MIN_FREQ	5170.0		/* MHz	*/
#define	WLANC_11b_FIRST_CHNL_MIN_FREQ	2401.0		/* MHz	*/
#define	WLANC_11b_LAST_CHNL_MAX_FREQ	2473.0		/* MHz	*/
#define	WLANC_11a_CHNL_SPACING			20.0		/* MHz	*/
#define	WLANC_11b_CHNL_SPACING			5.0			/* MHz	*/
#define	WLANC_11a_MIN_MANDATORY_DRATE	6000000.0	/* bps	*/
#define	WLANC_11b_MIN_MANDATORY_DRATE	1000000.0	/* bps	*/
#define	WLANC_11b_CHIP_RATE				11000000.0	/* cps	*/

/* PLCP overheads based on physical layer 		*/
/* technology.									*/
#define	WLANC_PLCP_OVERHEAD_FHSS		128E-06		/* sec	*/
#define	WLANC_PLCP_OVERHEAD_DSSS_LONG	192E-06		/* sec	*/
#define	WLANC_PLCP_OVERHEAD_DSSS_SHORT	 96E-06		/* sec	*/
#define	WLANC_PLCP_OVERHEAD_IR_1MBPS	 57E-06		/* sec	*/
#define	WLANC_PLCP_OVERHEAD_IR_2MBPS	 45E-06		/* sec	*/
#define	WLANC_PLCP_OVERHEAD_OFDM		 20E-06		/* sec	*/

/* The minimum PLCP overhead in bits (infra-red */
/* PHY using 1 Mbps), which is already included	*/
/* in the WLAN packet formats.					*/							
#define WLANC_DEFAULT_PLCP_OVERHEAD		57			/* bits */

/* Signal (length) extension that follows		*/
/* 802.11g transmissions using ERP-OFDM mode.	*/
#define	WLANC_11g_SIGNAL_EXTENSION		6E-06		/* sec	*/

/* Constants used in customized WLAN pipeline	*/
/* stage models.								*/
#define	WLANC_NEIGHBOR_BSS_PKT_REJECT	-1

/* Reliability related constants.				*/
#define	WLANC_AP_RELIABLE				1.0
#define	WLANC_AP_UNRELIABLE				0.0
#define	WLANC_AP_RELIABILITY_UNKNOWN 	-1.0
#define	WLANC_AP_SCAN_START_THRESHOLD	0.5
#define WLANC_AP_RELIABILITY_COEFF		0.8

/* A large, random, 4-byte intger ID to			*/
/* identify the radio receiver channels as WLAN	*/
/* receiver channels before accessing their		*/
/* state information.							*/
#define	WLANC_RXCH_STATE_ID				0x46FA62A7

/** Enumarated Types							**/

/* Define an enumarated type for the the modeled wireless LAN frame		*/
/* types. Assign an hexadecimal value to represent the 2-bit type and	*/
/* 4-bit subtype information as specified in section 7.1.3.1.2 of IEEE	*/
/* 802.11 standard. Use the last two bits of the first 4 bits for type,	*/
/* and last 4 bits for subtype information (i.e., use the bit order/	*/
/* values "0 0 b3 b2 b7 b6 b5 b4" for the hexadecimal number, where 	*/
/* b2,...,b7 are the bit values listed in section 7.1.3.1.2).			*/
typedef enum WlanT_Mac_Frame_Type
	{
	WlanC_Beac		= 0x08, /* Beacon management frame					 */
	WlanC_Rts 	 	= 0x1B, /* RTS code set into the RTS control frame	 */
    WlanC_Cts  		= 0x1C, /* CTS code set into the CTS control frame	 */
	WlanC_Ack  		= 0x1D, /* ACK code set into the ACK control frame	 */
	WlanC_Cf_End 	= 0x1E,	/* Frame indicates the end of CFP during PCF */
	WlanC_Cf_End_A 	= 0x1F, /* A CFP end frame with a piggybacked ACK	 */
 	WlanC_Data 		= 0x20, /* Data code set into the Data frame      	 */
	WlanC_Data_Ack	= 0x21,	/* A data frame with a pigbacked ACK sent in */
							/* CFP										 */
	WlanC_Data_Poll	= 0x22, /* Send data from AP when the addressed STA	 */
							/* is permitted to transmit during the PCF   */
	WlanC_Data_A_P	= 0x23, /* Data + CF-Ack + CF-Poll frame			 */
	WlanC_Data_Null	= 0x24,	/* If the station has been polled and no ACK */
							/* or data pending to be sent, Data_Null	 */
							/* will be transmitted						 */
	WlanC_Cf_Ack 	= 0x25,	/* If a pending ACK needs to be transmitted	 */
	WlanC_Cf_Poll 	= 0x26,	/* CFP poll frame							 */
	WlanC_Cf_A_P 	= 0x27,	/* CF-Ack + CF-Poll (no data) frame			 */
	WlanC_BB 	    = 0x28,	/* Tipo A馻dido BB				             */
	WlanC_Req 	    = 0x29,
	WlanC_None 		= 0xFF  /* Special value for unset frame type info	 */
	} WlanT_Mac_Frame_Type;

/* Defining codes for the physical layer characteristics type.			*/
typedef enum WlanT_Phy_Char_Code
	{
	WlanC_Frequency_Hopping,			
	WlanC_Direct_Sequence,				
	WlanC_Infra_Red,
	WlanC_OFDM_11a,
	WlanC_ERP_OFDM_11g
	} WlanT_Phy_Char_Code;

/* Physical layer technology types based on the corresponding standard.	*/
typedef enum WlanT_Phy_Type
	{
	WlanC_11a_PHY,
	WlanC_11b_PHY,
	WlanC_11g_PHY
	} WlanT_Phy_Type;

/* Multiple scan types are available for roaming.						*/
typedef enum
	{
	WlanC_Scan_Type_Beacon,
	WlanC_Scan_Type_Distance
	} WlanC_Scan_Type;


/** Structure Definitions							**/

/* Data structure used within WLAN Header field of	*/
/* the WLAN Data packets.							*/ 
typedef struct
    {
	int			more_frag;
	int			retry;
	int			order;
	int			tods;
	int			fromds;
	double		duration;  			/* Duration for which the channel is contended for. Network		*/
						   			/* Allocation Vector per the IEEE802.11 standard.				*/
	int			address1; 			/* Destination Address of the final recipient(s) of the frame.	*/
	int			address2; 			/* Source Address from where the frame is originated.			*/
	int			address3; 			/* Receiver Address that identifies the immediated receipient	*/
						   			/* station(s) address.											*/
	int			fragment_number;	/* Sequence control field which contains fragment number		*/
	int			sequence_number; 	/* Sequence contorl field which contains sequence number		*/
	int			address4; 			/* Transmitter Address of the station that has last transmitted	*/
									/* the frame.													*/

	int			more_data;			/*If set, indicates STA has additional packets to send */
									/* Currently only implemented for PCF*/
    } WlanT_Data_Header_Fields;


/* Estructura para el REQ	*/

typedef struct
    {
	int			more_frag;
	int			retry;
	int			order;
	int			tods;
	int			fromds;
	double		duration;  			/* Duration for which the channel is contended for. Network		*/
						   			/* Allocation Vector per the IEEE802.11 standard.				*/
	int			rx_addr; 			/* Destination Address of the final recipient(s) of the frame.	*/
	int			tx_addr; 			/* Source Address from where the frame is originated.			*/
	int         P;                  
	int         Lm;
	int         lm;
	int         Nm;
	int         flagm;
	
    } WlanT_Req_Header_Fields;

/* Data structure for header fields of the			*/  
/* wireless_lan control (Rts, Cts, Ack) packet. 	*/
typedef struct
    {
	int			more_frag;
	int			retry;
	int			order;
	int			tods;
	int			fromds;
	double		duration;  			/* Duration for which the channel is contended for. Network		*/
						   			/* Allocation Vector per the IEEE802.11 standard.				*/
	int			rx_addr; 			/* Destination Address of the final recipient(s) of the frame.	*/
	int			tx_addr; 			/* Source Address from where the frame is originated.			*/
    } WlanT_Control_Header_Fields;

/* For PCF support, Contention Free Paramaters		*/
/* structure.										*/
typedef struct
	{
	double		cfp_count;			/* Indicates the number of beacon frames remaining till the		*/
									/* next CFP.													*/
									/* If this value is set to 0, indicates the start of CFP.		*/
	int			cfp_period;			/* Number of beacons to be sent between the CFPs.				*/
	double		cfp_maxduration;	/* Maximum allowed length of CFP in seconds. 					*/
	double		cfp_durremaining;	/* Time in seconds remaining in the current CFP period.			*/
	} WlanT_CF_Parameters;

/* Beacon body structure.							*/
typedef struct
	{
	double 				timestamp;			/* Actual tx time of the beacon frames in seconds.		*/
	double				beacon_intv;		/* Time interval between target beacon transmit times.	*/
	WlanT_CF_Parameters	cf_par;				/* PCF Parameters.										*/
	Boolean				non_erp_present;	/* "Non ERP Present" field of ERP information element	*/
											/* specified in 802.11g standard.						*/
	} WlanT_Beacon_Body_Fields;

/* Record to store information related to roaming.	*/
typedef struct 
	{
	PrgT_Mutex*		roam_info_mutex;/* Mutex to serialize accessing the roam state information		*/
									/* between the MAC and the power pipeline stage.				*/
	Boolean			enable_roaming;	/* Roaming may be disabled based on this flag.					*/
	Boolean 		scan_mode;		/* Mode that indicates that the STA is scanning for a new AP .	*/
									/* The STA will switch channels, stop transmitting until a new	*/
									/* AP is found.													*/
	WlanC_Scan_Type	scan_type;		/* We can either use beacon reception or distance to find the	*/
									/* best AP to connect to.										*/
	int				current_bss_id;	/* BSS ID for scanning purpose. 								*/
	Objid			last_accepted_ap_ch_objid;	
	double 			ap_reliability; /* Indicator that stores the reliability of the current AP.		*/	
	double			lat;			/* Position cached for distance based roaming. 					*/
	double  		lon;
	double  		alt;
	} WlanT_Roam_State_Info; 


/* Receiver channel state information.				*/
typedef struct
	{
	int						state_info_id;		/* Number to identify WLAN rx channel state info.	*/
	Objid					mac_strm_objid;		/* Obj ID of the packet stream from receiver to	MAC.*/
	WlanT_Phy_Type			phy_tech;			/* WLAN Standard/PHY tech that receiver supports.	*/
	WlanT_Roam_State_Info*	roaming_info_ptr;	/* Roaming relarted information.					*/
	double					rx_power_thresh;	/* Power threshold for accepting received frames.	*/
	double					rx_end_time;		/* Reception end time of the last received frame.	*/
	
	/* Variables used in congestion areas analysis. */
    double                          data_rate;
	char *			                port_name_ptr;
	char *			                node_name_ptr;
	Boolean                         congestion_area;
	OmsT_Bgutil_Routed_State*		routed_bgutil_state_ptr;
	
	} WlanT_Rx_State_Info;


/** Function Prototypes				**/
WlanT_Data_Header_Fields*		wlan_mac_pk_dhstruct_create (void); 
WlanT_Control_Header_Fields*	wlan_mac_pk_chstruct_create (void);
WlanT_Req_Header_Fields*	    wlan_mac_pk_rhstruct_create (void);

WlanT_Data_Header_Fields*		wlan_mac_pk_dhstruct_copy (WlanT_Data_Header_Fields* pk_dh_ptr); 
WlanT_Control_Header_Fields*	wlan_mac_pk_chstruct_copy (WlanT_Control_Header_Fields* pk_ch_ptr);
WlanT_Req_Header_Fields*	    wlan_mac_pk_rhstruct_copy (WlanT_Req_Header_Fields* pk_rh_ptr);

void  							wlan_mac_pk_dhstruct_destroy (WlanT_Data_Header_Fields* pk_ffstruct_ptr); 
void  							wlan_mac_pk_chstruct_destroy (WlanT_Control_Header_Fields* pk_sfstruct_ptr);
void  							wlan_mac_pk_rhstruct_destroy (WlanT_Req_Header_Fields* pk_sfstruct_ptr);

void 							wlan_mac_pk_data_header_pkprint (void* pk_dh_ptr, PrgT_List* output_list);
void 							wlan_mac_pk_control_header_pkprint (void* pk_ch_ptr, PrgT_List* output_list);
void 							wlan_mac_pk_req_header_pkprint (void* pk_rh_ptr, PrgT_List* output_list);


WlanT_Beacon_Body_Fields*		wlan_mac_pk_bbstruct_create (void);
WlanT_Beacon_Body_Fields*		wlan_mac_pk_bbstruct_copy (WlanT_Beacon_Body_Fields* pk_bb_ptr);
void 							wlan_mac_pk_bbstruct_destroy (WlanT_Beacon_Body_Fields* pk_bbstruct_ptr);
void 							wlan_mac_pk_beacon_body_pkprint (void* pk_bb_ptr, Prg_List* output_list);
void 							wlan_ap_reliability_eval (Packet *beacon_pkptr, int accepted, WlanT_Roam_State_Info*);

#if defined (__cplusplus)
} /* end of 'extern "C" {' */
#endif

/* End if for protection against multiple includes. */
#endif /* _WLAN_SUPPORT_H_INCLUDED_ */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品一区二区三| 亚洲成人久久影院| 亚洲另类中文字| 日韩制服丝袜av| 国产成人午夜视频| 欧美一区二区播放| 亚洲婷婷在线视频| 韩国理伦片一区二区三区在线播放 | 中文一区二区在线观看| 亚洲曰韩产成在线| 国产suv精品一区二区883| 欧美日韩在线直播| 亚洲精品日韩综合观看成人91| 久久精品国产亚洲a| 欧美老肥妇做.爰bbww视频| 国产精品久久久久久久久免费相片| 美女在线一区二区| 欧美日本在线播放| 亚洲国产一区二区a毛片| 99免费精品视频| 国产日韩精品一区二区三区| 九九国产精品视频| 欧美一区三区二区| 日韩精品欧美精品| 欧美美女直播网站| 日韩一区欧美二区| 欧美日本一区二区三区四区 | 久久久久久久久伊人| 日韩不卡一二三区| 欧美日韩精品欧美日韩精品一 | 欧美亚洲国产一区二区三区va| 国产精品欧美久久久久无广告| 国产999精品久久| 国产喂奶挤奶一区二区三区| 福利电影一区二区| 欧美国产1区2区| a在线欧美一区| 亚洲激情图片小说视频| 色综合久久天天综合网| 一区二区三区四区国产精品| 欧美亚洲国产一区在线观看网站| 亚洲一区二区美女| 欧美精品乱人伦久久久久久| 日韩精彩视频在线观看| 日韩精品资源二区在线| 久久精品理论片| 国产日韩三级在线| 99视频国产精品| 亚洲五码中文字幕| 日韩一级免费一区| 国产伦理精品不卡| 国产精品国产三级国产| 91久久精品国产91性色tv| 亚洲国产乱码最新视频| 欧美一区二区在线播放| 国内外成人在线| 国产精品国产三级国产普通话99| 色综合久久88色综合天天| 亚洲成人自拍网| 久久综合色8888| 91蜜桃在线观看| 日韩av一区二区三区| 久久久久久一二三区| 99久久精品免费看| 日韩黄色一级片| 久久精品日韩一区二区三区| 色综合天天综合狠狠| 日韩电影免费在线| 1024成人网| 欧美一区二区三区婷婷月色 | 国产一区在线观看视频| 国产精品久久久久久久岛一牛影视| 色老综合老女人久久久| 精品一区二区三区久久| 亚洲丝袜自拍清纯另类| 日韩美一区二区三区| 色素色在线综合| 国精产品一区一区三区mba桃花 | 国产精品每日更新在线播放网址 | 亚洲123区在线观看| 精品99一区二区| 欧美在线观看视频一区二区三区 | 日本亚洲一区二区| 国产精品成人网| 欧美xxxxx牲另类人与| 91国产视频在线观看| 国产aⅴ综合色| 免费精品99久久国产综合精品| 成人欧美一区二区三区小说| 久久亚洲一区二区三区明星换脸| 欧美日韩成人综合天天影院| 成人免费视频caoporn| 九九**精品视频免费播放| 亚洲第一福利一区| 亚洲少妇最新在线视频| 国产午夜精品一区二区三区四区| 91精品国产综合久久香蕉麻豆| 91丨九色丨蝌蚪丨老版| 成人av在线看| 国产成人激情av| 精品亚洲国产成人av制服丝袜| 亚洲成人动漫一区| 亚洲欧美另类小说| 18成人在线观看| 中文字幕视频一区| 国产日韩欧美精品一区| 久久综合色综合88| 久久综合九色综合97婷婷女人| 91麻豆精品国产综合久久久久久| 欧美中文一区二区三区| 日本道色综合久久| 色欧美片视频在线观看在线视频| 成人精品视频一区二区三区 | 另类综合日韩欧美亚洲| 丝瓜av网站精品一区二区| 性久久久久久久久久久久| 一区二区激情小说| 一区二区三区在线播| 亚洲狼人国产精品| 亚洲精品中文字幕乱码三区 | 欧美经典三级视频一区二区三区| 精品人伦一区二区色婷婷| 26uuu久久天堂性欧美| 久久久国产综合精品女国产盗摄| 国产视频视频一区| 国产精品第五页| 亚洲国产精品久久人人爱| 午夜av一区二区| 喷水一区二区三区| 韩国av一区二区三区| 懂色中文一区二区在线播放| 不卡一区二区中文字幕| 日本韩国一区二区三区视频| 欧美日韩一级视频| 日韩精品一区二区三区中文不卡 | 91精品国产麻豆| 精品av综合导航| 亚洲色图欧美激情| 五月天婷婷综合| 精品一二三四区| 成人一级片网址| 欧美在线free| 日韩精品一区二区三区中文精品 | 久久久久久久久久久久久久久99 | 99精品在线观看视频| 在线观看免费成人| 精品欧美久久久| 一区精品在线播放| 婷婷久久综合九色国产成人| 国产精品系列在线观看| 在线中文字幕不卡| 久久这里只有精品首页| 亚洲卡通欧美制服中文| 秋霞国产午夜精品免费视频| 国产91精品露脸国语对白| 欧美电影一区二区| 国产欧美日韩三级| 日本最新不卡在线| 99久久婷婷国产综合精品| 91精品国产美女浴室洗澡无遮挡| 国产欧美一区二区精品婷婷| 天天亚洲美女在线视频| 成人免费观看男女羞羞视频| 56国语精品自产拍在线观看| 中文字幕欧美日韩一区| 亚洲图片欧美综合| 国产精品综合一区二区三区| 在线播放欧美女士性生活| 亚洲日本在线天堂| 精品一区二区三区日韩| 欧美视频完全免费看| 亚洲欧洲精品一区二区三区 | 久久久精品综合| 亚洲一区二区三区美女| 成人激情小说乱人伦| 日韩午夜在线观看| 亚洲高清免费一级二级三级| 99久久综合国产精品| 精品久久久久久亚洲综合网| 亚洲国产人成综合网站| 91亚洲永久精品| 久久亚洲欧美国产精品乐播| 日韩综合小视频| 欧美吞精做爰啪啪高潮| 成人欧美一区二区三区白人 | 欧美一区二区在线视频| 亚洲视频狠狠干| caoporen国产精品视频| 日本一区二区成人| 激情小说欧美图片| 欧美一区二区性放荡片| 无码av中文一区二区三区桃花岛| 欧美在线视频全部完| 一区二区三区在线视频观看58| 成人精品视频一区二区三区尤物| 久久免费精品国产久精品久久久久| 看片网站欧美日韩| 91精品国产高清一区二区三区| 日韩av中文字幕一区二区三区| 69久久99精品久久久久婷婷|