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

Go to the source code of this file.

Functions

int fn_NetSim_DSR_Add_Ack_request_Option (NetSim_PACKET *packet, NetSim_EVENTDETAILS *pstruEventDetails)
 
int fn_NetSim_DSR_Process_AckRequestOption (NetSim_PACKET *packet, NetSim_EVENTDETAILS *pstruEventDetails)
 
int fn_NetSim_DSR_ProcessAckOption (NetSim_EVENTDETAILS *pstruEventDetails)
 

Function Documentation

◆ fn_NetSim_DSR_Add_Ack_request_Option()

int fn_NetSim_DSR_Add_Ack_request_Option ( NetSim_PACKET packet,
NetSim_EVENTDETAILS pstruEventDetails 
)

This function adds the Acknowledge request option to the packet.

Definition at line 20 of file Network_Layer_Ack.c.

◆ fn_NetSim_DSR_Process_AckRequestOption()

int fn_NetSim_DSR_Process_AckRequestOption ( NetSim_PACKET packet,
NetSim_EVENTDETAILS pstruEventDetails 
)

If a packet has an acknowledge request option, this function generates the acknowledge and transmits it.

Definition at line 49 of file Network_Layer_Ack.c.

Here is the call graph for this function:

◆ fn_NetSim_DSR_ProcessAckOption()

int fn_NetSim_DSR_ProcessAckOption ( NetSim_EVENTDETAILS pstruEventDetails)

Whenever an acknowlegement is received, the DSR Maintenance Buffer is Emptied.

Definition at line 94 of file Network_Layer_Ack.c.