#include <rtl.h>
BOOL arp_cache_mac (
U8* hwadr ); /* Pointer to buffer containing the 6 octets of the MAC address. */
Description
The arp_cache_mac function determines whether the ARP table
has an IP address entry for the requested MAC (ethernet) address. If
an entry does not exist, the function forces the TCPnet system to
resolve and cache the IP address into the internal ARP table buffer.
To resolve the IP address, the TCPnet system sends an inverse
arp request to the network.
The argument hwadr points to a buffer containing the six
octets of the MAC address to be resolved.
The arp_cache_mac function is in the RL-TCPnet library. The
prototype is defined in rtl.h.
note
Only the ethernet network interface needs to use the
arp_cache_mac function. There is no ARP protocol for the PPP
and SLIP network interfaces.
Return Value
The arp_cache_mac function returns __TRUE when both of the
following conditions are satisfied:
The requested MAC address is resolved.
The ARP table contains an entry for the MAC address and its IP
address.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.