| | |
| | | |
| | | Ethernet::~Ethernet() {} |
| | | |
| | | LCC_API_IDENTIFICATION_STRATEGY Ethernet::identification_strategy() const { |
| | | LCC_API_HW_IDENTIFICATION_STRATEGY Ethernet::identification_strategy() const { |
| | | return use_ip ? STRATEGY_IP_ADDRESS : STRATEGY_ETHERNET; |
| | | } |
| | | |
| | |
| | | FUNCTION_RETURN result = generate_ethernet_pc_id(data, use_ip); |
| | | vector<HwIdentifier> identifiers; |
| | | if (result == FUNC_RET_OK) { |
| | | identifiers.resize(data.size()); |
| | | identifiers.reserve(data.size()); |
| | | for (auto &it : data) { |
| | | HwIdentifier pc_id; |
| | | pc_id.set_identification_strategy(identification_strategy()); |