aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-usb-dfu.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2015-06-22 09:59:50 -0700
committerEvan Huus <eapache@gmail.com>2015-06-22 20:43:34 +0000
commitbe6fb606915f4ccc68a62195619d176cd62f79f9 (patch)
treeedd4b63c557923d1196dd779ac91ee1e1bae90ef /epan/dissectors/packet-usb-dfu.c
parent45872b9f7bf10476e48187f4b699c6f44943f22a (diff)
Remove a bunch of deprecated tvb_length calls
Change-Id: I9362e0fdc4519ba5f3d656152966e7030f478839 Reviewed-on: https://code.wireshark.org/review/9022 Petri-Dish: Evan Huus <eapache@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-usb-dfu.c')
-rw-r--r--epan/dissectors/packet-usb-dfu.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-usb-dfu.c b/epan/dissectors/packet-usb-dfu.c
index 73caf3b702..39e0930a2d 100644
--- a/epan/dissectors/packet-usb-dfu.c
+++ b/epan/dissectors/packet-usb-dfu.c
@@ -288,12 +288,12 @@ dissect_usb_dfu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
if (command == 0x01) { /* Download */
proto_tree_add_item(main_tree, hf_data, tvb, offset, -1, ENC_NA);
- offset = tvb_length(tvb);
+ offset = tvb_captured_length(tvb);
}
if (tvb_length_remaining(tvb, offset) > 0) {
proto_tree_add_expert(main_tree, pinfo, &ei_unexpected_data, tvb, offset, tvb_length_remaining(tvb, offset));
- offset = tvb_length(tvb);
+ offset = tvb_captured_length(tvb);
}
/* Save request info (command_data) */
@@ -340,7 +340,7 @@ dissect_usb_dfu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
pinfo->p2p_dir = p2p_dir_save;
- return tvb_length(tvb);
+ return tvb_captured_length(tvb);
}
col_append_fstr(pinfo->cinfo, COL_INFO, "Response: %s",
@@ -367,7 +367,7 @@ dissect_usb_dfu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
}
proto_tree_add_item(main_tree, hf_data, tvb, offset, -1, ENC_NA);
- offset = tvb_length(tvb);
+ offset = tvb_captured_length(tvb);
break;
case 0x03: /* Get Status */
@@ -406,7 +406,7 @@ dissect_usb_dfu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
proto_tree_add_expert(command_tree, pinfo, &ei_unexpected_response, tvb, offset, 0);
if (tvb_length_remaining(tvb, offset) > 0) {
proto_tree_add_expert(main_tree, pinfo, &ei_unknown_data, tvb, offset, -1);
- offset = tvb_length(tvb);
+ offset = tvb_captured_length(tvb);
}
}