This class provides routing info interface for HostModules.
More...
#include <E_RoutingInfo.hpp>
This class provides routing info interface for HostModules.
◆ getARPTable()
std::optional< mac_t > E::RoutingInfoInterface::getARPTable |
( |
const ipv4_t & |
ipv4 | ) |
|
- Parameters
-
ipv4 | IP address to find its corresponding MAC address. |
- Returns
- MAC address if successful.
- Note
- You cannot override this function.
◆ getIPAddr()
std::optional< ipv4_t > E::RoutingInfoInterface::getIPAddr |
( |
int |
port | ) |
|
- Parameters
-
port | Interface index to retrieve its IP address. |
- Returns
- IP address if successful.
- Note
- You cannot override this function.
◆ getMACAddr()
std::optional< mac_t > E::RoutingInfoInterface::getMACAddr |
( |
int |
port | ) |
|
- Parameters
-
port | Interface index to retrieve its MAC address. |
- Returns
- MAC address if successful.
- Note
- You cannot override this function.
◆ getRoutingTable()
int E::RoutingInfoInterface::getRoutingTable |
( |
const ipv4_t & |
ip_addr | ) |
|
- Parameters
-
ip_buffer | IP address to find its destination. |
- Returns
- Interface index to this packet should go to.
- Note
- You cannot override this function.
◆ setARPTable()
void E::RoutingInfoInterface::setARPTable |
( |
const mac_t & |
mac, |
|
|
const ipv4_t & |
ipv4 |
|
) |
| |
Add (MAC,IP) entry to its ARP table.
- Parameters
-
mac | MAC address. |
ip | IP address. |
- Note
- You cannot override this function.
◆ setIPAddr()
void E::RoutingInfoInterface::setIPAddr |
( |
const ipv4_t & |
ip, |
|
|
int |
port |
|
) |
| |
- Parameters
-
ip | IP address. |
port | Interface index to bind the given IP address. |
- Note
- You cannot override this function.
◆ setMACAddr()
void E::RoutingInfoInterface::setMACAddr |
( |
const mac_t & |
mac, |
|
|
int |
port |
|
) |
| |
- Parameters
-
mac | MAC address. |
port | Interface index to bind the given MAC address. |
- Note
- You cannot override this function.
◆ setRoutingTable()
void E::RoutingInfoInterface::setRoutingTable |
( |
const ipv4_t & |
mask, |
|
|
int |
prefix, |
|
|
int |
port |
|
) |
| |
- Parameters
-
mask | IP address mask. |
prefix | Prefix length for routing. |
port | Interface index to bind the given routing entry. |
- Note
- You cannot override this function.
The documentation for this class was generated from the following files: