#include "net\ip.h"
Functions | |
void | ARPInit (void) |
BOOL | ARPIsResolved (IP_ADDR *IPAddr, MAC_ADDR *MACAddr) |
BOOL | ARPProcess (void) |
void | ARPResolve (IP_ADDR *IPAddr) |
void ARPInit | ( | void | ) |
ARP Cache is initialized.
This function is used to retrieve the MAC Address for a given IP address. This information will be received via ARP after sending an ARP request over the network. If we have a destination IP address, but not it's MAC address, we will send an ARP request, and wait for an ARP reply. As soon as we receive the reply, the requested MAC address can be retrieve via this function.
Note: This function is available only when STACK_CLIENT_MODE is defined.
IPAddr | IPAddress to be resolved. | |
MACAddr | Buffer to hold corresponding MAC Address. |
BOOL ARPProcess | ( | void | ) |
Performes ARP processing.
void ARPResolve | ( | IP_ADDR * | IPAddr | ) |
An ARP request is sent. This function is available only when STACK_CLIENT_MODE is defined.
IPAddr | - IP Address to be resolved. For example, if IP address is "192.168.1.0", then:
|