diff options
author | Tomasz Moń <desowin@gmail.com> | 2019-06-11 17:20:09 +0200 |
---|---|---|
committer | Pascal Quantin <pascal@wireshark.org> | 2019-06-11 19:59:25 +0000 |
commit | d55b9b0d2b7b0d4f5b9ab2bd75d504ba9374fee5 (patch) | |
tree | 576dffc2b778f66d1f33e28b526e57dde7abd175 /epan/dissectors/packet-ftdi-ft.c | |
parent | f155601d66603a7ddf2880bb1ee77af88e3fdbe8 (diff) |
FTDI FT: Indicate number of bytes sent on wire
Change-Id: Icc4457c23774810dc9849b9c379a3e68ca164f14
Reviewed-on: https://code.wireshark.org/review/33555
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
Diffstat (limited to 'epan/dissectors/packet-ftdi-ft.c')
-rw-r--r-- | epan/dissectors/packet-ftdi-ft.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-ftdi-ft.c b/epan/dissectors/packet-ftdi-ft.c index eb2c541183..9f1548fbb5 100644 --- a/epan/dissectors/packet-ftdi-ft.c +++ b/epan/dissectors/packet-ftdi-ft.c @@ -663,7 +663,7 @@ dissect_ftdi_ft(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) } else { - if (tvb_captured_length_remaining(tvb, offset) > 0) + if (tvb_reported_length_remaining(tvb, offset) > 0) { /* TODO: Dissect control data phase (GetModemStat, GetLatTimer) */ proto_tree_add_expert(main_tree, pinfo, &ei_undecoded, tvb, offset, -1); @@ -717,11 +717,11 @@ dissect_ftdi_ft(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) col_add_fstr(pinfo->cinfo, COL_INFO, "INTERFACE %s TX", interface_str); payload_hf = tx_hf; } - bytes = tvb_captured_length_remaining(tvb, offset); + bytes = tvb_reported_length_remaining(tvb, offset); if (bytes > 0) { col_append_fstr(pinfo->cinfo, COL_INFO, " %d bytes", bytes); - proto_tree_add_item(main_tree, payload_hf, tvb, offset, -1, ENC_NA); + proto_tree_add_item(main_tree, payload_hf, tvb, offset, bytes, ENC_NA); offset += bytes; } } |