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

Go to the source code of this file.

Functions

int fn_NetSim_DSR_Init_F (struct stru_NetSim_Network *NETWORK_Formal, NetSim_EVENTDETAILS *pstruEventDetails_Formal, char *pszAppPath_Formal, char *pszWritePath_Formal, int nVersion_Type, void **fnPointer)
 
int fn_NetSim_DSR_Configure_F (void **var)
 
int fn_NetSim_DSR_CopyPacket_F (const NetSim_PACKET *destPacket, const NetSim_PACKET *srcPacket)
 
int fn_NetSim_DSR_FreePacket_F (NetSim_PACKET *packet)
 
int fn_NetSim_DSR_Metrics_F (PMETRICSWRITER filename)
 
int fn_NetSim_DSR_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_DSR_Configure (void **var)
 
int fn_NetSim_DSR_Run ()
 
char * fn_NetSim_DSR_Trace (NETSIM_ID nSubeventid)
 
int fn_NetSim_DSR_CopyPacket (const NetSim_PACKET *destPacket, const NetSim_PACKET *srcPacket)
 
int fn_NetSim_DSR_FreePacket (NetSim_PACKET *packet)
 
int fn_NetSim_DSR_Metrics (PMETRICSWRITER filename)
 
int fn_NetSim_DSR_Finish ()
 
char * fn_NetSim_DSR_ConfigPacketTrace ()
 
char * fn_NetSim_DSR_WritePacketTrace ()
 

Function Documentation

◆ fn_NetSim_DSR_ConfigPacketTrace()

char * fn_NetSim_DSR_ConfigPacketTrace ( )

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

Definition at line 224 of file DSR.c.

◆ fn_NetSim_DSR_Configure()

int fn_NetSim_DSR_Configure ( void **  var)

This is the DSR configure function.

Definition at line 45 of file DSR.c.

Here is the call graph for this function:

◆ fn_NetSim_DSR_Configure_F()

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

◆ fn_NetSim_DSR_CopyPacket()

int fn_NetSim_DSR_CopyPacket ( const NetSim_PACKET destPacket,
const NetSim_PACKET srcPacket 
)

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

Definition at line 195 of file DSR.c.

Here is the call graph for this function:

◆ fn_NetSim_DSR_CopyPacket_F()

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

◆ fn_NetSim_DSR_Finish()

int fn_NetSim_DSR_Finish ( )

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

Definition at line 217 of file DSR.c.

Here is the call graph for this function:

◆ fn_NetSim_DSR_FreePacket()

int fn_NetSim_DSR_FreePacket ( NetSim_PACKET packet)

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

Definition at line 202 of file DSR.c.

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

◆ fn_NetSim_DSR_FreePacket_F()

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

◆ fn_NetSim_DSR_Init()

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

DSR Init function initializes the DSR parameters.

Definition at line 33 of file DSR.c.

Here is the call graph for this function:

◆ fn_NetSim_DSR_Init_F()

int fn_NetSim_DSR_Init_F ( struct stru_NetSim_Network NETWORK_Formal,
NetSim_EVENTDETAILS pstruEventDetails_Formal,
char *  pszAppPath_Formal,
char *  pszWritePath_Formal,
int  nVersion_Type,
void **  fnPointer 
)
Here is the caller graph for this function:

◆ fn_NetSim_DSR_Metrics()

int fn_NetSim_DSR_Metrics ( PMETRICSWRITER  filename)

This function call WLAN Metrics function in lib file to write the Metrics in Metrics.txt.

Definition at line 209 of file DSR.c.

Here is the call graph for this function:

◆ fn_NetSim_DSR_Metrics_F()

int fn_NetSim_DSR_Metrics_F ( PMETRICSWRITER  filename)
Here is the caller graph for this function:

◆ fn_NetSim_DSR_Run()

int fn_NetSim_DSR_Run ( )
This is the DSR Run function which gets called by the IP layer for routing the data
by the DSR Network Routing Protocol. It includes the events NETWORK_OUT_EVENT,
NETWORK_OUT_EVENT -
It process the Data Packets which arrive at the NetworkOut layer to route the packet.
NETWORK_IN_EVENT -
It processes Data Packets, Route Request Packets, Route Reply Packets, Route Error
Packets, Ack Packet
It Process the DSR Route Request timeout and the DSR Maintenance Buffer timeout.
@ Data
Definition: IEEE802_11.h:133
@ NETWORK_OUT_EVENT
Definition: Stack.h:108
@ TIMER_EVENT
Definition: Stack.h:114
@ NETWORK_IN_EVENT
Definition: Stack.h:109
void IP(uint state[], uchar in[])
Definition: des.c:116

Definition at line 65 of file DSR.c.

Here is the call graph for this function:

◆ fn_NetSim_DSR_Trace()

char * fn_NetSim_DSR_Trace ( NETSIM_ID  nSubeventid)

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

Definition at line 177 of file DSR.c.

◆ fn_NetSim_DSR_WritePacketTrace()

char * fn_NetSim_DSR_WritePacketTrace ( )

This function will return the string to write packet trace.

Definition at line 231 of file DSR.c.