⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wlan_support.h

📁 在OPNET中实现AODV路由协议
💻 H
字号:
/** wlan_support.h				**//****************************************//*      Copyright (c) 1987 - 1999		*//*            by MIL 3, Inc.           	*//*       (A Delaware Corporation)      	*//*    3400 International Drive, N.W.   	*//*       Washington, D.C., 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> /* ACK and CTS packet length	*/ #define WLAN_ACK_LENGTH				96 #define WLAN_ACK_DURATION			0.000096 #define WLAN_CTS_LENGTH				96#define WLAN_CTS_DURATION			0.000096 #define WLAN_RTS_LENGTH				144#define WLAN_MAN_DATA_RATE			1000000/* Maximum tuple (or duplicate) buffer size (in packets)	*/ #define WLAN_TUPLE_SIZE					100/* maximum data octets in MAC service data unit */ /* received from higher layer.					*/ #define WLAN_MAXMSDU_LENGTH				18496  typedef enum WlanT_Mac_Frame_Type	{	WlanC_Rts  = 0x6C, /* Rts code set into the Rts control frame */    WlanC_Cts  = 0x70, /* Cts code set into the Cts control frame */	WlanC_Ack  = 0x74, /* Ack code set into the Ack control frame */ 	WlanC_Data = 0x80, /* Data code set into the Data frame       */	WlanC_None = 0x00  /* None type 							  */	} WlanT_Mac_Frame_Type; /* Air propagation time taken for frame transmission */ /* in sec											  */ #define WLAN_AIR_PROPAGATION_TIME        0.000001 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.													*/    } WlanT_Data_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;/*			Function Prototypes				*/WlanT_Data_Header_Fields*		wlan_mac_pk_dhstruct_create (void); WlanT_Control_Header_Fields*	wlan_mac_pk_chstruct_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);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_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  aodv_wlan_pk_print(Packet* wlan_rcvd_frame_ptr);/*  Variables defined for Pooled Memeory allocation.        */ /* End if for protection against multiple includes. */#endif /* _WLAN_SUPPORT_H_INCLUDED_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -