C
BOOL ARPIsResolved( IP_ADDR* IPAddr, MAC_ADDR* MACAddr );
Description
This function checks if an ARP request has been resolved yet, and if so, stores the resolved MAC address in the pointer provided.
Preconditions
ARP packet is ready in the MAC buffer.
Parameters
Parameters |
Description |
IPAddr |
The IP address to be resolved. This must match the IP address provided to the ARPResolve() function call. |
MACAddr |
A buffer to store the corresponding MAC address retrieved from the ARP query. |
Return Values
Return Values |
Description |
TRUE |
The IP address has been resolved and MACAddr MAC address field indicates the response. |
FALSE |
The IP address is not yet resolved. Try calling ARPIsResolved() again at a later time. If you don't get a response after a application specific timeout period, you may want to call ARPResolve() again to transmit another ARP query (in case if the original query or response was lost on the network). If you never receive an ARP response, this may indicate that the IP address isn't in use. |
Remarks
This function is only required when the stack is a client, and therefore is only enabled when STACK_CLIENT_MODE is enabled.