Function: Generate ARP Request
Whenever the ARP Table do not have the destination device MAC address, this function
is called to generate BROARDCAST ARP request. Once the Request packet generated, if
reply won't get, before generating the next request, it has to wait till the
ARP_RETRY_INTERVAL (default 10secs) The number of retries is equal to ARP_RETRY_LIMIT
(default 3). So ARP Request packet generated, buffer the packet till you get reply or
RequestSentCount reaches ARP_RETRY_LIMIT. If you got the reply, farward the buffered
packet, else drop the buffered packets.
Do the following to generate Request
1. Check the RequestFlag. First time it is 0, buffer the packet, Generate the request
and set the flag to 1.
2.Add the relent filelds hardware type, protocol type,MAC address lenth, IP adress length
SrcAddIP, DestAddIP,SrcMacAdd etc relevent fields for ARP request
3.Add the request packet to access buffer to farward the packet to next layer.
4. Generate the Request TimeOut event by adding the ARP_RETRY_INTERVAL to the current event time.
5.When the RequestFlag is 1, buffer the packets