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

Go to the source code of this file.

Functions

int fn_NetSim_AODV_Init_F ()
 
char * fn_NetSim_AODV_Trace_F (NETSIM_ID)
 
int fn_NetSim_AODV_FreePacket_F ()
 
int fn_NetSim_AODV_CopyPacket_F ()
 
int fn_NetSim_AODV_Metrics_F (PMETRICSWRITER metricsWriter)
 
int fn_NetSim_AODV_Configure_F ()
 
char * fn_NetSim_AODV_ConfigPacketTrace_F ()
 
int fn_NetSim_AODV_Finish_F ()
 
char * fn_NetSim_AODV_WritePacketTrace_F ()
 
int fn_NetSim_AODV_Init ()
 
int fn_NetSim_AODV_Run ()
 
char * fn_NetSim_AODV_Trace (NETSIM_ID id)
 
int fn_NetSim_AODV_FreePacket (NetSim_PACKET *packet)
 
int fn_NetSim_AODV_CopyPacket (const NetSim_PACKET *destPacket, const NetSim_PACKET *srcPacket)
 
int fn_NetSim_AODV_Metrics (PMETRICSWRITER metricsWriter)
 
int fn_NetSim_AODV_Configure (void **var)
 
char * fn_NetSim_AODV_ConfigPacketTrace ()
 
int fn_NetSim_AODV_Finish ()
 
char * fn_NetSim_AODV_WritePacketTrace ()
 

Function Documentation

◆ fn_NetSim_AODV_ConfigPacketTrace()

char * fn_NetSim_AODV_ConfigPacketTrace ( )

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

Definition at line 212 of file AODV.c.

Here is the call graph for this function:

◆ fn_NetSim_AODV_ConfigPacketTrace_F()

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

◆ fn_NetSim_AODV_Configure()

int fn_NetSim_AODV_Configure ( void **  var)

This function is called by NetworkStack.dll, while configuring the device NETWORK layer for AODV protocol.

Definition at line 205 of file AODV.c.

Here is the call graph for this function:

◆ fn_NetSim_AODV_Configure_F()

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

◆ fn_NetSim_AODV_CopyPacket()

int fn_NetSim_AODV_CopyPacket ( const NetSim_PACKET destPacket,
const NetSim_PACKET srcPacket 
)

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

Definition at line 190 of file AODV.c.

Here is the call graph for this function:

◆ fn_NetSim_AODV_CopyPacket_F()

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

◆ fn_NetSim_AODV_Finish()

int fn_NetSim_AODV_Finish ( )

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

Definition at line 220 of file AODV.c.

Here is the call graph for this function:

◆ fn_NetSim_AODV_Finish_F()

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

◆ fn_NetSim_AODV_FreePacket()

int fn_NetSim_AODV_FreePacket ( NetSim_PACKET packet)

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

Definition at line 182 of file AODV.c.

Here is the call graph for this function:

◆ fn_NetSim_AODV_FreePacket_F()

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

◆ fn_NetSim_AODV_Init()

int fn_NetSim_AODV_Init ( )

AODV Init function initializes the AODV parameters.

Definition at line 35 of file AODV.c.

Here is the call graph for this function:

◆ fn_NetSim_AODV_Init_F()

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

◆ fn_NetSim_AODV_Metrics()

int fn_NetSim_AODV_Metrics ( PMETRICSWRITER  metricsWriter)

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

Definition at line 197 of file AODV.c.

Here is the call graph for this function:

◆ fn_NetSim_AODV_Metrics_F()

int fn_NetSim_AODV_Metrics_F ( PMETRICSWRITER  metricsWriter)
Here is the caller graph for this function:

◆ fn_NetSim_AODV_Run()

int fn_NetSim_AODV_Run ( )
This is the AODV 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 AODV Route Request timeout and the AODV 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 54 of file AODV.c.

Here is the call graph for this function:

◆ fn_NetSim_AODV_Trace()

char * fn_NetSim_AODV_Trace ( NETSIM_ID  id)

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

Definition at line 175 of file AODV.c.

Here is the call graph for this function:

◆ fn_NetSim_AODV_Trace_F()

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

◆ fn_NetSim_AODV_WritePacketTrace()

char * fn_NetSim_AODV_WritePacketTrace ( )

This function will return the string to write packet trace.

Definition at line 227 of file AODV.c.

Here is the call graph for this function:

◆ fn_NetSim_AODV_WritePacketTrace_F()

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