I/O control command class for getting the interface index. For further information see boost asio io_control.
More...
#include <InterfaceIndexIO.h>
I/O control command class for getting the interface index. For further information see boost asio io_control.
◆ InterfaceIndexIO()
sim_interface::dut_connector::can::InterfaceIndexIO::InterfaceIndexIO |
( |
std::string |
interfaceName | ) |
|
|
explicit |
Constructor.
- Parameters
-
interfaceName | - The name of the interface which index should be resolved. |
◆ data()
void * sim_interface::dut_connector::can::InterfaceIndexIO::data |
( |
| ) |
|
Returns the ifreq struct that contains the interface name.
- Returns
- The ifreq with the name
◆ index()
int sim_interface::dut_connector::can::InterfaceIndexIO::index |
( |
| ) |
const |
Returns the resolved interface index.
- Returns
- The resolved interface index.
◆ name()
int sim_interface::dut_connector::can::InterfaceIndexIO::name |
( |
| ) |
|
|
static |
Returns the POSIX ioctl() value for getting the interface index by name.
- Returns
- The value of SIOCGIFINDEX
The documentation for this class was generated from the following files:
- Sim_To_DuT_Interface/DuT_Connectors/CANConnector/InterfaceIndexIO.h
- Sim_To_DuT_Interface/DuT_Connectors/CANConnector/InterfaceIndexIO.cpp