📄 wlan_rxgroup.ps.c
字号:
/* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -