INFM HIL Interface
Interface between Artery simulation and DuTs
InterfaceIndexIO.h
1
26#ifndef SIM_TO_DUT_INTERFACE_INTERFACEINDEXIO_H
27#define SIM_TO_DUT_INTERFACE_INTERFACEINDEXIO_H
28
29// System includes
30#include <string>
31#include <cstring>
32#include <net/if.h>
33#include <sys/ioctl.h>
34
36
44
45 public:
46
52 explicit InterfaceIndexIO(std::string interfaceName);
53
59 static int name();
60
66 void *data();
67
73 int index() const;
74
75 private:
76
77 ifreq ifr{};
78 };
79
80}
81
82#endif //SIM_TO_DUT_INTERFACE_INTERFACEINDEXIO_H
I/O control command class for getting the interface index. For further information see boost asio io_...
Definition: InterfaceIndexIO.h:43
static int name()
Definition: InterfaceIndexIO.cpp:35
InterfaceIndexIO(std::string interfaceName)
Definition: InterfaceIndexIO.cpp:31
void * data()
Definition: InterfaceIndexIO.cpp:39
int index() const
Definition: InterfaceIndexIO.cpp:43
Definition: CANConnector.cpp:29