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

Go to the source code of this file.

Functions

int fn_NetSim_AODV_GenerateRREP (NetSim_EVENTDETAILS *pstruEventDetails)
 
int fn_NetSim_AODV_ProcessRREP (NetSim_EVENTDETAILS *pstruEventDetails)
 
int fn_NetSim_AODV_ForwardRREP (NetSim_EVENTDETAILS *pstruEventDetails)
 
int fn_NetSim_AODV_GenerateRREPByIntermediate (NetSim_EVENTDETAILS *pstruEventDetails)
 

Function Documentation

◆ fn_NetSim_AODV_ForwardRREP()

int fn_NetSim_AODV_ForwardRREP ( NetSim_EVENTDETAILS pstruEventDetails)

This functiopn is used to forward the RREP packet to the previous hop, else the packet is freed.

Definition at line 109 of file RREP.c.

Here is the call graph for this function:

◆ fn_NetSim_AODV_GenerateRREP()

int fn_NetSim_AODV_GenerateRREP ( NetSim_EVENTDETAILS pstruEventDetails)

This function generates a route reply

Definition at line 22 of file RREP.c.

Here is the call graph for this function:

◆ fn_NetSim_AODV_GenerateRREPByIntermediate()

int fn_NetSim_AODV_GenerateRREPByIntermediate ( NetSim_EVENTDETAILS pstruEventDetails)

This function generates a RREP by an intermediate node if the intermediate node has a route to the target entered in the route table.

Definition at line 140 of file RREP.c.

Here is the call graph for this function:

◆ fn_NetSim_AODV_ProcessRREP()

int fn_NetSim_AODV_ProcessRREP ( NetSim_EVENTDETAILS pstruEventDetails)

This function processes a route reply. It adds the entry of the next hop in Route Table, transmits the packets in FIFO Buffer and inserts precursor. Deletes the RREQ entry from sent table and forwards the rrep if the device is not the source node.

Definition at line 64 of file RREP.c.

Here is the call graph for this function: