ARP protocol class.
More...
#include <arp.hpp>
|
| | Arp ()=delete |
| | create the Arp instance.
|
| |
| | Arp (const std::string &interface) |
| | create the Arp instance.
|
| |
| virtual | ~Arp ()=default |
| | destroy the Arp instance.
|
| |
| MacAddress | get (const IpAddress &ip) |
| | get the MAC address for the given IP address using ARP cache or ARP request.
|
| |
| MacAddress | request (const IpAddress &ip) |
| | get the MAC address for the given IP address using ARP request.
|
| |
| int | add (const MacAddress &mac, const IpAddress &ip) |
| | add entry the MAC address of the given IP address to ARP cache.
|
| |
| MacAddress | cache (const IpAddress &ip) |
| | get the MAC address for the given IP address using ARP cache.
|
| |
|
| static MacAddress | get (const IpAddress &ip, const std::string &interface) |
| | discover the MAC address for the given internet layer address.
|
| |
| static MacAddress | request (const IpAddress &ip, const std::string &interface) |
| | get the MAC address for the given IP address using ARP request.
|
| |
| static int | add (const MacAddress &mac, const IpAddress &ip, const std::string &interface) |
| | add entry the MAC address of the given IP address to ARP cache.
|
| |
| static MacAddress | cache (const IpAddress &ip, const std::string &interface) |
| | get the MAC address for the given IP address using ARP cache.
|
| |
◆ Arp() [1/2]
◆ Arp() [2/2]
| Arp::Arp |
( |
const std::string & | interface | ) |
|
create the Arp instance.
- Parameters
-
◆ ~Arp()
| virtual join::Arp::~Arp |
( |
| ) |
|
|
virtualdefault |
destroy the Arp instance.
◆ add() [1/2]
add entry the MAC address of the given IP address to ARP cache.
- Parameters
-
| ip | MAC address. |
| ip | IP address. |
- Returns
- 0 on success, -1 on failure.
◆ add() [2/2]
add entry the MAC address of the given IP address to ARP cache.
- Parameters
-
| ip | MAC address. |
| ip | IP address. |
| interface | interface name. |
- Returns
- 0 on success, -1 on failure.
◆ cache() [1/2]
get the MAC address for the given IP address using ARP cache.
- Parameters
-
- Returns
- the MAC address.
◆ cache() [2/2]
get the MAC address for the given IP address using ARP cache.
- Parameters
-
| ip | IP address. |
| interface | interface name. |
- Returns
- the MAC address.
◆ get() [1/2]
get the MAC address for the given IP address using ARP cache or ARP request.
- Parameters
-
- Returns
- the MAC address.
◆ get() [2/2]
discover the MAC address for the given internet layer address.
- Parameters
-
| ip | IP address. |
| interface | interface name. |
- Returns
- the MAC address.
◆ request() [1/2]
get the MAC address for the given IP address using ARP request.
- Parameters
-
- Returns
- the MAC address.
◆ request() [2/2]
get the MAC address for the given IP address using ARP request.
- Parameters
-
| ip | IP address. |
| interface | interface name. |
- Returns
- the MAC address.
The documentation for this class was generated from the following files: