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

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

?? sl_aloha_ip.pr.c

?? 網絡仿真軟件OPNET ALOHA協議模型的文件
?? C
?? 第 1 頁 / 共 2 頁
字號:
				op_ima_obj_attr_get (strm_objid, "dest stream", &rx_in_strm); 
				
				/* Obtain the model attribute to determine if this mac */
				/* resides under an IP gateway or not.  This is a workaround */
				/* in order to not make modifications to aloha to include */
				/* mac addresses. */
				op_ima_obj_attr_get (mod_objid, "Node Type", &node_type);
				
				/* Schedule a self interrupt. */
				op_intrpt_schedule_self (op_sim_time (), 0);
				}


			/** blocking after enter executives of unforced state. **/
			FSM_EXIT (9,sl_aloha_ip)


			/** state (init) exit executives **/
			FSM_STATE_EXIT_UNFORCED (4, state4_exit_exec, "init", "sl_aloha_ip () [init exit execs]")
				{
				}


			/** state (init) transition processing **/
			FSM_TRANSIT_FORCE (5, state5_enter_exec, ;)
				/*---------------------------------------------------------*/



			/** state (wait0) enter executives **/
			FSM_STATE_ENTER_UNFORCED (5, state5_enter_exec, "wait0", "sl_aloha_ip () [wait0 enter execs]")
				{
				/* Schedule a self interrupt. */
				op_intrpt_schedule_self (op_sim_time (), 0);
				}


			/** blocking after enter executives of unforced state. **/
			FSM_EXIT (11,sl_aloha_ip)


			/** state (wait0) exit executives **/
			FSM_STATE_EXIT_UNFORCED (5, state5_exit_exec, "wait0", "sl_aloha_ip () [wait0 exit execs]")
				{
				}


			/** state (wait0) transition processing **/
			FSM_TRANSIT_FORCE (6, state6_enter_exec, ;)
				/*---------------------------------------------------------*/



			/** state (wait1) enter executives **/
			FSM_STATE_ENTER_UNFORCED (6, state6_enter_exec, "wait1", "sl_aloha_ip () [wait1 enter execs]")
				{
				/* Schedule a self interrupt. */
				op_intrpt_schedule_self (op_sim_time (), 0);
				}


			/** blocking after enter executives of unforced state. **/
			FSM_EXIT (13,sl_aloha_ip)


			/** state (wait1) exit executives **/
			FSM_STATE_EXIT_UNFORCED (6, state6_exit_exec, "wait1", "sl_aloha_ip () [wait1 exit execs]")
				{
				/* 	Obtain the IP interface information for the local 	*/
				/*	ip process from the model-wide registry. 			*/
				proc_record_handle_list_ptr = op_prg_list_create ();
				
				oms_pr_process_discover (OPC_OBJID_INVALID, proc_record_handle_list_ptr, 
					"protocol", 	OMSC_PR_STRING,		"ip", 
					"node objid",	OMSC_PR_OBJID,		node_objid,
					OPC_NIL);
				
				record_handle_list_size = op_prg_list_size (proc_record_handle_list_ptr);
				if (record_handle_list_size != 1)
					{
					/* 	An error should be created if there are more 	*/
					/*	than one ip process in the local node, or		*/
					/*	if no match is found. 							*/
					op_sim_end ("Error: either zero or several ip processes found in the local node", "", "", "");
					}
				else
					{
					/*	Obtain a handle on the process record.			*/
					process_record_handle = (OmsT_Pr_Handle) op_prg_list_access (proc_record_handle_list_ptr, OPC_LISTPOS_HEAD);
				
					/* Obtain a pointer to the ip interface table. 		*/
					oms_pr_attr_get (process_record_handle, "interface information", OMSC_PR_ADDRESS, &ip_info_ptr);
				
					/* Obtain the module objid for the IP module. 		*/
					oms_pr_attr_get (process_record_handle, "module objid", OMSC_PR_OBJID, &ip_module_objid);
					}
				
				/* 	Deallocate no longer needed process registry 		*/
				/*	information. 										*/
				while (op_prg_list_size (proc_record_handle_list_ptr))
					op_prg_list_remove (proc_record_handle_list_ptr, OPC_LISTPOS_HEAD);
				op_prg_mem_free (proc_record_handle_list_ptr);
				
				/* 	Determine the output stream number from the IP 		*/
				/*	module to the ALOHA module. 						*/
				if (oms_tan_neighbor_streams_find (ip_module_objid, mod_objid, &instrm, &outstrm) == OPC_COMPCODE_FAILURE)
					{
					op_sim_end ("Error: the IP and ALOHA module are not connected at all", "", "", "");
					}
				
				/* 	Look for the local IP net and node numbers 			*/
				/*	corresponding to the above port number. 			*/
				ip_iface_table_size = op_prg_list_size (ip_info_ptr->ip_iface_table_ptr);
				
				/* Obtain the IP address for this interface.            */
				for (i=0; i < ip_iface_table_size; i++)
					{
					ip_iface_elem_ptr = (IpT_Interface_Info*) op_prg_list_access (ip_info_ptr->ip_iface_table_ptr, i);
					
					if (ip_iface_elem_ptr->port_num == outstrm)
						{
						ip_address = ip_iface_elem_ptr->addr_range_ptr->address;
						ip_addrs_found = OPC_TRUE;
							
						break;
						}
					else
						{
						ip_addrs_found = OPC_FALSE;
						}
					}
				
				/* 	Determine the output stream number from the ALOHA	*/
				/*	module to the IP module. 							*/
				if (oms_tan_neighbor_streams_find (mod_objid, ip_module_objid, &ip_in_strm, &ip_out_strm) == OPC_COMPCODE_FAILURE)
					{
					op_sim_end ("Error: the ALOHA and IP modules are not connected at all", "", "", "");
					}
				}


			/** state (wait1) transition processing **/
			FSM_TRANSIT_FORCE (0, state0_enter_exec, ;)
				/*---------------------------------------------------------*/



			}


		FSM_EXIT (4,sl_aloha_ip)
		}
	}

#if defined (__cplusplus)
	extern "C" { 
#endif
	extern VosT_Fun_Status Vos_Catmem_Register (const char * , int , VosT_Void_Null_Proc, VosT_Address *);
	extern VosT_Address Vos_Catmem_Alloc (VosT_Address, size_t);
	extern VosT_Fun_Status Vos_Catmem_Dealloc (VosT_Address);
#if defined (__cplusplus)
	}
#endif


Compcode
sl_aloha_ip_init (void ** gen_state_pptr)
	{
	int _block_origin = 0;
	static VosT_Address	obtype = OPC_NIL;

	FIN (sl_aloha_ip_init (gen_state_pptr))

	if (obtype == OPC_NIL)
		{
		/* Initialize memory management */
		if (Vos_Catmem_Register ("proc state vars (sl_aloha_ip)",
			sizeof (sl_aloha_ip_state), Vos_Vnop, &obtype) == VOSC_FAILURE)
			{
			FRET (OPC_COMPCODE_FAILURE)
			}
		}

	*gen_state_pptr = Vos_Catmem_Alloc (obtype, 1);
	if (*gen_state_pptr == OPC_NIL)
		{
		FRET (OPC_COMPCODE_FAILURE)
		}
	else
		{
		/* Initialize FSM handling */
		((sl_aloha_ip_state *)(*gen_state_pptr))->current_block = 8;

		FRET (OPC_COMPCODE_SUCCESS)
		}
	}



void
sl_aloha_ip_diag (void)
	{
	int _block_origin = __LINE__;

	FIN (sl_aloha_ip_diag ())

	if (1)
		{
		/* Packet pointer*/
		Packet *pkptr;
		/* The current time. */
		double current_time;
		
		/* current slot.*/
		int time_slot;
		
		/* Time of next time slot. */
		double next_time_slot;
		
		double chan_access_delay;
		
		int					intrpt_type;
		int					intrpt_strm;
		int					intrpt_code;
		
		List*				proc_record_handle_list_ptr;
		Objid				tx_objid;
		Objid				rx_objid;
		Objid				strm_objid;
		Objid				instrm;
		Objid				outstrm;
		int					record_handle_list_size;
		OmsT_Pr_Handle		process_record_handle;
		IpT_Interface_Info* ip_iface_elem_ptr;
		int					i;
		IpT_Info*			ip_info_ptr;
		Objid				ip_module_objid;
		int					ip_iface_table_size;
		Boolean				ip_addrs_found;

		/* Diagnostic Block */


		BINIT
		

		/* End of Diagnostic Block */

		}

	FOUT;
	}




void
sl_aloha_ip_terminate (void)
	{
	int _block_origin = __LINE__;

	FIN (sl_aloha_ip_terminate (void))

	if (1)
		{
		/* Packet pointer*/
		Packet *pkptr;
		/* The current time. */
		double current_time;
		
		/* current slot.*/
		int time_slot;
		
		/* Time of next time slot. */
		double next_time_slot;
		
		double chan_access_delay;
		
		int					intrpt_type;
		int					intrpt_strm;
		int					intrpt_code;
		
		List*				proc_record_handle_list_ptr;
		Objid				tx_objid;
		Objid				rx_objid;
		Objid				strm_objid;
		Objid				instrm;
		Objid				outstrm;
		int					record_handle_list_size;
		OmsT_Pr_Handle		process_record_handle;
		IpT_Interface_Info* ip_iface_elem_ptr;
		int					i;
		IpT_Info*			ip_info_ptr;
		Objid				ip_module_objid;
		int					ip_iface_table_size;
		Boolean				ip_addrs_found;

		/* No Termination Block */

		}
	Vos_Catmem_Dealloc (pr_state_ptr);

	FOUT;
	}


/* Undefine shortcuts to state variables to avoid */
/* syntax error in direct access to fields of */
/* local variable prs_ptr in sl_aloha_ip_svar function. */
#undef slot_length
#undef guard_band
#undef chan_access_local_handle
#undef chan_access_global_handle
#undef ip_address
#undef rx_in_strm
#undef ip_in_strm
#undef tx_out_strm
#undef ip_out_strm
#undef mod_objid
#undef node_objid
#undef node_type



void
sl_aloha_ip_svar (void * gen_ptr, const char * var_name, char ** var_p_ptr)
	{
	sl_aloha_ip_state		*prs_ptr;

	FIN (sl_aloha_ip_svar (gen_ptr, var_name, var_p_ptr))

	if (var_name == OPC_NIL)
		{
		*var_p_ptr = (char *)OPC_NIL;
		FOUT;
		}
	prs_ptr = (sl_aloha_ip_state *)gen_ptr;

	if (strcmp ("slot_length" , var_name) == 0)
		{
		*var_p_ptr = (char *) (&prs_ptr->slot_length);
		FOUT;
		}
	if (strcmp ("guard_band" , var_name) == 0)
		{
		*var_p_ptr = (char *) (&prs_ptr->guard_band);
		FOUT;
		}
	if (strcmp ("chan_access_local_handle" , var_name) == 0)
		{
		*var_p_ptr = (char *) (&prs_ptr->chan_access_local_handle);
		FOUT;
		}
	if (strcmp ("chan_access_global_handle" , var_name) == 0)
		{
		*var_p_ptr = (char *) (&prs_ptr->chan_access_global_handle);
		FOUT;
		}
	if (strcmp ("ip_address" , var_name) == 0)
		{
		*var_p_ptr = (char *) (&prs_ptr->ip_address);
		FOUT;
		}
	if (strcmp ("rx_in_strm" , var_name) == 0)
		{
		*var_p_ptr = (char *) (&prs_ptr->rx_in_strm);
		FOUT;
		}
	if (strcmp ("ip_in_strm" , var_name) == 0)
		{
		*var_p_ptr = (char *) (&prs_ptr->ip_in_strm);
		FOUT;
		}
	if (strcmp ("tx_out_strm" , var_name) == 0)
		{
		*var_p_ptr = (char *) (&prs_ptr->tx_out_strm);
		FOUT;
		}
	if (strcmp ("ip_out_strm" , var_name) == 0)
		{
		*var_p_ptr = (char *) (&prs_ptr->ip_out_strm);
		FOUT;
		}
	if (strcmp ("mod_objid" , var_name) == 0)
		{
		*var_p_ptr = (char *) (&prs_ptr->mod_objid);
		FOUT;
		}
	if (strcmp ("node_objid" , var_name) == 0)
		{
		*var_p_ptr = (char *) (&prs_ptr->node_objid);
		FOUT;
		}
	if (strcmp ("node_type" , var_name) == 0)
		{
		*var_p_ptr = (char *) (&prs_ptr->node_type);
		FOUT;
		}
	*var_p_ptr = (char *)OPC_NIL;

	FOUT;
	}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美在线观看一区二区| 亚洲日本免费电影| 最新国产の精品合集bt伙计| 亚洲国产欧美日韩另类综合 | 亚洲女人****多毛耸耸8| 日韩精品三区四区| 99久久99久久综合| 久久久久久久久免费| 日韩在线一二三区| 色综合久久综合| 国产日本欧美一区二区| 免费黄网站欧美| 欧美无砖专区一中文字| 亚洲人精品一区| 成人网在线播放| 国产亚洲欧美日韩在线一区| 日本欧美肥老太交大片| 在线观看一区二区视频| 国产精品成人在线观看| 成人深夜视频在线观看| 欧美成人精精品一区二区频| 肉丝袜脚交视频一区二区| 在线视频欧美精品| 亚洲乱码国产乱码精品精98午夜 | 国产91精品免费| 2024国产精品| 精品亚洲成av人在线观看| 欧美一级生活片| 视频一区欧美精品| 51精品国自产在线| 调教+趴+乳夹+国产+精品| 欧美日韩和欧美的一区二区| 樱桃视频在线观看一区| 欧美午夜不卡视频| 亚洲bt欧美bt精品777| 欧美日韩久久久久久| 亚洲国产精品久久艾草纯爱| 欧美日韩一区二区在线观看| 亚洲国产成人av好男人在线观看| 欧洲在线/亚洲| 亚洲va国产天堂va久久en| 欧美美女一区二区在线观看| 日韩精品视频网站| 欧美成人aa大片| 国产一区二区三区| 亚洲国产成人私人影院tom | 久久99久久99精品免视看婷婷| 日韩情涩欧美日韩视频| 国产一区二区福利| 欧美经典一区二区| 色香蕉久久蜜桃| 亚洲一级二级三级| 日韩一区二区三区精品视频| 国产永久精品大片wwwapp| 国产精品欧美经典| 欧美日韩精品一区视频| 久久精品国产99国产| 国产精品嫩草影院com| 在线观看成人免费视频| 男女视频一区二区| 国产精品天干天干在观线| 色呦呦国产精品| 精品在线一区二区| 国产精品护士白丝一区av| 欧美精品在线观看播放| 国产精品主播直播| 一区二区三区精品在线| 精品毛片乱码1区2区3区 | 国产精品少妇自拍| 欧洲av一区二区嗯嗯嗯啊| 国产专区欧美精品| 亚洲狠狠丁香婷婷综合久久久| 欧美哺乳videos| 色综合色狠狠综合色| 蜜桃一区二区三区四区| √…a在线天堂一区| 日韩一级片在线观看| 91网站最新地址| 久久99精品久久久| 亚洲精品国产a| 国产视频在线观看一区二区三区| 欧美日韩一区在线| 成人黄页在线观看| 麻豆91免费看| 亚洲国产成人av好男人在线观看| 国产欧美久久久精品影院| 91精品国产品国语在线不卡| 99麻豆久久久国产精品免费优播| 久久电影网电视剧免费观看| 亚洲一区二区影院| 国产精品不卡一区二区三区| 欧美本精品男人aⅴ天堂| 欧美亚洲国产bt| 91在线精品秘密一区二区| 国产一区二区三区免费看| 日韩中文欧美在线| 亚洲国产aⅴ成人精品无吗| 国产精品成人免费在线| 国产女同性恋一区二区| 日韩欧美国产电影| 欧美二区三区的天堂| 色久优优欧美色久优优| av电影天堂一区二区在线| 国产精品亚洲а∨天堂免在线| 秋霞电影一区二区| 日日欢夜夜爽一区| 亚洲国产成人91porn| 亚洲乱码一区二区三区在线观看| 欧美精彩视频一区二区三区| 久久网这里都是精品| 日韩精品最新网址| 日韩女优av电影| 日韩欧美亚洲一区二区| 日韩午夜电影在线观看| 日韩欧美成人一区二区| 91精品婷婷国产综合久久性色| 欧美日韩大陆在线| 在线播放/欧美激情| 91精品国产综合久久久久久久久久| 欧美天堂亚洲电影院在线播放| 欧美亚洲图片小说| 欧美三区免费完整视频在线观看| 欧美自拍偷拍午夜视频| 欧美视频在线观看一区| 欧美视频你懂的| 3d动漫精品啪啪1区2区免费 | 午夜伦理一区二区| 亚洲一卡二卡三卡四卡| 日韩一区精品视频| 免费成人在线视频观看| 国产精品18久久久久久vr| 国产成人精品aa毛片| caoporn国产一区二区| 在线观看三级视频欧美| 欧美一区二区视频免费观看| 欧美成人福利视频| 欧美国产成人精品| 亚洲品质自拍视频| 天堂蜜桃一区二区三区| 国产在线一区观看| 暴力调教一区二区三区| 欧美午夜精品久久久久久孕妇| 8v天堂国产在线一区二区| 久久亚洲影视婷婷| 国产精品日韩精品欧美在线| 亚洲综合久久久| 久久精品72免费观看| 床上的激情91.| 欧美精品v日韩精品v韩国精品v| 精品国产1区二区| 亚洲精品视频免费观看| 精品在线观看免费| 色婷婷综合久色| 精品欧美黑人一区二区三区| 亚洲天堂a在线| 美腿丝袜亚洲一区| 91网站最新网址| 精品国产凹凸成av人网站| 亚洲三级理论片| 黄色日韩三级电影| 欧美三区在线视频| 中文字幕成人网| 久久狠狠亚洲综合| 色88888久久久久久影院野外| 精品久久久三级丝袜| 亚洲乱码中文字幕| 国产一区二区免费看| 制服丝袜在线91| 亚洲天堂av老司机| 国产精品亚洲视频| 777a∨成人精品桃花网| 亚洲欧洲日产国产综合网| 看电视剧不卡顿的网站| 欧美在线免费观看视频| 国产精品色在线观看| 国产精品一区二区三区四区| 91精品国产综合久久精品麻豆| 最新国产成人在线观看| 懂色av一区二区三区蜜臀| 欧美一级高清片| 亚洲二区在线观看| 色噜噜狠狠色综合中国| 国产精品美女久久久久aⅴ| 激情综合色播五月| 欧美一二三区在线| 日韩成人免费看| 欧美精品三级在线观看| 亚洲一区日韩精品中文字幕| 97久久精品人人做人人爽| 亚洲国产精品精华液2区45| 国产一区激情在线| 欧美大白屁股肥臀xxxxxx| 奇米精品一区二区三区四区| 欧美日韩一卡二卡三卡| 亚洲一区二区精品3399| 欧美无人高清视频在线观看| 一个色综合av| 欧美日韩国产在线观看| 亚洲成人先锋电影| 91精品国产综合久久精品图片|