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

Go to the source code of this file.

Functions

char * GetStringRPL_Subevent (NETSIM_ID)
 
int fn_NetSim_RPL_Init_F ()
 
int fn_NetSim_RPL_Finish_F ()
 
int fn_NetSim_RPL_Configure_F (void **var)
 
int fn_NetSim_RPL_FreePacket_F (NetSim_PACKET *packet)
 
int fn_NetSim_RPL_CopyPacket_F (NetSim_PACKET *destPacket, NetSim_PACKET *srcPacket)
 
int fn_NetSim_RPL_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_RPL_Run ()
 
int fn_NetSim_RPL_Finish ()
 
char * fn_NetSim_RPL_Trace (NETSIM_ID nSubEvent)
 
int fn_NetSim_RPL_Configure (void **var)
 
int fn_NetSim_RPL_FreePacket (NetSim_PACKET *pstruPacket)
 
int fn_NetSim_RPL_CopyPacket (NetSim_PACKET *pstruDestPacket, NetSim_PACKET *pstruSrcPacket)
 
int fn_NetSim_RPL_Metrics (PMETRICSWRITER metricsWriter)
 
char * fn_NetSim_RPL_ConfigPacketTrace ()
 
char * fn_NetSim_RPL_WritePacketTrace (NetSim_PACKET *pstruPacket, char **ppszTrace)
 
static PRPL_ROOT rpl_root_info_create ()
 
void rpl_node_init (NETSIM_ID d)
 
void start_as_root (NETSIM_ID d)
 

Function Documentation

◆ fn_NetSim_RPL_ConfigPacketTrace()

char * fn_NetSim_RPL_ConfigPacketTrace ( )

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

Definition at line 155 of file RPL.c.

◆ fn_NetSim_RPL_Configure()

int fn_NetSim_RPL_Configure ( void **  var)

This function is called by NetworkStack.dll, while configuring the device for RPL protocol.

Definition at line 122 of file RPL.c.

Here is the call graph for this function:

◆ fn_NetSim_RPL_Configure_F()

int fn_NetSim_RPL_Configure_F ( void **  var)
Here is the caller graph for this function:

◆ fn_NetSim_RPL_CopyPacket()

int fn_NetSim_RPL_CopyPacket ( NetSim_PACKET pstruDestPacket,
NetSim_PACKET pstruSrcPacket 
)

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

Definition at line 139 of file RPL.c.

Here is the call graph for this function:

◆ fn_NetSim_RPL_CopyPacket_F()

int fn_NetSim_RPL_CopyPacket_F ( NetSim_PACKET destPacket,
NetSim_PACKET srcPacket 
)
Here is the caller graph for this function:

◆ fn_NetSim_RPL_Finish()

int fn_NetSim_RPL_Finish ( )

This function is called by NetworkStack.dll, once simulation end to free the allocated memory for the network.

Definition at line 104 of file RPL.c.

Here is the call graph for this function:

◆ fn_NetSim_RPL_Finish_F()

int fn_NetSim_RPL_Finish_F ( )
Here is the caller graph for this function:

◆ fn_NetSim_RPL_FreePacket()

int fn_NetSim_RPL_FreePacket ( NetSim_PACKET pstruPacket)

This function is called by NetworkStack.dll, to free the RPL protocol data.

Definition at line 130 of file RPL.c.

Here is the call graph for this function:

◆ fn_NetSim_RPL_FreePacket_F()

int fn_NetSim_RPL_FreePacket_F ( NetSim_PACKET packet)
Here is the caller graph for this function:

◆ fn_NetSim_RPL_Init()

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

RPL Init function initializes the RPL parameters.

Definition at line 28 of file RPL.c.

Here is the call graph for this function:

◆ fn_NetSim_RPL_Init_F()

int fn_NetSim_RPL_Init_F ( )
Here is the caller graph for this function:

◆ fn_NetSim_RPL_Metrics()

int fn_NetSim_RPL_Metrics ( PMETRICSWRITER  metricsWriter)

This function write the Metrics

Definition at line 147 of file RPL.c.

◆ fn_NetSim_RPL_Run()

int fn_NetSim_RPL_Run ( )

This function is called by NetworkStack.dll, whenever the event gets triggered inside the NetworkStack.dll for the RPL protocol

Definition at line 42 of file RPL.c.

Here is the call graph for this function:

◆ fn_NetSim_RPL_Trace()

char * fn_NetSim_RPL_Trace ( NETSIM_ID  nSubEvent)

This function is called by NetworkStack.dll, while writing the event trace to get the sub event as a string.

Definition at line 113 of file RPL.c.

Here is the call graph for this function:

◆ fn_NetSim_RPL_WritePacketTrace()

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

This function will return the string to write packet trace.

Definition at line 163 of file RPL.c.

◆ GetStringRPL_Subevent()

char * GetStringRPL_Subevent ( NETSIM_ID  )
Here is the caller graph for this function:

◆ rpl_node_init()

void rpl_node_init ( NETSIM_ID  d)

Definition at line 181 of file RPL.c.

Here is the call graph for this function:

◆ rpl_root_info_create()

static PRPL_ROOT rpl_root_info_create ( )
static

Definition at line 168 of file RPL.c.

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

◆ start_as_root()

void start_as_root ( NETSIM_ID  d)

Definition at line 197 of file RPL.c.

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