NetSim Source Code Help
Loading...
Searching...
No Matches
Aloha.c File Reference
#include "main.h"
#include "Aloha.h"
#include "Aloha_enum.h"
Include dependency graph for Aloha.c:

Go to the source code of this file.

Functions

void send_to_phy ()
 
void wait_for_random_time ()
 
int fn_NetSim_Aloha_handleMobility (NETSIM_ID d)
 
PHY_MODULATION getModulationFromString (char *val)
 
int fn_NetSim_Aloha_Configure (void **var)
 
int fn_NetSim_Aloha_Init (struct stru_NetSim_Network *NETWORK_Formal, NetSim_EVENTDETAILS *pstruEventDetails_Formal, char *pszAppPath_Formal, char *pszWritePath_Formal, int nVersion_Type, void **fnPointer)
 
int fn_NetSim_Aloha_Run ()
 
int fn_NetSim_Aloha_Finish ()
 
char * fn_NetSim_Aloha_Trace (int nSubEvent)
 
int fn_NetSim_Aloha_FreePacket (NetSim_PACKET *pstruPacket)
 
int fn_NetSim_Aloha_CopyPacket (NetSim_PACKET *pstruDestPacket, NetSim_PACKET *pstruSrcPacket)
 
int fn_NetSim_Aloha_Metrics (PMETRICSWRITER metricsWriter)
 
char * fn_NetSim_Aloha_ConfigPacketTrace ()
 
char * fn_NetSim_Aloha_WritePacketTrace (NetSim_PACKET *pstruPacket, char **ppszTrace)
 

Function Documentation

◆ fn_NetSim_Aloha_ConfigPacketTrace()

char * fn_NetSim_Aloha_ConfigPacketTrace ( )

This function will return the string to write packet trace heading.

Definition at line 207 of file Aloha.c.

◆ fn_NetSim_Aloha_Configure()

int fn_NetSim_Aloha_Configure ( void **  var)

Definition at line 42 of file Aloha.c.

Here is the call graph for this function:

◆ fn_NetSim_Aloha_CopyPacket()

int fn_NetSim_Aloha_CopyPacket ( NetSim_PACKET pstruDestPacket,
NetSim_PACKET pstruSrcPacket 
)

This function is called by NetworkStack.dll, to copy the aloha protocol details from source packet to destination.

Definition at line 191 of file Aloha.c.

◆ fn_NetSim_Aloha_Finish()

int fn_NetSim_Aloha_Finish ( )

Definition at line 171 of file Aloha.c.

Here is the call graph for this function:

◆ fn_NetSim_Aloha_FreePacket()

int fn_NetSim_Aloha_FreePacket ( NetSim_PACKET pstruPacket)

Definition at line 182 of file Aloha.c.

◆ fn_NetSim_Aloha_handleMobility()

int fn_NetSim_Aloha_handleMobility ( NETSIM_ID  d)

Definition at line 171 of file Component 2/Aloha/PropagationModel.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fn_NetSim_Aloha_Init()

int fn_NetSim_Aloha_Init ( struct stru_NetSim_Network NETWORK_Formal,
NetSim_EVENTDETAILS pstruEventDetails_Formal,
char *  pszAppPath_Formal,
char *  pszWritePath_Formal,
int  nVersion_Type,
void **  fnPointer 
)

Definition at line 115 of file Aloha.c.

Here is the call graph for this function:

◆ fn_NetSim_Aloha_Metrics()

int fn_NetSim_Aloha_Metrics ( PMETRICSWRITER  metricsWriter)

This function write the Metrics

Definition at line 199 of file Aloha.c.

◆ fn_NetSim_Aloha_Run()

int fn_NetSim_Aloha_Run ( )

Definition at line 147 of file Aloha.c.

Here is the call graph for this function:

◆ fn_NetSim_Aloha_Trace()

char * fn_NetSim_Aloha_Trace ( int  nSubEvent)

Definition at line 178 of file Aloha.c.

◆ fn_NetSim_Aloha_WritePacketTrace()

char * fn_NetSim_Aloha_WritePacketTrace ( NetSim_PACKET pstruPacket,
char **  ppszTrace 
)

This function will return the string to write packet trace.

Definition at line 215 of file Aloha.c.

◆ getModulationFromString()

PHY_MODULATION getModulationFromString ( char *  val)

Definition at line 21 of file Aloha.c.

Here is the caller graph for this function:

◆ send_to_phy()

void send_to_phy ( )

Definition at line 31 of file CSMACDMac.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ wait_for_random_time()

void wait_for_random_time ( )

Definition at line 19 of file CSMACDMac.c.

Here is the call graph for this function:
Here is the caller graph for this function: