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

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

?? wlan_support.ex.c

?? 感知無線電有關仿真
?? C
字號:
/** wlan_support.ex.c				**//****************************************//*      Copyright (c) 1987 - 1998		*//*            by MIL 3, Inc.           	*//*       (A Delaware Corporation)      	*//*    3400 International Drive, N.W.   	*//*       Washington, D.C., U.S.A.      	*//*       All Rights Reserved.          	*//****************************************//** Include directives.							**/#include <opnet.h>#include <string.h>#include "wlan_support.h"/*  Variables defined for Pooled Memeory allocation.        */static Boolean          pk_dhstruct_pmo_defined = OPC_FALSE; static Pmohandle        wlan_pk_dhstruct_pmh;static Boolean          pk_chstruct_pmo_defined = OPC_FALSE; static Pmohandle        wlan_pk_chstruct_pmh;/* Macro definition for string handling.                            */#define PKPRINT_STRING_INSERT(str, contents, list)                              \	{                                                                           \	str = (char*) op_prg_mem_alloc ((strlen (contents) + 1) * sizeof (char));   \	strcpy (str, contents);                                                     \	op_prg_list_insert (list, str, OPC_LISTPOS_TAIL);                           \	}WlanT_Data_Header_Fields*wlan_mac_pk_dhstruct_create ()    {    WlanT_Data_Header_Fields*          pk_dhstruct_ptr;        /**  Allocate memory for packet field structure and initialize   **/    /**  all components of the data structure. "Pooled" memory is    **/    /**  used to allocate wlan packet fields data structure          **/    /**  allocation block since they are frequently created          **/    /**  and destroyed.                                              **/    FIN (wlan_mac_pk_dhstruct_create ());    /*  If the pooled memory object has not yet been defined, do    */    /*  so now, prior to allocation.                                */    if (pk_dhstruct_pmo_defined == OPC_FALSE)        {        /* Prevent redundant definition.                    */        pk_dhstruct_pmo_defined = OPC_TRUE;        wlan_pk_dhstruct_pmh = op_prg_pmo_define ("wlan packet Data headers fields", sizeof (WlanT_Data_Header_Fields), 1);		/* Initialize the print procedure for the structures.       */		op_pk_format_print_proc_set ("wlan_mac", "Wlan Header", wlan_mac_pk_data_header_pkprint);		        }    pk_dhstruct_ptr = (WlanT_Data_Header_Fields *) op_prg_pmo_alloc (wlan_pk_dhstruct_pmh); 	if (pk_dhstruct_ptr == OPC_NIL)		 {		 op_sim_end ("Error in wlan support code:",					 "Unable to allocate memory for wlan packet fields.",					 OPC_NIL, OPC_NIL);		 } 	 pk_dhstruct_ptr->more_frag = 0; 	 pk_dhstruct_ptr->retry = 0; 	 pk_dhstruct_ptr->order = 0;	 pk_dhstruct_ptr->tods = 0;	 pk_dhstruct_ptr->fromds = 0;	 pk_dhstruct_ptr->duration = 0;			/* Duration for which the channel is contended 					*/	 pk_dhstruct_ptr->address1 = 0; 		/* Destination Address of the final recipient(s) of the frame.	*/	 pk_dhstruct_ptr->address2 = 0; 		/* Source Address from where the frame is originated.			*/	 pk_dhstruct_ptr->address3 = 0; 		/* Receiver Address that identifies the immediated receipient	*/	                                        /* station(s) address.											*/	 pk_dhstruct_ptr->fragment_number = 0;	/* Sequence control field which contains fragment number		*/	 pk_dhstruct_ptr->sequence_number = 0; 	/* Sequence contorl field which contains sequence number		*/	 pk_dhstruct_ptr->address4 = 0; 		/* Transmitter Address of the station that has last transmitted	*/                                        	/* the frame.													*/	     	 FRET (pk_dhstruct_ptr);    }     WlanT_Control_Header_Fields* wlan_mac_pk_chstruct_create ()     {     WlanT_Control_Header_Fields*          pk_chstruct_ptr;          /**  Allocate memory for packet field structure and initialize   **/     /**  all components of the data structure. "Pooled" memory is    **/     /**  used to allocate wlan packet fields data structure          **/     /**  allocation block since they are frequently created          **/     /**  and destroyed.                                              **/     FIN (wlan_mac_pk_chstruct_create ());      /*  If the pooled memory object has not yet been defined, do    */     /*  so now, prior to allocation.                                */     if (pk_chstruct_pmo_defined == OPC_FALSE)         {         /* Prevent redundant definition.                    */         pk_chstruct_pmo_defined = OPC_TRUE;          wlan_pk_chstruct_pmh = op_prg_pmo_define ("wlan packet control header fields", sizeof (WlanT_Control_Header_Fields), 1); 		/* Initialize the print procedure for the structures.       */		op_pk_format_print_proc_set ("wlan_control", "Wlan Header", wlan_mac_pk_control_header_pkprint);		         }      pk_chstruct_ptr = (WlanT_Control_Header_Fields *) op_prg_pmo_alloc (wlan_pk_chstruct_pmh);  	if (pk_chstruct_ptr == OPC_NIL) 		 { 		 op_sim_end ("Error in wlan support code:", 					 "Unable to allocate memory for wlan packet fields.", 					 OPC_NIL, OPC_NIL); 		 }      /*  Initialize all fields of the packet fields data structure   */ 	 pk_chstruct_ptr->more_frag = 0; 	 pk_chstruct_ptr->retry = 0; 	 pk_chstruct_ptr->order = 0;	 pk_chstruct_ptr->tods = 0;	 pk_chstruct_ptr->fromds = 0;	 pk_chstruct_ptr->duration = 0;		/* Duration for which the channel is contended 					*/	 pk_chstruct_ptr->rx_addr = 0; 		/* Destination Address of the final recipient(s) of the frame.	*/	 pk_chstruct_ptr->tx_addr = 0; 		/* Source Address from where the frame is originated.			*/	     FRET (pk_chstruct_ptr);     }     WlanT_Data_Header_Fields*wlan_mac_pk_dhstruct_copy (WlanT_Data_Header_Fields* pk_dh_ptr)    {    WlanT_Data_Header_Fields*  copy_pk_dh_ptr;     /**  Copy the packet field structure.    **/    FIN (wlan_mac_pk_dhstruct_copy (pk_dh_ptr));     /*  Allocate memeory for packet field structure and */    /*  copy it.                                        */    copy_pk_dh_ptr = (WlanT_Data_Header_Fields *) op_prg_pmo_alloc (wlan_pk_dhstruct_pmh); 	if (copy_pk_dh_ptr == OPC_NIL)		 {		 op_sim_end ("Error in wlan support code:",					 "Unable to allocate memory for copying wlan packet fields.",					 OPC_NIL, OPC_NIL);		 } 	/* Copy frame control fields*/    op_prg_mem_copy (pk_dh_ptr, copy_pk_dh_ptr, sizeof(WlanT_Data_Header_Fields));     FRET (copy_pk_dh_ptr);    }  WlanT_Control_Header_Fields* wlan_mac_pk_chstruct_copy (WlanT_Control_Header_Fields* pk_ch_ptr)     {     WlanT_Control_Header_Fields*  copy_pk_ch_ptr;       /**  Copy the packet field structure.    **/     FIN (wlan_mac_pk_chstruct_copy (pk_ch_ptr));       /*  Allocate memeory for packet field structure and */     /*  copy it.                                        */     copy_pk_ch_ptr = (WlanT_Control_Header_Fields *) op_prg_pmo_alloc (wlan_pk_chstruct_pmh);  	if (copy_pk_ch_ptr == OPC_NIL) 		 { 		 op_sim_end ("Error in wlan support code:", 					 "Unable to allocate memory for copying wlan packet fields.", 					 OPC_NIL, OPC_NIL); 		 } 	/* Copy sequence control fields				*/     op_prg_mem_copy (pk_ch_ptr, copy_pk_ch_ptr, sizeof(WlanT_Control_Header_Fields));       FRET (copy_pk_ch_ptr);     }   voidwlan_mac_pk_dhstruct_destroy (WlanT_Data_Header_Fields* pk_dhstruct_ptr)    {    /**  Deallocate the packet structure memory.     **/    FIN (wlan_mac_pk_dhstruct_destroy (pk_dhstruct_ptr));     	/* Destroy frame control field structure         */    op_prg_mem_free (pk_dhstruct_ptr);        FOUT;    }  void wlan_mac_pk_chstruct_destroy (WlanT_Control_Header_Fields* pk_chstruct_ptr)     {     /*  Deallocate the packet structure memory.     */     FIN (wlan_mac_pk_chstruct_destroy (pk_chstruct_ptr)); 	 	/* Destroy frame control field structure         */         op_prg_mem_free (pk_chstruct_ptr);          FOUT;     } 							 voidwlan_mac_pk_data_header_pkprint (void* structure_ptr, PrgT_List* output_list)	{	char		temp_str[128];	char*		alloc_str;	WlanT_Data_Header_Fields* pk_dh_ptr;	/** Called as part of a packet print, this procedure will	**/	/** place the contents of the "fields" structure into a		**/	/** printed list.											**/	FIN (wlan_mac_pk_data_header_pkprint (structure_ptr, output_list));    pk_dh_ptr = (WlanT_Data_Header_Fields *) structure_ptr;	sprintf(temp_str, "      more_frag           int         %-16d(1)", pk_dh_ptr->more_frag);	PKPRINT_STRING_INSERT (alloc_str, temp_str, output_list)	sprintf(temp_str, "      retry               int         %-16d(1)", pk_dh_ptr->retry);	PKPRINT_STRING_INSERT (alloc_str, temp_str, output_list)	sprintf(temp_str, "      order               int         %-16d(1)", pk_dh_ptr->order);	PKPRINT_STRING_INSERT (alloc_str, temp_str, output_list)	sprintf(temp_str, "      tods               int         %-16d(1)", pk_dh_ptr->tods);	PKPRINT_STRING_INSERT (alloc_str, temp_str, output_list)	sprintf(temp_str, "      fromds               int         %-16d(1)", pk_dh_ptr->fromds);	PKPRINT_STRING_INSERT (alloc_str, temp_str, output_list)	sprintf(temp_str, "      duration            double         %-16.6f(16)", pk_dh_ptr->duration);	PKPRINT_STRING_INSERT (alloc_str, temp_str, output_list)	sprintf(temp_str, "      address1            int         %-16d(48)", pk_dh_ptr->address1);	PKPRINT_STRING_INSERT (alloc_str, temp_str, output_list)	sprintf(temp_str, "      address2            int       %-16d(48)", pk_dh_ptr->address2);	PKPRINT_STRING_INSERT (alloc_str, temp_str, output_list)	sprintf(temp_str, "      address3            int       %-16d(48)", pk_dh_ptr->address3);		PKPRINT_STRING_INSERT (alloc_str, temp_str, output_list)	sprintf(temp_str, "      fragment_number     int       %-16d(32)", pk_dh_ptr->fragment_number);		PKPRINT_STRING_INSERT (alloc_str, temp_str, output_list)	sprintf(temp_str, "      sequence_number     int       %-16d(96)", pk_dh_ptr->sequence_number);		PKPRINT_STRING_INSERT (alloc_str, temp_str, output_list)	sprintf(temp_str, "      address4            int       %-16d(48)", pk_dh_ptr->address4);		PKPRINT_STRING_INSERT (alloc_str, temp_str, output_list)					FOUT;	}voidwlan_mac_pk_control_header_pkprint (void* structure_ptr, PrgT_List* output_list)	{	char		temp_str[128];	char*		alloc_str;	WlanT_Control_Header_Fields* pk_ch_ptr;	/** Called as part of a packet print, this procedure will	**/	/** place the contents of the "fields" structure into a		**/	/** printed list.											**/	FIN (wlan_mac_pk_control_header_pkprint (structure_ptr, output_list));	pk_ch_ptr = (WlanT_Control_Header_Fields* ) structure_ptr;	sprintf(temp_str, "      more_frag           int         %-16d(1)", pk_ch_ptr->more_frag);	PKPRINT_STRING_INSERT (alloc_str, temp_str, output_list)	sprintf(temp_str, "      retry               int         %-16d(1)", pk_ch_ptr->retry);	PKPRINT_STRING_INSERT (alloc_str, temp_str, output_list)	sprintf(temp_str, "      order               int         %-16d(1)", pk_ch_ptr->order);	PKPRINT_STRING_INSERT (alloc_str, temp_str, output_list)	sprintf(temp_str, "      duration            double         %-16.6f(16)", pk_ch_ptr->duration);	PKPRINT_STRING_INSERT (alloc_str, temp_str, output_list)	sprintf(temp_str, "     rx_addr              int         %-16d(48)", pk_ch_ptr->rx_addr);	PKPRINT_STRING_INSERT (alloc_str, temp_str, output_list)	sprintf(temp_str, "      tx_addr             int       %-16d(48)", pk_ch_ptr->tx_addr);	PKPRINT_STRING_INSERT (alloc_str, temp_str, output_list)			FOUT;	}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品国产综合久久蜜臀| 亚洲国产人成综合网站| 亚洲自拍偷拍麻豆| 精一区二区三区| 欧美亚洲图片小说| 最新中文字幕一区二区三区 | 在线91免费看| 成人免费视频在线观看| 激情小说欧美图片| 欧美精品777| 一二三四社区欧美黄| 高清不卡在线观看av| 日韩精品资源二区在线| 视频一区在线视频| 欧美亚洲丝袜传媒另类| 亚洲精品日产精品乱码不卡| 国产aⅴ综合色| 精品国产三级电影在线观看| 日本女人一区二区三区| 欧美日韩高清一区二区| 亚洲人成网站精品片在线观看| 国产成人超碰人人澡人人澡| 日韩视频一区二区三区在线播放| 亚洲午夜在线电影| 在线观看国产精品网站| 一区二区三区四区视频精品免费 | 国产一区二区三区| 欧美成人aa大片| 日本欧美肥老太交大片| 日韩午夜电影av| 免费在线观看一区| 精品奇米国产一区二区三区| 久久国产视频网| 精品sm在线观看| 狠狠色综合色综合网络| 国产色产综合产在线视频| 国产精品乡下勾搭老头1| 国产亚洲欧美一级| 国产91丝袜在线观看| 国产精品视频第一区| 99视频精品全部免费在线| 亚洲欧洲日本在线| 欧美体内she精视频| 亚洲777理论| 日韩一级片网站| 精品午夜一区二区三区在线观看| 精品99一区二区三区| 国产成人在线视频网址| 国产精品久久久久久久久晋中 | 国产精品久久久久7777按摩| av激情成人网| 亚洲午夜久久久久久久久电影院| 欧美美女直播网站| 国产伦精一区二区三区| 亚洲天堂av一区| 欧美视频在线播放| 精品一区免费av| 亚洲欧美综合另类在线卡通| 欧美亚洲一区二区三区四区| 久久99精品视频| 亚洲人成7777| 欧美不卡一二三| 99re6这里只有精品视频在线观看| 一区二区三区电影在线播| 欧美一区二区三区喷汁尤物| 国产精品一区一区| 亚洲激情图片qvod| 久久亚洲综合av| 欧美色综合久久| 国产精品自产自拍| 亚洲国产欧美另类丝袜| 久久久久久久综合日本| 在线看日韩精品电影| 国产精品一区一区三区| 亚洲一区二区三区爽爽爽爽爽 | 一区二区国产盗摄色噜噜| 欧美成va人片在线观看| 在线精品视频免费播放| 久久国产精品99久久久久久老狼| 中文字幕av不卡| 777色狠狠一区二区三区| www.一区二区| 麻豆一区二区三| 一区二区三区影院| 国产精品女主播在线观看| 在线播放中文一区| 一本一道波多野结衣一区二区| 国产一区二区三区在线观看免费视频| 亚洲精品国产品国语在线app| 久久午夜老司机| 91精品国产综合久久精品性色| 99国产精品99久久久久久| 国产一区啦啦啦在线观看| 午夜久久电影网| 尤物av一区二区| 国产精品高潮呻吟久久| 国产亚洲精品超碰| 欧美大片日本大片免费观看| 欧美老年两性高潮| 在线免费不卡电影| 色哟哟亚洲精品| 99精品国产热久久91蜜凸| 国产高清在线精品| 国产伦理精品不卡| 国产高清亚洲一区| 国产福利电影一区二区三区| 国产一区二区成人久久免费影院| 婷婷中文字幕一区三区| 亚洲成人在线网站| 婷婷综合另类小说色区| 婷婷国产v国产偷v亚洲高清| 亚洲国产日韩一级| 午夜精品久久久久久久99水蜜桃| 亚洲综合激情网| 亚洲国产一区视频| 亚洲国产视频在线| 日韩中文字幕不卡| 日韩电影在线免费看| 日日骚欧美日韩| 日本不卡一区二区三区| 日产精品久久久久久久性色| 日本亚洲电影天堂| 免费成人美女在线观看.| 青青草精品视频| 美女精品一区二区| 国产很黄免费观看久久| 99国产精品久久| 91论坛在线播放| 色婷婷久久久久swag精品| 欧美视频在线播放| 欧美成人国产一区二区| 亚洲国产精品黑人久久久| 中文字幕一区二区视频| 一区二区三区日韩在线观看| 午夜精品久久一牛影视| 久久国产生活片100| av成人动漫在线观看| 欧美在线一区二区三区| 日韩视频一区二区三区| 国产日韩欧美在线一区| 国产精品超碰97尤物18| 亚洲午夜一区二区| 久久66热re国产| 91丨porny丨首页| 91精品免费观看| 亚洲国产精品黑人久久久| 一级女性全黄久久生活片免费| 日韩**一区毛片| av电影一区二区| 欧美一区二区三区在| 国产喷白浆一区二区三区| 亚洲猫色日本管| 久久福利资源站| 91久久线看在观草草青青| 日韩免费看网站| 亚洲欧美日韩国产综合| 麻豆精品视频在线观看| av一二三不卡影片| 日韩一级视频免费观看在线| 亚洲欧美综合网| 久久er99精品| 欧美午夜一区二区三区| 久久久不卡影院| 天天av天天翘天天综合网| 国产成人aaa| 日韩三级高清在线| 亚洲午夜电影网| www.欧美色图| 久久欧美一区二区| 日韩在线一二三区| 色婷婷av久久久久久久| 久久久久国产精品麻豆ai换脸 | 一区二区三区国产精品| 国产精品中文字幕日韩精品| 欧美日韩国产影片| 一区二区三区影院| 成人黄色在线视频| 国产欧美一区二区三区网站| 久久国产精品色婷婷| 欧美另类一区二区三区| 亚洲综合网站在线观看| gogogo免费视频观看亚洲一| 337p粉嫩大胆噜噜噜噜噜91av| 五月激情六月综合| 欧美视频中文字幕| 亚洲午夜久久久| 日本高清不卡在线观看| 亚洲欧洲99久久| av资源网一区| 国产精品伦理在线| 成人av网站在线观看| 国产欧美一区二区三区在线老狼| 久久国产日韩欧美精品| 欧美va在线播放| 久久精品国产亚洲5555| 精品卡一卡二卡三卡四在线| 美脚の诱脚舐め脚责91| 日韩欧美中文字幕公布| 久久精品国产在热久久| 精品国产免费人成电影在线观看四季|