wlan_rxgroup.ps.c

来自「在OPNET中实现AODV路由协议」· C语言 代码 · 共 48 行

C
48
字号
/* wlan_rxgroup.ps.c */                                                       /* Modified receiver group model for IEEE802.11 			*//* This routine is part of radio link Transceiver Pipeline 	*//****************************************//*		  Copyright (c) 1993			*//*			by MIL 3, Inc.				*//*		(A Delaware Corporation)		*//*	3400 International Drive,  N.W.		*//*		Washington, D.C., U.S.A.		*//*			All Rights Reserved.		*//****************************************/#include <opnet.h>#if defined (__cplusplus)extern "C"#endifintwlan_rxgroup (tx_obid, rx_obid)		Objid		tx_obid, rx_obid;	{	Objid       txnode_obid, rxnode_obid;	/** Determine the potential for communication between	**/	/** given transmitter and receiver channel objects.		**/	FIN (wlan_rxgroup (tx_obid, rx_obid));    txnode_obid =  op_topo_parent (op_topo_parent (op_topo_parent (tx_obid))); 	rxnode_obid =  op_topo_parent (op_topo_parent (op_topo_parent (rx_obid)));    /* Station should not hear its own transmission.	*/	if (txnode_obid == rxnode_obid)		{		FRET (OPC_FALSE);    	}    /* Only stations in the same subnet will receive the packet.	*/    if (op_topo_parent (txnode_obid) != op_topo_parent (rxnode_obid))		{		FRET (OPC_FALSE);		}	/* In IEEE802.11 model only receivers in the same subnet are considered */	/* as potential destinations.											*/	FRET (OPC_TRUE);	}                

⌨️ 快捷键说明

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