From 514281f9a7a9de880666c52beae430d8b4d3644a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dr=2E=20Lars=20V=C3=B6lker?= Date: Wed, 11 Aug 2021 18:04:02 +0200 Subject: [PATCH] TECMP: RTR is only CAN (BUGFIX!) Bugfix. ESI in CAN-FD was interpreted as RTR --- epan/dissectors/packet-tecmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epan/dissectors/packet-tecmp.c b/epan/dissectors/packet-tecmp.c index 090e673ef4..bc03924c53 100644 --- a/epan/dissectors/packet-tecmp.c +++ b/epan/dissectors/packet-tecmp.c @@ -1281,7 +1281,7 @@ dissect_tecmp_log_or_replay_stream(tvbuff_t *tvb, packet_info *pinfo, proto_tree /* luckely TECMP and SocketCAN share the first bit as indicator for 11 vs 29bit Identifiers */ can_info.id = tmp; - if ((dataflags & DATA_FLAG_CAN_RTR) == DATA_FLAG_CAN_RTR) { + if (msg_type == TECMP_DATA_TYPE_CAN_DATA && (dataflags & DATA_FLAG_CAN_RTR) == DATA_FLAG_CAN_RTR) { can_info.id |= CAN_RTR_FLAG; }