Embedded TCP/IP stack
4.7.0
|
fnet_bool_t fnet_arp_get_mac | ( | fnet_netif_desc_t | netif_desc, |
fnet_ip4_addr_t | ip_addr, | ||
fnet_mac_addr_t | mac_addr | ||
) |
Gets MAC address of valid ARP cache entry.
[in] | netif_desc | Network interface descriptor. |
[in] | ip_addr | IPv4 address to search for. |
[out] | mac_addr | Buffer will contain a MAC address corresponding ipaddr .This parameter is optional. |
ip_addr
exists.ip_addr
does not exist.This function searches for an entry corresponding to the provided IPv4 address.
If mac_addr
parameter is present, it will contain a valid MAC address corresponding to ip_addr
.