Function: Read ARP Table
When packet want to transmit the MAC OUT EVENT, the job of Address Resolution Protocol
is to update the destination MAC address in the MAC data of the packet. To do that it
follows the below steps.
1. Check the destination is in the same LAN. If yes, set the nDestinationId as well as
DestinationIP from the packet you received.
if not,then set the nDestinationId
ZERO
for the DefaultGateway and the DestinationIP as the GatewayIP.
2. Then check the DestinationIP entry present in the ARP table. If present,
set the nDestinationPresentFlag.
3 If nDestinationPresentFlag is set (
ONE)then update the DestMAc of MACdata of packet
and forward to MAC layer by keeping the packet in the AccessBuffer of AccessInterface.
4. If nDestinationPresentFlag is not set and pnArpRequestFlag[nDestinationId](request flag
for the destination) is also not set, then buffer the packet and add event by adding
5. If nDestinationPresentFlag is not set pnArpRequestFlag[nDestinationId] is set, then just
buffer the packet.