#include "main.h"
#include "ARP.h"
Go to the source code of this file.
◆ _CRT_SECURE_NO_DEPRECATE
| #define _CRT_SECURE_NO_DEPRECATE |
◆ fn_NetSim_Generate_ARP_Reply()
packet as
REQUEST_PACKET. That is ARP request is received. Then call
this
function to generate
REPLY_PACKET. Do the following to generate Reply
1.Check
for the hardware type, protocol type,MAC address lenth,
IP adress length
are correct matching.
2. Check the Source
IP and MAC entry present in the table,
if not update the table.
3. Check the packet received device is the destination, if not, dicard the packet,
4.Add the control packet to access buffer to farward the packet to next layer.
void IP(uint state[], uchar in[])
Definition at line 31 of file GenerateArpReply.c.