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

Go to the source code of this file.

Macros

#define _CRT_SECURE_NO_DEPRECATE
 

Functions

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

Macro Definition Documentation

◆ _CRT_SECURE_NO_DEPRECATE

#define _CRT_SECURE_NO_DEPRECATE

Definition at line 24 of file UpdateArpTable.c.

Function Documentation

◆ fn_NetSim_Update_ARP_Table_ForwardPacket()

int fn_NetSim_Update_ARP_Table_ForwardPacket ( NetSim_EVENTDETAILS pstruEventDetails,
struct stru_NetSim_Network NETWORK 
)
Function: Update Arp Table and Farward Packet
This function is called whenever the NETWORK_IN_EVENT triggred with the control
packet as REPLY_PACKET. That is ARP reply is received. Then call this function to
update the MAC address and forward the buffred packet. Do the following,
1.Update the ARP table by updating the destination IP and MAC address
2.Take the buffered packet, update the destination MAC address and add the 20 byte IP header.
3.Add the packet to access buffer to forward the packet to next layer.
@ REPLY_PACKET
Definition: ARP.h:89
@ NETWORK_IN_EVENT
Definition: Stack.h:109
void IP(uint state[], uchar in[])
Definition: des.c:116

Definition at line 38 of file UpdateArpTable.c.

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