diff options
Diffstat (limited to 'epan/dissectors/packet-rlogin.c')
-rw-r--r-- | epan/dissectors/packet-rlogin.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-rlogin.c b/epan/dissectors/packet-rlogin.c index 1b921f86e6..b24112cfa4 100644 --- a/epan/dissectors/packet-rlogin.c +++ b/epan/dissectors/packet-rlogin.c @@ -122,7 +122,7 @@ rlogin_state_machine(rlogin_hash_entry_t *hash_info, tvbuff_t *tvb, packet_info } /* exit if no data */ - length = tvb_captured_length(tvb); + length = tvb_length(tvb); if (length == 0) { return; @@ -197,7 +197,7 @@ static void rlogin_display(rlogin_hash_entry_t *hash_info, rlogin_tree = proto_item_add_subtree(ti, ett_rlogin); /* Return if data empty */ - length = tvb_captured_length(tvb); + length = tvb_length(tvb); if (length == 0) { return; @@ -261,7 +261,7 @@ static void rlogin_display(rlogin_hash_entry_t *hash_info, /* First frame of conversation, assume user info... */ - info_len = tvb_captured_length_remaining(tvb, offset); + info_len = tvb_length_remaining(tvb, offset); if (info_len <= 0) return; @@ -421,7 +421,7 @@ dissect_rlogin(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) } /* Work out packet content summary for display */ - length = tvb_captured_length(tvb); + length = tvb_length(tvb); if (length != 0) { /* Initial NULL byte represents part of connection handshake */ @@ -452,7 +452,7 @@ dissect_rlogin(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) else { /* Show any text data in the frame */ - int bytes_to_copy = tvb_captured_length(tvb); + int bytes_to_copy = tvb_length(tvb); if (bytes_to_copy > 128) { /* Truncate to 128 bytes for display */ @@ -473,7 +473,7 @@ dissect_rlogin(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) /* Dissect in detail */ rlogin_display(hash_info, tvb, pinfo, tree, tcpinfo); - return tvb_captured_length(tvb); + return tvb_length(tvb); } |