56 fnNetSimError(
"Device id is passed 0 in function %s", __FUNCTION__);
59 if (nInterfaceId == 0)
61 fnNetSimError(
"Interface id is passed 0 in function %s", __FUNCTION__);
99 fnNetSimError(
"Device id is passed 0 in function %s", __FUNCTION__);
102 if (nInterfaceId == 0)
104 fnNetSimError(
"Interface id is passed 0 in function %s", __FUNCTION__);
202 DEVICE_MACLAYER(nDeviceId, nInterfaceId)->nMacProtocolId, __FUNCTION__);
212 if (!buf)
return false;
213 return buf->
head ? true :
false;
228 DEVICE_MACLAYER(nDeviceId, nInterfaceId)->nMacProtocolId, __FUNCTION__);
249 while (buf->
head &&
c<nPacketRequire)
253 t->pstruNextPacket = buf->
head;
295 DEVICE_MACLAYER(nDeviceId, nInterfaceId)->nMacProtocolId, __FUNCTION__);
325 fnNetSimError(
"Mustnot call this function %s for protocol %d.", __FUNCTION__,
331 DEVICE_MACLAYER(nDeviceId, nInterfaceId)->nMacProtocolId, __FUNCTION__);
struct stru_IEEE1609_Phy_Var * PIEEE1609_PHY_VAR
@ IEEE1609_ChannelType_GUARD
@ IEEE1609_ChannelType_CCH
@ IEEE1609_ChannelType_SCH
struct stru_IEEE1609_Mac_Var * PIEEE1609_MAC_VAR
#define GET_IEEE1609_MAC_VAR(nDeviceId, nInterfaceId)
enum enum_IEEE1609_ChannelType IEEE1609_CHANNEL_TYPE
PIEEE802_11_MAC_VAR IEEE802_11_MAC(NETSIM_ID ndeviceId, NETSIM_ID nInterfaceId)
void SET_IEEE802_11_MAC(NETSIM_ID ndeviceId, NETSIM_ID nInterfaceId, PIEEE802_11_MAC_VAR mac)
static void make_idle(NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId)
bool isIEEE802_11_Configure(NETSIM_ID ndeviceId, NETSIM_ID nInterfaceId)
PIEEE802_11_PHY_VAR IEEE802_11_PHY(NETSIM_ID ndeviceId, NETSIM_ID nInterfaceId)
bool validate_processing_time(double time, NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId)
NetSim_PACKET * get_from_queue(NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId, UINT nPacketRequire, UINT *nPacketCount)
bool isPacketInQueue(NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId)
static IEEE1609_CHANNEL_TYPE get_curr_channel_type(NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId)
static bool is_time_in_same_channel(double time, NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId)
static bool isPacketinIEEE1609Queue(NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId, IEEE1609_CHANNEL_TYPE type)
static NETSIM_ID add_to_IEEE1609_queue(NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId, NetSim_PACKET *packet)
void readd_to_queue(NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId, NetSim_PACKET *packet)
void SET_IEEE802_11_PHY(NETSIM_ID ndeviceId, NETSIM_ID nInterfaceId, PIEEE802_11_PHY_VAR phy)
static NetSim_PACKET * get_from_IEEE1609_queue(NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId, UINT nPacketRequire, UINT *nPacketCount, IEEE1609_CHANNEL_TYPE type)
static PIEEE1609_BUFFER get_ieee1609_buffer(NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId, IEEE1609_CHANNEL_TYPE type)
static void revert_packet(NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId)
NETSIM_ID add_to_queue(NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId, NetSim_PACKET *packet)
static void readd_to_IEEE1609_queue(NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId, NetSim_PACKET *packet)
static IEEE1609_CHANNEL_TYPE get_channel_type_of_packet(NetSim_PACKET *packet)
@ IEEE802_11_MACSTATE_MAC_IDLE
void IEEE802_11_Change_Mac_State(PIEEE802_11_MAC_VAR mac, IEEE802_11_MAC_STATE state)
bool isIEEE802_11_CtrlPacket(NetSim_PACKET *packet)
NetSim_PACKET * fn_NetSim_IEEE802_11e_GetPacketFromQueue(NETSIM_ID d, NETSIM_ID in, UINT nPacketRequire, UINT *nPacketCount)
NETSIM_ID fn_NetSim_IEEE802_11e_AddtoQueue(NETSIM_ID d, NETSIM_ID in, NetSim_PACKET *packet)
bool fn_NetSim_IEEE802_11e_IsPacketInQueue(NETSIM_ID d, NETSIM_ID in)
#define fnNetSimError(x,...)
#define DEVICE_PHYVAR(DeviceId, InterfaceId)
#define DEVICE_MACLAYER(DeviceId, InterfaceId)
@ MAC_PROTOCOL_IEEE802_11
#define DEVICE_MACVAR(DeviceId, InterfaceId)
EXPORTED struct stru_NetSim_EventDetails * pstruEventDetails
#define fn_NetSim_Packet_FreePacket(pstruPacket)
NetSim_PACKET * waitingforCTS
NetSim_PACKET * currentProcessingPacket
struct stru_IEEE1609_Mac_Var::stru_Channel_Info CHANNEL_INFO
IEEE1609_BUFFER buffer[2]
unsigned long long int nEventId
struct stru_NetSim_Packet * pstruNextPacket