Network: Use Type::AutomotiveEthernet

This commit is contained in:
Kyle Schwarz
2025-10-30 23:40:30 -04:00
parent 3b60bfc986
commit 7f192a0cea
9 changed files with 16 additions and 8 deletions
+2 -1
View File
@@ -62,7 +62,8 @@ uint64_t Decoder::GetUInt64FromLEBytes(const uint8_t* bytes) {
bool Decoder::decode(std::shared_ptr<Message>& result, const std::shared_ptr<Packet>& packet) {
switch(packet->network.getType()) {
case Network::Type::Ethernet: {
case Network::Type::Ethernet:
case Network::Type::AutomotiveEthernet: {
result = HardwareEthernetPacket::DecodeToMessage(packet->data);
if(!result) {
report(APIEvent::Type::PacketDecodingError, APIEvent::Severity::Error);