diff options
author | Evan Huus <eapache@gmail.com> | 2015-06-23 11:13:21 -0700 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2015-06-23 18:13:41 +0000 |
commit | 9723c7a2f877f635f308c1534935ec4a90c661f8 (patch) | |
tree | 449c3aff0c2f004569356ee987a9906805d2f9b7 /epan/dissectors/packet-fcoib.c | |
parent | bc1472502f871d5d7d178f5588f9b5ed7a226180 (diff) |
Remove more deprecated tvb_length calls
Change-Id: Ie40a195db622ebfb096fa5088c5467a1385e69bf
Reviewed-on: https://code.wireshark.org/review/9062
Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-fcoib.c')
-rw-r--r-- | epan/dissectors/packet-fcoib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-fcoib.c b/epan/dissectors/packet-fcoib.c index dfd7c493ab..15cabe95ba 100644 --- a/epan/dissectors/packet-fcoib.c +++ b/epan/dissectors/packet-fcoib.c @@ -210,7 +210,7 @@ dissect_fcoib(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U col_set_str(pinfo->cinfo, COL_PROTOCOL, "FCoIB"); - bytes_remaining = tvb_length_remaining(tvb, FCOIB_HEADER_LEN); + bytes_remaining = tvb_captured_length_remaining(tvb, FCOIB_HEADER_LEN); if (bytes_remaining > frame_len) bytes_remaining = frame_len; /* backing length */ next_tvb = tvb_new_subset(tvb, FCOIB_HEADER_LEN, bytes_remaining, frame_len); @@ -283,7 +283,7 @@ dissect_fcoib(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U crc, crc_computed); } proto_tree_set_appendix(fcoib_tree, tvb, crc_offset, - tvb_length_remaining (tvb, crc_offset)); + tvb_captured_length_remaining (tvb, crc_offset)); } else { item = proto_tree_add_uint_format_value(fcoib_tree, hf_fcoib_crc, tvb, crc_offset, 0, 0, "CRC: [missing]"); |