#include "main.h"
#include "ARP.h"
Go to the source code of this file.
◆ _CRT_SECURE_NO_DEPRECATE
| #define _CRT_SECURE_NO_DEPRECATE |
Definition at line 15 of file Arp.c.
◆ fn_Netsim_ARP_CheckDestinationDevice()
This function is called for NETWORK_IN_EVENT with packet type = REQUEST_PACKET. Check the request packet received device is the destination. If so it add the GENERATE ARP REPLY sub event, else update the table and drop the request packet.
Definition at line 176 of file Arp.c.
◆ fn_NetSim_ARP_ConfigPacketTrace()
| char * fn_NetSim_ARP_ConfigPacketTrace |
( |
| ) |
|
This function will return the string to write packet trace heading.
Definition at line 157 of file Arp.c.
◆ fn_NetSim_ARP_Configure()
| int fn_NetSim_ARP_Configure |
( |
void ** |
var | ) |
|
Function for configuring ARP parameters.
This function is called by NetworkStack.dll, while configuring the device for ARP protocol.
Definition at line 128 of file Arp.c.
◆ fn_NetSim_ARP_CopyPacket()
Function to copy the ARP packet from source to destination.
This function is called by NetworkStack.dll, to copy the ARP protocol details from source packet to destination.
Definition at line 143 of file Arp.c.
◆ fn_NetSim_ARP_Finish()
| int fn_NetSim_ARP_Finish |
( |
| ) |
|
Function to free the ARP protocol variable and Unload the primitives.
This function is called by NetworkStack.dll, once simulation end to free the allocated memory for the network.
Definition at line 111 of file Arp.c.
◆ fn_NetSim_ARP_FreePacket()
Function to free the allocated memory for the ARP packet.
This function is called by NetworkStack.dll, to free the ARP protocol.
Definition at line 135 of file Arp.c.
◆ fn_NetSim_ARP_Init()
| int fn_NetSim_ARP_Init |
( |
struct stru_NetSim_Network * |
NETWORK_Formal, |
|
|
NetSim_EVENTDETAILS * |
pstruEventDetails_Formal, |
|
|
char * |
pszAppPath_Formal, |
|
|
char * |
pszWritePath_Formal, |
|
|
int |
nVersion_Type, |
|
|
void ** |
fnPointer |
|
) |
| |
Function for Intializing ARP protocol.
The Following functions are present in the Arp.lib.
so NetworkStack.dll can not call Arp.lib. It is calling Arp.dll.
From Arp.dll, Arp.lib functions are called.
Definition at line 99 of file Arp.c.
◆ fn_NetSim_ARP_Metrics()
This function write the Metrics
Definition at line 150 of file Arp.c.
◆ fn_NetSim_ARP_Run()
| int fn_NetSim_ARP_Run |
( |
| ) |
|
Function to run ARP protocol.
This function is called by NetworkStack.dll, whenever the event gets triggered
inside the NetworkStack.dll for the ARP protocol
Definition at line 22 of file Arp.c.
◆ fn_NetSim_ARP_Trace()
| char * fn_NetSim_ARP_Trace |
( |
int |
nSubEvent | ) |
|
Return the subevent name with respect to the subevent number for writting event trace.
This function is called by NetworkStack.dll, while writing the evnt trace to get the sub event as a string.
Definition at line 120 of file Arp.c.
◆ fn_NetSim_ARP_WritePacketTrace()
| char * fn_NetSim_ARP_WritePacketTrace |
( |
NetSim_PACKET * |
pstruPacket, |
|
|
char ** |
ppszTrace |
|
) |
| |
This function will return the string to write packet trace.
Definition at line 164 of file Arp.c.