diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:53 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:53 +0000 |
commit | a86c5f7cae7ec9a3398300555a0b644689d946a1 (patch) | |
tree | 39fe4b107c71174fd1e8a8ceb9a4d2aa14116248 /doc/README.heuristic | |
parent | Releasing progress-linux version 4.2.6-1~progress7.99u1. (diff) | |
download | wireshark-a86c5f7cae7ec9a3398300555a0b644689d946a1.tar.xz wireshark-a86c5f7cae7ec9a3398300555a0b644689d946a1.zip |
Merging upstream version 4.4.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'doc/README.heuristic')
-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 |