diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:33 +0000 |
commit | 9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9 (patch) | |
tree | 2784370cda9bbf2da9114d70f05399c0b229d28c /doc/README.heuristic | |
parent | Adding debian version 4.2.6-1. (diff) | |
download | wireshark-9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9.tar.xz wireshark-9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9.zip |
Merging upstream version 4.4.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | doc/README.heuristic | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/README.heuristic b/doc/README.heuristic index 08e9464f..7f8a6364 100644 --- a/doc/README.heuristic +++ b/doc/README.heuristic @@ -125,15 +125,15 @@ test_PROTOABBREV(packet_info *pinfo _U_, tvbuff_t *tvb, int offset _U_, void *da return false; /* 1) first byte must be 0x42 */ - if ( tvb_get_guint8(tvb, 0) != 0x42 ) + if ( tvb_get_uint8(tvb, 0) != 0x42 ) return false; /* 2) second byte is a type field and only can contain values between 0x20-0x33 */ - if ( tvb_get_guint8(tvb, 1) < 0x20 || tvb_get_guint8(tvb, 1) > 0x33 ) + if ( tvb_get_uint8(tvb, 1) < 0x20 || tvb_get_uint8(tvb, 1) > 0x33 ) return false; /* 3) third byte is a flag field, where the lower 4 bits always contain the value 0 */ - if ( tvb_get_guint8(tvb, 2) & 0x0f ) + if ( tvb_get_uint8(tvb, 2) & 0x0f ) return false; /* 4) fourth and fifth bytes contains a 16 bit length field, where the value can't be longer than 10000 bytes */ @@ -187,7 +187,7 @@ dissect_PROTOABBREV_heur_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree /* and do the dissection */ dissect_PROTOABBREV_tcp(tvb, pinfo, tree, data); - return (true); + return true; } static int |