16#include "../Application/Application.h"
241 unsigned int nPacketType;
276 gsmPacket=
calloc(1,
sizeof* gsmPacket);
305 gsmPacket=
calloc(1,
sizeof* gsmPacket);
332 gsmPacket=
calloc(1,
sizeof* gsmPacket);
388 gsmPacket=
calloc(1,
sizeof* gsmPacket);
436 NETSIM_ID nConnectedDevice,nConnectedInterface,nLinkId;
442 &(nConnectedInterface));
553 gsmPacket =
calloc(1,
sizeof* gsmPacket);
725 unsigned int nTimeSlot=gsmPacket->
nTimeSlot;
int fn_NetSim_Cellular_MS_ReassembleBurst()
int fn_NetSim_Cellular_MS_ProcessCallRequest()
int fn_NetSim_Cellular_Run()
int fn_NetSim_Cellular_VLR(NETSIM_ID nMSCId, NETSIM_ID nId, NETSIM_ID *nBTSId, NETSIM_ID *nInterfaceId)
int fn_NetSim_Cellular_BS_AssignTimeSlot(NetSim_PACKET *packet, NETSIM_ID nBTSId)
int fn_NetSim_Cellular_Msc_ProcessPacket()
int fn_NetSim_Cellular_MS_PhyOut()
int fn_NetSim_Cellular_BS_ReleaseChannel()
int fn_NetSim_Cellular_TransmitOnwireline()
int fn_NetSim_Cellular_allocateChannel(NetSim_PACKET *packet)
int fn_NetSim_Cellular_MS_SendChannelRelease(Cellular_CHANNEL *channel, NETSIM_ID nMSId, NETSIM_ID nMSInterface, double time)
int fn_NetSim_Cellular_MS_ProcessCallResponse()
int fn_NetSim_Cellular_ChannelResponse(NetSim_PACKET *packet)
int fn_NetSim_Cellular_ForwardToMSC()
int fn_NetSim_Cellular_AddPacketToBuffer(NetSim_PACKET *packet, NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId)
#define CELLULAR_PACKET_TYPE(protocol, type)
@ ChannelType_TRAFFICCHANNEL
NetSim_PACKET * fn_NetSim_Cellular_createPacket(double time, unsigned int nPacketType, NETSIM_ID nSourceId, NETSIM_ID nDestinationId, double dSize, MAC_LAYER_PROTOCOL protocol)
int fn_NetSim_Cellular_AllocateChannel(NetSim_EVENTDETAILS *pstruEventDetails, NetSim_PACKET *packet)
#define CELLULAR_SUBEVENT(protocol, type)
int fn_NetSim_Cellular_ChannelResponseForHandover()
int fn_NetSim_Cellular_DropCall()
@ PacketType_CallRejected
@ PacketType_ChannelGranted
@ PacketType_ChannelRequest
@ PacketType_ChannelRelease
@ PacketType_ChannelRequestForIncoming
@ PacketType_CallAccepted
@ PacketType_ChannelRequestForHandover
@ PacketType_ChannelUngranted
int fn_NetSim_GSM_BS_PhyOut()
int fn_NetSim_Cellular_SendCallend(NETSIM_ID nMSID, NETSIM_ID nMSInterface, NETSIM_ID nDestinationId, double time)
@ Status_ChannelRequestedForIncoming
@ Status_ChannelRequestedForHandover
@ Status_ChannelRequested
int isCellularChannelAllocated(NETSIM_ID nMSId, NETSIM_ID nInterfaceId, NETSIM_ID nApplicationId)
double fn_NetSim_GSM_GetPacketStartTime(double dCurrentTime, unsigned int nTimeSlot)
#define fnNetSimError(x,...)
double fnGetPacketSize(NetSim_PACKET *pstruData)
bool fn_NetSim_GetBufferStatus(NetSim_BUFFER *pstruBuffer)
NetSim_PACKET * fn_NetSim_Packet_GetPacketFromBuffer(NetSim_BUFFER *pstruBuffer, int nFlag)
NETSIM_ID get_first_dest_from_packet(NetSim_PACKET *packet)
NETSIM_ID fn_NetSim_Stack_GetConnectedDevice(NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId, NETSIM_ID *nConnectedDevId, NETSIM_ID *nConnectedInterfaceId)
#define DEVICE_MAC_NW_INTERFACE(DeviceId, InterfaceId)
#define DEVICE_MACLAYER(DeviceId, InterfaceId)
#define DEVICE_TYPE(DeviceId)
EXPORTED struct stru_NetSim_Network * NETWORK
#define DEVICE_MACVAR(DeviceId, InterfaceId)
EXPORTED struct stru_NetSim_EventDetails * pstruEventDetails
#define DEVICE_PHYLAYER(DeviceId, InterfaceId)
#define fn_NetSim_Metrics_Add(packet)
#define fn_NetSim_Packet_FreePacket(pstruPacket)
#define fn_NetSim_WritePacketTrace(pstruPacket)
#define fnpAddEvent(pstruEvent)
Structure for Erlang_call application.
Structure to store application information.
struct stru_Cellular_ChannelList * pstruChannelList
struct stru_Cellular_ChannelList * pstru_NextChannel
CELLULAR_CHANNEL_TYPE nChannelType
unsigned int nRequestType
unsigned int nAllocationFlag
struct stru_Cellular_ChannelList * channel
NetSim_PACKET **** pstruPacketList
Cellular_CHANNEL * pstruAllocatedChannel
Cellular_MS_Metrics MSMetrics
unsigned int nChannelRequestSent
unsigned int nCallAccepted
unsigned int nCallRequestReceived
unsigned int nCallBlocked
unsigned int nCallRejected
unsigned int nCallRequestSent
struct stru_NetSim_Interface ** ppstruInterfaceList
struct stru_NetSim_Packet * pPacket
netsimDEVICE_TYPE nDeviceType
struct stru_NetSim_PhysicalLayer * pstruPhysicalLayer
union stru_NetSim_Links::uni_NetSim_MediumProp puniMedProp
struct stru_NetSim_Links ** ppstruNetSimLinks
struct stru_NetSim_Device ** ppstruDeviceList
void * Packet_MACProtocol
struct stru_NetSim_Packet_AppLayer * pstruAppData
struct stru_NetSim_Packet_PhyLayer * pstruPhyData
unsigned int nControlDataType
struct stru_NetSim_Packet * pstruNextPacket
struct stru_NetSim_Packet_MACLayer * pstruMacData
PHYSICAL_LAYER_MEDIUM nPhyMedium
struct stru_NetSim_Links::uni_NetSim_MediumProp::stru_NetSim_WiredLink pstruWiredLink