friendev EtherDune TCP/IP library
|
Implements the ARP protocol as an EtherDune service. More...
#include <ARP.h>
Public Member Functions | |
MACAddress * | whoHas (IPAddress &ip) |
Attempts to return the MAC address associated with the provided IP address. More... | |
ARPService () | |
Implements the ARP protocol as an EtherDune service.
This class maintains the ARP table, handles incoming ARP requests and allows to perform ARP queries in the network to discover other hosts
This service is instantiated by default, meaning you do not need to do anything to make it work. You can configure ARP settings in the ARP configuration section of the configuration file
MACAddress * ARPService::whoHas | ( | IPAddress & | ip | ) |
Attempts to return the MAC address associated with the provided IP address.
If the result is found in the cache, it is returned, otherwise, an ARP query is issued and whoHas returns NULL
ip | IP to search |