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

Go to the source code of this file.

Functions

int fn_NetSim_AODV_PacketDropNotification (NetSim_PACKET *packet)
 
int fn_NetSim_AODV_GeneralPacketProcessing (NetSim_EVENTDETAILS *pstruEventDetails)
 

Function Documentation

◆ fn_NetSim_AODV_GeneralPacketProcessing()

int fn_NetSim_AODV_GeneralPacketProcessing ( NetSim_EVENTDETAILS pstruEventDetails)

This function is called in the Network Out Event for routing of the packet.

If the Device route table has a route to the target, then the packet is added to sent to the next hop ip

Whenever a packet is to be routed to a destination and the device route cache doesnt have a route to the target, the Packet is added to the FIFO and a Route Discovery is iitiated if not already.

Update the life time

Update the metrics

No route found but RREQ is already sent

No route found. generate RREQ

Definition at line 30 of file GeneralPacketProcessing.c.

Here is the call graph for this function:

◆ fn_NetSim_AODV_PacketDropNotification()

int fn_NetSim_AODV_PacketDropNotification ( NetSim_PACKET packet)

This function generates a route error.

Definition at line 20 of file RouteMaint.c.

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