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

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

?? gpr_wlan_mac_interface.pr.c

?? opnetadhoc自組網絡源碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
					{
					/* The packet needs to be sent to an explicit	*/
					/* destination as specified in the "Destination	*/
					/* Address" attribute.							*/
					curr_dest_addr = destination_address;
					if (op_prg_odb_ltrace_active ("ztl_debug") == OPC_TRUE)
						printf("use the static mac addr %d",destination_address);
					op_prg_odb_bkpt("ztl_dest");
					}
				
				
				
				/* Set this information in the interface control	*/
				/* information to be sent to the MAC layer.			*/
				op_ici_attr_set (wlan_mac_req_iciptr, "dest_addr", curr_dest_addr);
				
				/* Install the control informationand send it to	*/
				/* the MAC layer.									*/
				op_ici_install (wlan_mac_req_iciptr);
				op_pk_send (pkptr, outstrm_to_mac);
						op_prg_odb_bkpt("ztl_down");
				
				}

				FSM_PROFILE_SECTION_OUT (gpr_wlan_mac_interface [appl layer arrival enter execs], state2_enter_exec)

			/** state (appl layer arrival) exit executives **/
			FSM_STATE_EXIT_FORCED (2, "appl layer arrival", "gpr_wlan_mac_interface [appl layer arrival exit execs]")
				FSM_PROFILE_SECTION_IN (gpr_wlan_mac_interface [appl layer arrival exit execs], state2_exit_exec)
				{
				}
				FSM_PROFILE_SECTION_OUT (gpr_wlan_mac_interface [appl layer arrival exit execs], state2_exit_exec)


			/** state (appl layer arrival) transition processing **/
			FSM_TRANSIT_FORCE (1, state1_enter_exec, ;, "default", "", "appl layer arrival", "idle")
				/*---------------------------------------------------------*/



			/** state (mac layer arrival) enter executives **/
			FSM_STATE_ENTER_FORCED (3, "mac layer arrival", state3_enter_exec, "gpr_wlan_mac_interface [mac layer arrival enter execs]")
				FSM_PROFILE_SECTION_IN (gpr_wlan_mac_interface [mac layer arrival enter execs], state3_enter_exec)
				{
				/* A packet arrived from the MAC layer. Since the MAC	*/
				/* layer would have forwarded this only if it were		*/
				/* destined for this node, forward this packet to the	*/
				/* sink module.											*/
				op_pk_send (pkptr, 0);
				op_prg_odb_bkpt("ztl_up");
				
				}

				FSM_PROFILE_SECTION_OUT (gpr_wlan_mac_interface [mac layer arrival enter execs], state3_enter_exec)

			/** state (mac layer arrival) exit executives **/
			FSM_STATE_EXIT_FORCED (3, "mac layer arrival", "gpr_wlan_mac_interface [mac layer arrival exit execs]")
				FSM_PROFILE_SECTION_IN (gpr_wlan_mac_interface [mac layer arrival exit execs], state3_exit_exec)
				{
				}
				FSM_PROFILE_SECTION_OUT (gpr_wlan_mac_interface [mac layer arrival exit execs], state3_exit_exec)


			/** state (mac layer arrival) transition processing **/
			FSM_TRANSIT_FORCE (1, state1_enter_exec, ;, "default", "", "mac layer arrival", "idle")
				/*---------------------------------------------------------*/



			/** state (wait) enter executives **/
			FSM_STATE_ENTER_UNFORCED (4, "wait", state4_enter_exec, "gpr_wlan_mac_interface [wait enter execs]")
				FSM_PROFILE_SECTION_IN (gpr_wlan_mac_interface [wait enter execs], state4_enter_exec)
				{
				
				}

				FSM_PROFILE_SECTION_OUT (gpr_wlan_mac_interface [wait enter execs], state4_enter_exec)

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


			/** state (wait) exit executives **/
			FSM_STATE_EXIT_UNFORCED (4, "wait", "gpr_wlan_mac_interface [wait exit execs]")
				FSM_PROFILE_SECTION_IN (gpr_wlan_mac_interface [wait exit execs], state4_exit_exec)
				{
				
				Objid process_id;
				
				Ici* iciptr;	
					
				/* Obtain the MAC layer information for the local MAC	*/
				/* process from the model-wide registry.				*/
				proc_record_handle_list_ptr = op_prg_list_create ();
				oms_pr_process_discover (my_objid, proc_record_handle_list_ptr,
					"node objid",	OMSC_PR_OBJID,		my_node_objid,
					"protocol", 	OMSC_PR_STRING,		"mac",
					OPC_NIL);
				
					
				/* If the MAC process regostered itself, then there	*/
				/* must be a valid match							*/
				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 WLAN-MAC process in the local node,	*/
					/* or if no match is found.						*/
					op_sim_end ("Error: either zero or several WLAN MAC processes found in the interface", "", "", "");
					}
				else
					{
					/*	Obtain a handle on the process record.	*/
					process_record_handle = (OmsT_Pr_Handle) op_prg_list_access (proc_record_handle_list_ptr, 0);
				 
					/* Obtain the module objid for the WLAN MAC module. 		*/
					oms_pr_attr_get (process_record_handle, "module objid", OMSC_PR_OBJID, &mac_module_objid);
				 
					/* Obtain the stream numbers connected to and from the	*/
					/* WLAN MAC layer process.								*/
					oms_tan_neighbor_streams_find (my_objid, mac_module_objid, &instrm_from_mac, &outstrm_to_mac);
				 
					/* Obtain the address handle maintained by the MAC process.	*/
					oms_pr_attr_get (process_record_handle, "address",             OMSC_PR_NUMBER,  &ne_address);
					oms_pr_attr_get (process_record_handle, "auto address handle", OMSC_PR_ADDRESS, &oms_aa_handle);
				 
					
					
					/* Set the variable to indicate the MAC address of the	*/
					/* associated MAC layer process.						*/
					mac_address = (int) ne_address;
					
					
					////ztl@@@@
					iciptr = op_ici_create("GPR_MAC_CFG_ICI");
					op_ici_attr_set(iciptr,"MAC_ADDR",mac_address);//ztl temp
					op_ici_install(iciptr);
					
					process_id = op_id_from_name(op_topo_parent (op_id_self()),OPC_OBJTYPE_QUEUE,"gpr_route");
					op_intrpt_schedule_remote(op_sim_time(),INT_MAC_ADDR_CFG,process_id);
					
					////ztl@@@@
					
						printf("mac_inf:mac is %d\n",mac_address);
						op_prg_odb_bkpt("ini_mac");
					
					}
				
				/* Check if the specified destination address (via the "Destination	*/
				/* Address" attribute) is valid or not.								*/
				
				/* Check for broadcast address.										*/
				if (destination_address == MAC_BROADCAST)
					{
					/* Do Nothing	*/
					}
				else if (destination_address != OMSC_AA_AUTO_ASSIGN)
					{
					/* An explicit destination address has been specified. Check if	*/
					/* it is a valid address.										*/
					if (destination_address == (int) mac_address)
						{
						/* Write a log stating that source node can not be a destination. */
						printf ("\n\nInvalid destination address specification. Changing\n");
						printf ("the specification from its own MAC address (%d) to \"Random\"\n\n", destination_address);
				
						/* The destination address is set same as the lower layer MAC	*/
						/* address of this node. Ignore the original specification and	*/
						/* and set it to random.										*/
						destination_address = OMSC_AA_AUTO_ASSIGN;
						
				
						
						
						}
					else
						{
						/* Checks if this is a valid address from the pool of addresses	*/
						/* available.													*/
				
						dest_addr_okay = oms_aa_dest_addr_check (oms_aa_handle, destination_address);
						if (dest_addr_okay != OPC_TRUE)
							{
							/* Write a log stating that source node can not be a destination. */
							printf ("\n\nInvalid destination address specification. Changing\n");
							printf ("the specification from %d, to \"Random\"\n\n", destination_address);
				
							/* The specified destination address is invalid. Set it to	*/
							/* random.													*/
							destination_address = OMSC_AA_AUTO_ASSIGN;
				
							
							}
						}
					}
				
				}
				FSM_PROFILE_SECTION_OUT (gpr_wlan_mac_interface [wait exit execs], state4_exit_exec)


			/** state (wait) transition processing **/
			FSM_TRANSIT_FORCE (1, state1_enter_exec, ;, "default", "", "wait", "idle")
				/*---------------------------------------------------------*/



			/** state (init2) enter executives **/
			FSM_STATE_ENTER_UNFORCED (5, "init2", state5_enter_exec, "gpr_wlan_mac_interface [init2 enter execs]")
				FSM_PROFILE_SECTION_IN (gpr_wlan_mac_interface [init2 enter execs], state5_enter_exec)
				{
				}

				FSM_PROFILE_SECTION_OUT (gpr_wlan_mac_interface [init2 enter execs], state5_enter_exec)

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


			/** state (init2) exit executives **/
			FSM_STATE_EXIT_UNFORCED (5, "init2", "gpr_wlan_mac_interface [init2 exit execs]")
				FSM_PROFILE_SECTION_IN (gpr_wlan_mac_interface [init2 exit execs], state5_exit_exec)
				{
				/* Schedule a self interrupt to wait for lower layer	*/
				/* Wlan MAC process to finalize the MAC address			*/
				/* registration and resolution.							*/
				op_intrpt_schedule_self (op_sim_time (), 0);
				}
				FSM_PROFILE_SECTION_OUT (gpr_wlan_mac_interface [init2 exit execs], state5_exit_exec)


			/** state (init2) transition processing **/
			FSM_TRANSIT_FORCE (4, state4_enter_exec, ;, "default", "", "init2", "wait")
				/*---------------------------------------------------------*/



			}


		FSM_EXIT (0,"gpr_wlan_mac_interface")
		}
	}




void
gpr_wlan_mac_interface_diag (OP_SIM_CONTEXT_ARG_OPT)
	{
	/* No Diagnostic Block */
	}




void
gpr_wlan_mac_interface_terminate (OP_SIM_CONTEXT_ARG_OPT)
	{

#if !defined (VOSD_NO_FIN)
	int _op_block_origin = __LINE__;
#endif

	FIN_MT (gpr_wlan_mac_interface_terminate ())

	Vos_Poolmem_Dealloc_MT (OP_SIM_CONTEXT_THREAD_INDEX_COMMA pr_state_ptr);

	FOUT
	}


/* Undefine shortcuts to state variables to avoid */
/* syntax error in direct access to fields of */
/* local variable prs_ptr in gpr_wlan_mac_interface_svar function. */
#undef my_objid
#undef my_node_objid
#undef instrm_from_mac
#undef outstrm_to_mac
#undef destination_address
#undef oms_aa_handle
#undef mac_address
#undef wlan_mac_req_iciptr

#undef FIN_PREAMBLE_DEC
#undef FIN_PREAMBLE_CODE

#define FIN_PREAMBLE_DEC
#define FIN_PREAMBLE_CODE

VosT_Obtype
gpr_wlan_mac_interface_init (int * init_block_ptr)
	{

#if !defined (VOSD_NO_FIN)
	int _op_block_origin = 0;
#endif
	VosT_Obtype obtype = OPC_NIL;
	FIN_MT (gpr_wlan_mac_interface_init (init_block_ptr))

	Vos_Define_Object (&obtype, "proc state vars (gpr_wlan_mac_interface)",
		sizeof (gpr_wlan_mac_interface_state), 0, 20);
	*init_block_ptr = 0;

	FRET (obtype)
	}

VosT_Address
gpr_wlan_mac_interface_alloc (VOS_THREAD_INDEX_ARG_COMMA VosT_Obtype obtype, int init_block)
	{

#if !defined (VOSD_NO_FIN)
	int _op_block_origin = 0;
#endif
	gpr_wlan_mac_interface_state * ptr;
	FIN_MT (gpr_wlan_mac_interface_alloc (obtype))

	ptr = (gpr_wlan_mac_interface_state *)Vos_Alloc_Object_MT (VOS_THREAD_INDEX_COMMA obtype);
	if (ptr != OPC_NIL)
		ptr->_op_current_block = init_block;
	FRET ((VosT_Address)ptr)
	}



void
gpr_wlan_mac_interface_svar (void * gen_ptr, const char * var_name, void ** var_p_ptr)
	{
	gpr_wlan_mac_interface_state		*prs_ptr;

	FIN_MT (gpr_wlan_mac_interface_svar (gen_ptr, var_name, var_p_ptr))

	if (var_name == OPC_NIL)
		{
		*var_p_ptr = (void *)OPC_NIL;
		FOUT
		}
	prs_ptr = (gpr_wlan_mac_interface_state *)gen_ptr;

	if (strcmp ("my_objid" , var_name) == 0)
		{
		*var_p_ptr = (void *) (&prs_ptr->my_objid);
		FOUT
		}
	if (strcmp ("my_node_objid" , var_name) == 0)
		{
		*var_p_ptr = (void *) (&prs_ptr->my_node_objid);
		FOUT
		}
	if (strcmp ("instrm_from_mac" , var_name) == 0)
		{
		*var_p_ptr = (void *) (&prs_ptr->instrm_from_mac);
		FOUT
		}
	if (strcmp ("outstrm_to_mac" , var_name) == 0)
		{
		*var_p_ptr = (void *) (&prs_ptr->outstrm_to_mac);
		FOUT
		}
	if (strcmp ("destination_address" , var_name) == 0)
		{
		*var_p_ptr = (void *) (&prs_ptr->destination_address);
		FOUT
		}
	if (strcmp ("oms_aa_handle" , var_name) == 0)
		{
		*var_p_ptr = (void *) (&prs_ptr->oms_aa_handle);
		FOUT
		}
	if (strcmp ("mac_address" , var_name) == 0)
		{
		*var_p_ptr = (void *) (&prs_ptr->mac_address);
		FOUT
		}
	if (strcmp ("wlan_mac_req_iciptr" , var_name) == 0)
		{
		*var_p_ptr = (void *) (&prs_ptr->wlan_mac_req_iciptr);
		FOUT
		}
	*var_p_ptr = (void *)OPC_NIL;

	FOUT
	}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩黄色小视频| 2欧美一区二区三区在线观看视频| 蜜桃精品视频在线| 亚洲va在线va天堂| 性欧美疯狂xxxxbbbb| 亚洲成人手机在线| 日韩不卡一区二区三区| 欧美bbbbb| 国内精品伊人久久久久av影院| 免费av成人在线| 国产一二三精品| 国产精品一区二区视频| 大尺度一区二区| proumb性欧美在线观看| 色婷婷亚洲精品| 8v天堂国产在线一区二区| 日韩三级视频在线看| 久久一区二区视频| 中文字幕一区二区三区不卡在线| 一区二区三区毛片| 丝袜美腿成人在线| 国产精品白丝jk黑袜喷水| 国产1区2区3区精品美女| av一区二区三区黑人| 欧美日韩中文国产| 精品国产123| 亚洲色大成网站www久久九九| 亚洲一区在线观看免费| 麻豆91在线看| 91丨九色丨蝌蚪丨老版| 日韩一区二区高清| 中文字幕日韩一区| 青娱乐精品视频在线| av电影在线观看一区| 欧美精品久久一区| 国产精品久久久久久久午夜片| 亚洲综合激情另类小说区| 国产一区二区三区不卡在线观看| 色综合久久88色综合天天免费| 精品国产乱码久久久久久1区2区| 国产精品美女久久久久久久久| 五月天激情小说综合| 国产不卡免费视频| 日韩女优视频免费观看| 亚洲一区二区三区四区的| 国产精品一区一区| 欧美一区二区三级| 一区二区三区电影在线播| 国产精品综合网| 欧美一级片免费看| 亚洲成人免费观看| 色www精品视频在线观看| 久久久久久99精品| 精品亚洲国产成人av制服丝袜| 欧美在线免费播放| 国产精品国产三级国产专播品爱网 | 国产精品亚洲专一区二区三区 | 亚洲bt欧美bt精品777| 成人激情免费视频| 精品久久人人做人人爽| 五月婷婷久久丁香| 精品视频1区2区| 亚洲日本在线看| 97精品电影院| 中文字幕一区二区在线观看| 福利一区二区在线| 国产午夜精品一区二区三区四区| 日本不卡视频一二三区| 欧美精品色一区二区三区| 亚洲一区二区精品久久av| 在线亚洲+欧美+日本专区| 日韩理论在线观看| 97se亚洲国产综合在线| 国产精品盗摄一区二区三区| 国产91精品露脸国语对白| 国产精品伦一区二区三级视频| 处破女av一区二区| 国产精品视频一区二区三区不卡| 国产成人福利片| 国产午夜精品美女毛片视频| 国产成人免费xxxxxxxx| 国产欧美日韩精品在线| 国产91精品在线观看| 欧美激情在线免费观看| 99久久精品免费| 亚洲精品国产a| 欧美丰满嫩嫩电影| 韩国v欧美v日本v亚洲v| 国产欧美一区二区精品性| av一区二区三区四区| 亚洲一区视频在线| 日韩美女视频在线| 国产成人免费9x9x人网站视频| 欧美国产一区二区| 在线一区二区三区| 日韩精品国产欧美| 久久精品视频一区二区三区| av福利精品导航| 日韩精品成人一区二区三区| 337p日本欧洲亚洲大胆色噜噜| 成人一区二区三区中文字幕| 亚洲激情自拍偷拍| 欧美不卡在线视频| 99精品国产91久久久久久| 三级精品在线观看| 国产无一区二区| 欧美日韩国产在线播放网站| 精品一区二区在线视频| 亚洲视频在线一区| 欧美大白屁股肥臀xxxxxx| 成人福利在线看| 日韩**一区毛片| 亚洲色图另类专区| 精品福利一二区| 色av成人天堂桃色av| 国模娜娜一区二区三区| 亚洲一区二区三区在线| 亚洲国产成人一区二区三区| 在线观看国产精品网站| 国产乱码精品1区2区3区| 天堂久久一区二区三区| 欧美国产激情一区二区三区蜜月| 亚洲精品日韩综合观看成人91| 国产精品入口麻豆九色| 色先锋aa成人| 国产盗摄一区二区三区| bt7086福利一区国产| 男人操女人的视频在线观看欧美| 国产精品免费视频观看| 欧美精品一区二区在线播放| 欧美影院一区二区三区| 成人动漫精品一区二区| 国产最新精品精品你懂的| 日日夜夜精品视频免费| 一区二区三区四区在线| 国产精品系列在线| 精品福利一区二区三区免费视频| 欧美日韩国产另类不卡| 色香蕉久久蜜桃| 色综合久久88色综合天天免费| 粉嫩aⅴ一区二区三区四区五区| 狂野欧美性猛交blacked| 亚洲成人av一区| 亚洲第一福利一区| 一区二区三区毛片| 亚洲一区二区中文在线| 一区在线中文字幕| 国产精品国产三级国产aⅴ原创| 久久久久久久久久美女| 久久久亚洲精品石原莉奈| 精品国产免费久久| 久久久三级国产网站| 国产亚洲成年网址在线观看| 欧美激情在线免费观看| 欧美极品另类videosde| 成人欧美一区二区三区白人| 1024成人网| 亚洲午夜精品久久久久久久久| 亚洲免费观看高清| 午夜亚洲福利老司机| 日韩中文字幕一区二区三区| 美美哒免费高清在线观看视频一区二区| 日韩一区精品视频| 免费久久精品视频| 国产激情一区二区三区四区| 99免费精品在线| 91久久奴性调教| 91精品国产综合久久香蕉麻豆| 日韩免费高清av| 欧美成人高清电影在线| 国产日韩欧美不卡在线| 中文字幕亚洲不卡| 亚洲bdsm女犯bdsm网站| 久久不见久久见免费视频1| 成人精品免费视频| 欧美性三三影院| 欧美一区二区女人| 中文字幕 久热精品 视频在线 | 色噜噜偷拍精品综合在线| 欧美日韩国产小视频在线观看| 3d成人动漫网站| 欧美国产97人人爽人人喊| 亚洲一区二区中文在线| 国产伦精品一区二区三区免费迷| 成人性色生活片| 这里只有精品免费| 国产精品初高中害羞小美女文| 亚洲综合色婷婷| 国产成人精品aa毛片| 欧美色爱综合网| 国产视频一区二区在线| 亚洲图片欧美视频| 懂色av一区二区夜夜嗨| 欧美狂野另类xxxxoooo| 国产精品短视频| 久久精品二区亚洲w码| 欧美亚洲国产一区二区三区va| 精品国产制服丝袜高跟| 亚洲图片一区二区| 北条麻妃一区二区三区|