aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ftdi-mpsse.c
diff options
context:
space:
mode:
authorTomasz Moń <desowin@gmail.com>2020-07-20 19:48:57 +0200
committerAnders Broman <a.broman58@gmail.com>2020-07-20 20:16:06 +0000
commitca3b4a79b2d4236ea4b44ec5784ca1880d720c29 (patch)
tree80c64b3c6d305d8402ecfa4fb5a65a7e315d3f23 /epan/dissectors/packet-ftdi-mpsse.c
parentb44dceae0f5450fae6aed3238ac2145085e3ae2d (diff)
FTDI MPSSE: Dissect CPUMode read response data
Ping-Bug: 11743 Change-Id: I6c5b2d1b28062998d485e2d709f950b7b99e89cd Reviewed-on: https://code.wireshark.org/review/37914 Petri-Dish: Tomasz Moń <desowin@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-ftdi-mpsse.c')
-rw-r--r--epan/dissectors/packet-ftdi-mpsse.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ftdi-mpsse.c b/epan/dissectors/packet-ftdi-mpsse.c
index 0bcb4ac1df..d37138fd74 100644
--- a/epan/dissectors/packet-ftdi-mpsse.c
+++ b/epan/dissectors/packet-ftdi-mpsse.c
@@ -951,6 +951,13 @@ dissect_read_data_bits_response(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tre
}
static gint
+dissect_cpumode_response(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gint offset)
+{
+ proto_tree_add_item(tree, hf_mpsse_cpumode_data, tvb, offset, 1, ENC_LITTLE_ENDIAN);
+ return 1;
+}
+
+static gint
dissect_non_data_shifting_command_response(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, command_data_t *cmd_data)
{
const char *pin_prefix = NULL;
@@ -967,6 +974,9 @@ dissect_non_data_shifting_command_response(tvbuff_t *tvb, packet_info *pinfo, pr
case CMD_READ_DATA_BITS_HIGH_BYTE:
pin_prefix = get_data_bit_pin_prefix(TRUE, &cmd_data->mpsse_info, &num_pins, &signal_names);
return dissect_read_data_bits_response(tvb, pinfo, tree, offset, *signal_names, pin_prefix, num_pins);
+ case CMD_CPUMODE_READ_SHORT_ADDR:
+ case CMD_CPUMODE_READ_EXT_ADDR:
+ return dissect_cpumode_response(tvb, pinfo, tree, offset);
default:
return 0;
}