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

Go to the source code of this file.

Macros

#define _CRT_SECURE_NO_DEPRECATE
 

Functions

int fn_NetSim_ARP_Request_Timeout (NetSim_EVENTDETAILS *pstruEventDetails, struct stru_NetSim_Network *NETWORK)
 

Macro Definition Documentation

◆ _CRT_SECURE_NO_DEPRECATE

#define _CRT_SECURE_NO_DEPRECATE

Definition at line 16 of file RequestTimeOut.c.

Function Documentation

◆ fn_NetSim_ARP_Request_Timeout()

int fn_NetSim_ARP_Request_Timeout ( NetSim_EVENTDETAILS pstruEventDetails,
struct stru_NetSim_Network NETWORK 
)
Function: ARP Request Timeout
When we generate Arp Request, we will add the Timeout event with the present
event time + ARP_RETRY_INTERVAL. At that time this function is called.
Do the following to generate Request
1. Check the destination entry present in the table and set nDestinationPresentFlag.
2. if nDestinationPresentFlag =0 Check RetryCont<RetryLimit.
3. if true generate ARP request, reset pnArpRequestFlag, increament nArpRequestSentCount.
4. else drop the buffered packets and reset the RetryCount and RequestFlag.
3. if nDestinationPresentFlag set,drop temp packet and reset RetryCount and RequestFlag

*if(szNextHopIp)

Definition at line 32 of file RequestTimeOut.c.

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