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

Go to the source code of this file.

Functions

int fn_NetSim_DSR_ForwardRERR (NetSim_EVENTDETAILS *pstruEventDetails)
 
NETSIM_IPAddress fnGetPrevHop (NetSim_PACKET *packet)
 
int fn_NetSim_DSR_GenerateRERR (DSR_MAINT_BUFFER *maintBuffer, NetSim_EVENTDETAILS *pstruEventDetails)
 
int fn_NetSim_DSR_ProcessRerr (NetSim_EVENTDETAILS *pstruEventDetails)
 

Function Documentation

◆ fn_NetSim_DSR_ForwardRERR()

int fn_NetSim_DSR_ForwardRERR ( NetSim_EVENTDETAILS pstruEventDetails)

This function frees the route error packet if RERR packet reaches the final destination. Otherwise, it forwards the REER packet to the previous HOP.

Definition at line 114 of file RouteError.c.

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

◆ fn_NetSim_DSR_GenerateRERR()

int fn_NetSim_DSR_GenerateRERR ( DSR_MAINT_BUFFER maintBuffer,
NetSim_EVENTDETAILS pstruEventDetails 
)

This function generates a route error packet.

Definition at line 33 of file RouteError.c.

Here is the call graph for this function:

◆ fn_NetSim_DSR_ProcessRerr()

int fn_NetSim_DSR_ProcessRerr ( NetSim_EVENTDETAILS pstruEventDetails)

This function process the route error that is received. It deletes the entry of the route to the target from the route cache and then forwards the Route error to the previous HOP.

Definition at line 97 of file RouteError.c.

Here is the call graph for this function:

◆ fnGetPrevHop()

NETSIM_IPAddress fnGetPrevHop ( NetSim_PACKET packet)

This function gets the previous hop to send the route error to.

Definition at line 21 of file RouteError.c.

Here is the caller graph for this function: