aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-e100.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-e100.c')
-rw-r--r--epan/dissectors/packet-e100.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-e100.c b/epan/dissectors/packet-e100.c
index a83ebb217e..ebc53d0fc9 100644
--- a/epan/dissectors/packet-e100.c
+++ b/epan/dissectors/packet-e100.c
@@ -74,9 +74,9 @@ dissect_e100(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_
* (2) e100 header is 1
* (3) e100 capture size matches tvb packet size
*/
- if (tvb_length(tvb) >= e100_encap_len &&
+ if (tvb_captured_length(tvb) >= e100_encap_len &&
tvb_get_guint8(tvb, e100_header_ver.offset) == 1 &&
- tvb_get_ntohl(tvb, e100_bytes_cap.offset) == tvb_length(tvb)-e100_encap_len)
+ tvb_get_ntohl(tvb, e100_bytes_cap.offset) == tvb_captured_length(tvb)-e100_encap_len)
{
guint32 bytes_captured=0;
col_set_str(pinfo->cinfo, COL_PROTOCOL, "e100");
@@ -117,7 +117,7 @@ dissect_e100(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_
next_tvb = tvb_new_subset(tvb, e100_encap_len, -1, bytes_captured);
call_dissector(eth_handle, next_tvb, pinfo, tree);
- ret_val = tvb_length(tvb);
+ ret_val = tvb_captured_length(tvb);
} /* heuristic testing */
return ret_val;