4#include "../Application/Application.h"
22 int generationrate = 0;
244 switch(pstruPacket->
nQOS)
298 pstruPrevInfo->
next = pstruInfo->
next;
308 pstruPrevInfo = pstruInfo;
309 pstruInfo = pstruInfo->
next;
348 for(nLoop=0;nLoop<
MAX_FID;nLoop++)
QUALITY_OF_SERVICE fnGetQOS(char *Qos)
int fn_NetSim_CR_GetFID(QUALITY_OF_SERVICE nQOS)
@ MMM_DSA_REQ
Dynamic service addition request, This message is sent by BS or CPE to create new service request.
@ MMM_DSA_RSP
This message is generated in response to DSA-REQ message.
@ MMM_DSD_REQ
Dynamic service deletion request.
#define CR_CONTROL_PACKET(MMM)
int fn_NetSim_CR_AllocBandwidth(NETSIM_ID nSID, QUALITY_OF_SERVICE nQos, UPLINKALLOCINFO **ppstruInfo, unsigned int nSlotRequired, unsigned int nTotalSlot)
int fn_NetSim_CR_BS_ProcessDSDReq()
int fn_NetSim_CR_BS_ProcessDSAReq()
int fn_NetSim_CR_CreateServiceFlow(NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId, int nId, NetSim_PACKET *packet, double dTime)
int fn_NetSim_CR_CPE_ProcessDSA_RSP()
int fn_NetSim_CR_CPE_ProcessDSD_REP()
int fn_NetSim_TerminateServiceFlow(NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId, NetSim_PACKET *pstruPacket)
#define DSX_IE_FIXED_SIZE
unsigned int g_nTransactionId
@ ServiceState_Adding_remote
#define fnpAllocateMemory(count, size)
#define PACKET_MACPROTOCOLDATA(pPacket)
NETSIM_ID get_first_dest_from_packet(NetSim_PACKET *packet)
void add_dest_to_packet(NetSim_PACKET *packet, NETSIM_ID dest)
#define DEVICE_MAC_NW_INTERFACE(DeviceId, InterfaceId)
#define DEVICE_HWADDRESS(DeviceId, InterfaceId)
#define DEVICE_PHYVAR(DeviceId, InterfaceId)
@ MAC_PROTOCOL_IEEE802_22
EXPORTED struct stru_NetSim_Network * NETWORK
#define DEVICE_MACVAR(DeviceId, InterfaceId)
EXPORTED struct stru_NetSim_EventDetails * pstruEventDetails
#define fn_NetSim_Packet_CopyPacket(pstruPacket)
#define fn_NetSim_Packet_CreatePacket(layer)
#define fnpAddEvent(pstruEvent)
#define fn_NetSim_Packet_AddPacketToList(pstruBuffer, pstruPacket, nInsertionType)
int * anSIDFromDevId
Have the list of CPE associated with BS. If SID is set CPE is associated else not.
struct stru_802_22_UplinkAlloctioninfo * uplinkAllocInfo
CPE structure for IEEE 802.22 MAC.
double T7
Wait for DSA/DSC/DSD Response timeout. Max 1 sec.
CPE_METRICS struCPEMetrics
CR_SERVICE * pstruServiceParameter
NetSim_PACKET * pstruQueuedPacketList[MAX_FID]
double T14
Wait for DSx-RSP/DSX-RVD Timeout. Max 200 ms.
unsigned int nUPlinkSymbol
int nOFDMSlots
OFDM Slot = 1 symbol * 1 subChannel.
struct stru_802_22_UplinkAlloctioninfo * next
Structure to store application information.
unsigned int nTransactionId
unsigned int nTransactionID
unsigned int nTransactionID
unsigned int nTransactionID
unsigned int nSFDirection
unsigned int maxSustainedTrafficrate
unsigned int nDSA_REQReceived
unsigned int nDSD_REPSent
unsigned int nDSD_REQReceived
unsigned int nDSA_REPSent
unsigned int nDSA_REPReceived
unsigned int nDSD_REQSent
unsigned int nDSA_REQSent
unsigned int nDSD_REPReceived
struct stru_NetSim_Packet * pstruPacketlist
netsimDEVICE_TYPE nDeviceType
struct stru_NetSim_Packet * pPacket
netsimDEVICE_TYPE nDeviceType
struct stru_NetSim_Device ** ppstruDeviceList
MAC_LAYER_PROTOCOL nMACProtocol
void * Packet_MACProtocol
PNETSIM_MACADDRESS szSourceMac
struct stru_NetSim_Packet_AppLayer * pstruAppData
unsigned int nControlDataType
struct stru_NetSim_Packet * pstruNextPacket
PACKET_PRIORITY nPacketPriority
struct stru_NetSim_Packet_MACLayer * pstruMacData