14 unsigned int nDSIECount=0;
16 unsigned int nPacketSize;
19 unsigned int SlotRequire;
38 for (i = 0; i < destCount; i++)
56 pstruPacket->
nReceiverId = destCount > 1 ? 0 : dest[0];
73 pstruTempDSMAPIE =
calloc(1,
sizeof *pstruTempDSMAPIE);
78 if(!pstruFirstDSMAPIE)
80 pstruFirstDSMAPIE = pstruTempDSMAPIE;
96 while(pstruFirstDSMAPIE)
99 pstruTempDSMAPIE = pstruFirstDSMAPIE;
100 pstruFirstDSMAPIE = pstruFirstDSMAPIE->
pstruNext;
101 free(pstruTempDSMAPIE);
int fn_NetSim_CR_FillDSFrame(unsigned int size, DS_BURST **pstruDSBurst, SYMBOL_PARAMETER *pstruSymbolParameter, int nFlag, unsigned int *nSlotRequire)
@ MMM_DS_MAP
Downstream access definition, defines the access to the downstream information.
int fn_NetSim_CR_AddPacketToDSBurst(DS_BURST *pstruDSBurst, NetSim_PACKET *pstruPacket)
NetSim_PACKET * fn_NetSim_CR_GenerateBroadcastCtrlPacket(int nDeviceId, int nInterfaceId, MANAGEMENT_MESSAGE nMessageType)
int fn_NetSim_CR_CPE_ProcessDSMAP()
NetSim_PACKET * fn_NetSim_CR_FormDSMAP(NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId)
struct stru_ExtentedDSMAPIE ExtendedDSIE
#define fnpAllocateMemory(count, size)
double fnGetPacketSize(NetSim_PACKET *pstruData)
NETSIM_ID * get_dest_from_packet(NetSim_PACKET *packet, UINT *count)
bool isBroadcastPacket(NetSim_PACKET *packet)
#define DEVICE_PHYVAR(DeviceId, InterfaceId)
#define DEVICE_MACVAR(DeviceId, InterfaceId)
#define fn_NetSim_Packet_FreePacket(pstruPacket)
int * anSIDFromDevId
Have the list of CPE associated with BS. If SID is set CPE is associated else not.
NetSim_PACKET * pstruDSPacketList
DS_BURST ** pstruDSBurst
DS-Burst each is one symbol long.
unsigned int nFrameNumber
Current super frame number
SYMBOL_PARAMETER * pstruSymbolParameter
unsigned int nManagementMessageType
struct stru_802_22_DSMAP_IE ** pstruIE
unsigned int nPaddingBits
struct stru_ExtentedDSMAPIE * pstruNext
struct stru_NetSim_Packet * pstruNextPacket