Functions | |
void | ShowArp () |
Display ARP cache, output will be the stdio serial port. More... | |
void | fShowArp (FILE *fp) |
Display ARP cache, output will be sent to the specified file pointer. More... | |
BOOL | GetArpMacFromIp (IPADDR4 ip, MACADR &ma) |
Check to see if the specified IP address is in the ARP cache. More... | |
void | sendGratuitousArp (int interfaceNumber, IPADDR4 ip) |
Send Gratuitous ARP Request. More... | |
The NetBurner ARP Group
void fShowArp | ( | FILE * | fp | ) |
Display ARP cache, output will be sent to the specified file pointer.
*fp | pointer to type FILE. |
BOOL GetArpMacFromIp | ( | IPADDR4 | ip, |
MACADR & | ma | ||
) |
Check to see if the specified IP address is in the ARP cache.
This function does not send and arp request, it only checks the arp cache. If you want it to send an arp you could do something like send a ping to the IP address before calling this function.
ip | IP address to check for |
&ma | MACADR structuire to hold the result (C++ pass by reference) |
TRUE | if found, otherwise FALSE. |
void sendGratuitousArp | ( | int | interfaceNumber, |
IPADDR4 | ip | ||
) |
Send Gratuitous ARP Request.
Used after adding an interface or changing an IP address to update the ARP caches of other hosts on the network. Ensure the interface has a valid IP address before sending.
interfaceNumber | Specified which network interface to send on. |
ip | The interface's IP address |
void ShowArp | ( | ) |
Display ARP cache, output will be the stdio serial port.