TCPIP_ARP_IsResolved Function

C

bool TCPIP_ARP_IsResolved(
    TCPIP_NET_HANDLE hNet, 
    IPV4_ADDR* IPAddr, 
    TCPIP_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

The ARP module should have been initialized.

Parameters

ParametersDescription
hNetInterface to use.
IPAddrThe IP address to be resolved. The address must be specified in network byte order (big endian).
MACAddrA buffer to store the corresponding MAC address retrieved from the ARP query.

Remarks

None.