aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-lsc.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-lsc.c')
-rw-r--r--epan/dissectors/packet-lsc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-lsc.c b/epan/dissectors/packet-lsc.c
index 7faae22c98..278018eb75 100644
--- a/epan/dissectors/packet-lsc.c
+++ b/epan/dissectors/packet-lsc.c
@@ -146,7 +146,7 @@ dissect_lsc_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* da
col_clear(pinfo->cinfo, COL_INFO);
/* Too little data? */
- if (tvb_captured_length(tvb) < LSC_MIN_LEN)
+ if (tvb_length(tvb) < LSC_MIN_LEN)
{
col_set_str(pinfo->cinfo, COL_INFO, "[Too short]");
return 0;
@@ -198,9 +198,9 @@ dissect_lsc_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* da
val_to_str(op_code, op_code_vals, "Unknown op code (0x%x)"),
stream);
- if (tvb_captured_length(tvb) < expected_len)
+ if (tvb_length(tvb) < expected_len)
col_append_str(pinfo->cinfo, COL_INFO, " [Too short]");
- else if (tvb_captured_length(tvb) > expected_len)
+ else if (tvb_length(tvb) > expected_len)
col_append_str(pinfo->cinfo, COL_INFO, " [Too long]");
if (tree) {
@@ -271,7 +271,7 @@ dissect_lsc_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* da
}
}
- return tvb_captured_length(tvb);
+ return tvb_length(tvb);
}
/* Decode LSC over UDP */
@@ -335,7 +335,7 @@ dissect_lsc_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data)
{
tcp_dissect_pdus(tvb, pinfo, tree, TRUE, LSC_OPCODE_LEN, get_lsc_pdu_len,
dissect_lsc_common, data);
- return tvb_captured_length(tvb);
+ return tvb_length(tvb);
}
/* Register the protocol with Wireshark */