19 if(pstruFragmentList == NULL)
24 while(pstruFragmentList)
39 if(pstruFragmentList->pstruAppData && pstruPacket->
pstruAppData)
60 pstruprevFrag = pstruFragmentList;
65 return pstruFragmentList;
100 if(pstruFragmentList == NULL)
105 while(pstruFragmentList)
121 if(pstruFragmentList->pstruAppData && pstruPacket->
pstruAppData)
142 pstruprevFrag = pstruFragmentList;
145 if(pstruFragmentList)
180 if(dSize <= dSDUSize)
201 nCount = (int)ceil(dSize/dSDUSize);
224 pstruFragment->
purpos = 0;
226 pstruFragment->
length = (
unsigned int)dSDUSize;
227 pstruFragment->
FSN = ++n;
253 pstruFragment->
purpos = 0;
254 pstruFragment->
length = (
unsigned int)dSDUSize;
255 pstruFragment->
FSN = ++n;
#define GMH_SIZE
GMH Size is 4 Bytes.
unsigned int g_FragmentId
#define FRAGMENT_SIZE
Fragment size is 3 Bytes.
NetSim_PACKET * fn_NetSim_CR_BS_PackPacket(BS_MAC *pstruBSMac, NetSim_PACKET *pstruPacket)
int fn_NetSim_CR_CPE_PackPacket()
int fn_NetSim_CR_FragmentPacket(NetSim_PACKET *pstruPacket, double dSDUSize)
#define fnpAllocateMemory(count, size)
#define PACKET_MACPROTOCOLDATA(pPacket)
NETWORK_LAYER_PROTOCOL fn_NetSim_Stack_GetNWProtocol(NETSIM_ID nDeviceId)
@ MAC_PROTOCOL_IEEE802_22
#define DEVICE_MACVAR(DeviceId, InterfaceId)
EXPORTED struct stru_NetSim_EventDetails * pstruEventDetails
#define fn_NetSim_Packet_CopyPacket(pstruPacket)
#define fn_NetSim_Packet_FreePacket(pstruPacket)
#define fnpAddEvent(pstruEvent)
NetSim_PACKET * pstruFragmentPacketList
CPE structure for IEEE 802.22 MAC.
NetSim_PACKET * pstruFragmentPacketList
struct stru_NetSim_Packet * pPacket
MAC_LAYER_PROTOCOL nMACProtocol
void * Packet_MACProtocol
struct stru_NetSim_Packet_AppLayer * pstruAppData
struct stru_NetSim_Packet_PhyLayer * pstruPhyData
struct stru_NetSim_Packet_NetworkLayer * pstruNetworkData
struct stru_NetSim_Packet * pstruNextPacket
struct stru_NetSim_Packet_MACLayer * pstruMacData