1#ifndef VEHICLE_ID_REQUEST_HANDLER_H
2#define VEHICLE_ID_REQUEST_HANDLER_H
4#include <doiplib/message_handler.h>
5#include <doiplib/vehicle_id_request.h>
6#include <doiplib/vehicle_id_response.h>
16 static constexpr size_t cMacAddressSize{6};
18 static const uint8_t cFurtherAction{0x00};
20 DoipLib::VehicleIdRequest mRequest;
21 DoipLib::VehicleIdResponse mResponse;
23 static std::array<uint8_t, cMacAddressSize> convertToMacAddress(
34 uint8_t protocolVersion,
36 uint16_t logicalAddress,
40 DoipLib::Message *GetMessage()
override;
43 const DoipLib::Message *request,
44 std::vector<uint8_t> &response)
const override;
A class to handle vehicle ID requests via DoIP.
Definition: vehicle_id_request_handler.h:14
VehicleIdRequestHandler(uint8_t protocolVersion, std::string &&vin, uint16_t logicalAddress, uint64_t eid, uint64_t gid)
Constructor.
Definition: vehicle_id_request_handler.cpp:10
AUTOSAR application namespace.
Definition: diag_message_handler.cpp:5