diff options
Diffstat (limited to 'epan/dissectors/packet-isis-hello.c')
-rw-r--r-- | epan/dissectors/packet-isis-hello.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-isis-hello.c b/epan/dissectors/packet-isis-hello.c index e93e6817eb..43464be44d 100644 --- a/epan/dissectors/packet-isis-hello.c +++ b/epan/dissectors/packet-isis-hello.c @@ -564,7 +564,7 @@ dissect_hello_checksum_clv(tvbuff_t *tvb, packet_info* pinfo, break; case DATA_MISSING : proto_tree_add_expert_format(tree, pinfo, &ei_isis_hello_long_packet, tvb, offset, -1, - "Packet length %d went beyond packet", tvb_length(tvb) ); + "Packet length %d went beyond packet", tvb_captured_length(tvb) ); break; case CKSUM_NOT_OK : proto_tree_add_uint_format_value( tree, hf_isis_hello_checksum, tvb, offset, length, checksum, @@ -1011,7 +1011,7 @@ dissect_isis_l1_hello(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* isis_data_t* isis = (isis_data_t*)data; dissect_isis_hello(tvb, pinfo, tree, 0, clv_l1_hello_opts, isis->header_length, isis->system_id_len); - return tvb_length(tvb); + return tvb_captured_length(tvb); } static int @@ -1020,7 +1020,7 @@ dissect_isis_l2_hello(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* isis_data_t* isis = (isis_data_t*)data; dissect_isis_hello(tvb, pinfo, tree, 0, clv_l2_hello_opts, isis->header_length, isis->system_id_len); - return tvb_length(tvb); + return tvb_captured_length(tvb); } static int @@ -1029,7 +1029,7 @@ dissect_isis_ptp_hello(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void isis_data_t* isis = (isis_data_t*)data; dissect_isis_hello(tvb, pinfo, tree, 0, clv_ptp_hello_opts, isis->header_length, isis->system_id_len); - return tvb_length(tvb); + return tvb_captured_length(tvb); } /* |