NetBurner 3.5.0
PDF Version |
|
Functions | |
void | ShowArp () |
Display ARP cache, output will be the stdio serial port. | |
void | fShowArp (FILE *fp) |
Display ARP cache, output will be sent to the specified file pointer. | |
BOOL | GetArpMacFromIp (IPADDR4 ip, MACADR &ma) |
Check to see if the specified IP address is in the ARP cache. | |
void | sendGratuitousArp (int interfaceNumber, IPADDR4 ip) |
Send Gratuitous ARP Request. | |
#include< arp.h >
The Address Resolution Protocol (ARP) is a protocol for mapping an Internet Protocol address (IP Address) to a physical machine address called the Media Access Control (MAC), that is recognized on the local network. An local ARP cache correlating machine IP address to MAC address is maintained on each local machine.
When a host such as a PC computer attempts to communicate with another device, ARP is used to resolve the IP address to the corresponding MAC address.
void fShowArp | ( | FILE * | fp | ) |
#include <arp.h>
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 ) |
#include <arp.h>
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 | ( | ) |