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

Go to the source code of this file.

Functions

int fn_NetSim_DSR_GeneralPacketProcessing (NetSim_EVENTDETAILS *pstruEventDetails)
 

Function Documentation

◆ fn_NetSim_DSR_GeneralPacketProcessing()

int fn_NetSim_DSR_GeneralPacketProcessing ( NetSim_EVENTDETAILS pstruEventDetails)

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

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 Send buffer and a Route Discovery is iitiated.

If the Device route cache has a route to the target, then the packet is added to the Maintanence Buffer and the count of packets originated is incremented.

Definition at line 28 of file PacketProcessing.c.

Here is the call graph for this function: