summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-vnc.c
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2014-06-17 17:45:00 +0200
committerAnders Broman <a.broman58@gmail.com>2014-06-18 14:14:58 +0000
commit246fe2ca4c67d8c98caa84e2f57694f6322e2f96 (patch)
tree5f8651517a3423cce11c50e18371d8a73c3c7665 /epan/dissectors/packet-vnc.c
parent971ffd683ea23362bd8009567ff7860371e6e2cc (diff)
downloadwireshark-246fe2ca4c67d8c98caa84e2f57694f6322e2f96.tar.gz
Fixup: tvb_* -> tvb_captured
Change-Id: I9209c1271967405c34c1b6fa43e1726a4d3a5a3f Reviewed-on: https://code.wireshark.org/review/2377 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-vnc.c')
-rw-r--r--epan/dissectors/packet-vnc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-vnc.c b/epan/dissectors/packet-vnc.c
index c3b5f3f42d..22d160a57e 100644
--- a/epan/dissectors/packet-vnc.c
+++ b/epan/dissectors/packet-vnc.c
@@ -495,7 +495,7 @@ static guint vnc_h264_encoding(tvbuff_t *tvb, gint *offset, proto_tree *tree);
pinfo->destport == vnc_preference_alternate_port
#define VNC_BYTES_NEEDED(a) \
- if(a > (guint)tvb_length_remaining(tvb, *offset)) \
+ if(a > (guint)tvb_captured_length_remaining(tvb, *offset)) \
return a;
/* Variables for our preferences */
@@ -943,7 +943,7 @@ vnc_is_client_or_server_version_message(tvbuff_t *tvb, packet_info *pinfo, proto
{
proto_item *bug_item;
- if(tvb_length(tvb) != 12) {
+ if(tvb_captured_length(tvb) != 12) {
return FALSE;
}
@@ -1453,7 +1453,7 @@ vnc_startup_messages(tvbuff_t *tvb, packet_info *pinfo, gint offset,
tvb, offset, 3, ENC_NA);
offset += 3; /* Skip over 3 bytes of padding */
- if(tvb_length_remaining(tvb, offset) > 4) {
+ if(tvb_captured_length_remaining(tvb, offset) > 4) {
/* Sometimes the desktop name & length is skipped */
proto_tree_add_item(tree, hf_vnc_desktop_name_len,
tvb, offset, 4, ENC_BIG_ENDIAN);
@@ -1641,7 +1641,7 @@ vnc_server_to_client(tvbuff_t *tvb, packet_info *pinfo, gint *offset,
if(bytes_needed > 0 && vnc_preference_desegment &&
pinfo->can_desegment) {
- length_remaining = tvb_length_remaining(tvb, *offset);
+ length_remaining = tvb_captured_length_remaining(tvb, *offset);
pinfo->desegment_offset = start_offset;
pinfo->desegment_len = bytes_needed - length_remaining;