INFM HIL Interface
Interface between Artery simulation and DuTs
V2XConnectorConfig.h
1
27#ifndef SIM_TO_DUT_INTERFACE_V2XCONNECTORCONFIG_H
28#define SIM_TO_DUT_INTERFACE_V2XCONNECTORCONFIG_H
29
30#include <utility>
31
32
41 public:
49 explicit V2XConnectorConfig(std::string ifname, unsigned short ethernetFrameType)
50 : ConnectorConfig({"V2X"}, {}, false),
52 if (this->ifname.empty()) {
53 throw std::invalid_argument("ifname cannot be empty");
54 }
55 }
56
60 std::string ifname;
61
65 unsigned short ethernetFrameType;
66 };
67}
68
69#endif //SIM_TO_DUT_INTERFACE_V2XCONNECTORCONFIG_H
Configuration for a single DuTConnector
Definition: ConnectorConfig.h:43
Configuration for the V2XConnector, contains all necessary setup configuration to open a raw socket a...
Definition: V2XConnectorConfig.h:40
std::string ifname
Definition: V2XConnectorConfig.h:60
unsigned short ethernetFrameType
Definition: V2XConnectorConfig.h:65
V2XConnectorConfig(std::string ifname, unsigned short ethernetFrameType)
Definition: V2XConnectorConfig.h:49
Definition: EthernetPacket.cpp:33