diff options
author | Guy Harris <gharris@sonic.net> | 2021-10-18 18:11:31 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2021-10-19 02:22:42 +0000 |
commit | f275ccf2ab5bbb3f1ba2bd99aa1f4cff0c69f144 (patch) | |
tree | fe2bca3095c9ccd079bdb306e1ffbc327cfb8008 | |
parent | 1bcd51e34acdfa72e24069229f40c0863a2045db (diff) |
socketcan: use ett_can_fd for CAN FD.
-rw-r--r-- | epan/dissectors/packet-socketcan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-socketcan.c b/epan/dissectors/packet-socketcan.c index 82abeab193..cbb83cedbb 100644 --- a/epan/dissectors/packet-socketcan.c +++ b/epan/dissectors/packet-socketcan.c @@ -497,7 +497,7 @@ dissect_socketcan_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, col_add_fstr(pinfo->cinfo, COL_INFO, "%s: %d (0x%" G_GINT32_MODIFIER "x), Length: %d", id_name, effective_can_id, effective_can_id, can_info.len); ti = proto_tree_add_item(tree, (can_packet_type == PACKET_TYPE_CAN_FD) ? proto_canfd : proto_can, tvb, 0, -1, ENC_NA); - can_tree = proto_item_add_subtree(ti, ett_can); + can_tree = proto_item_add_subtree(ti, (can_packet_type == PACKET_TYPE_CAN_FD) ? ett_can_fd : ett_can); proto_item_append_text(can_tree, ", %s: %d (0x%" G_GINT32_MODIFIER "x), Length: %d", id_name, effective_can_id, effective_can_id, can_info.len); |