NetBurner 3.1
ARP - Address Resolution Protocol

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...
 

Detailed Description

The NetBurner ARP Group

Function Documentation

◆ fShowArp()

void fShowArp ( FILE *  fp)

Display ARP cache, output will be sent to the specified file pointer.

Parameters
*fppointer to type FILE.
See also
ShowArp()

◆ GetArpMacFromIp()

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.

Parameters
ipIP address to check for
&maMACADR structuire to hold the result (C++ pass by reference)
Return values
TRUEif found, otherwise FALSE.

◆ sendGratuitousArp()

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.

Parameters
interfaceNumberSpecified which network interface to send on.
ipThe interface's IP address

◆ ShowArp()

void ShowArp ( )

Display ARP cache, output will be the stdio serial port.

See also
fShowArp()