aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorNiels Widger <niels@qacafe.com>2018-01-10 14:01:47 -0500
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2018-01-10 21:24:56 +0000
commitd122ba3a53d33d08b92ec5436ea819a1ee52be42 (patch)
tree6be63e42570588cb6047a630a6cc2f847db16b5b /epan
parent37e364b2411a9bead0d35192f7f9bbb7d66bc775 (diff)
CoAP: Shift block mflag so it is 0/1 instead of 0/8
Shift the value stored in coinfo->block_mflag in dissect_coap_opt_block so that we store 0/1 instead of 0/8. Change-Id: I45ac08564ff1fdcaf4e7306692db862b6a70989b Reviewed-on: https://code.wireshark.org/review/25248 Reviewed-by: Anders Broman <a.broman58@gmail.com> Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Niels Widger <niels@qacafe.com> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-coap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-coap.c b/epan/dissectors/packet-coap.c
index d41781d88f..bdd1819b40 100644
--- a/epan/dissectors/packet-coap.c
+++ b/epan/dissectors/packet-coap.c
@@ -667,7 +667,7 @@ dissect_coap_opt_block(tvbuff_t *tvb, proto_item *head_item, proto_tree *subtree
tvb, offset, opt_length, coinfo->block_number);
/* More flag in the end of the option */
- coinfo->block_mflag = val & COAP_BLOCK_MFLAG_MASK;
+ coinfo->block_mflag = (val & COAP_BLOCK_MFLAG_MASK) >> 3;
proto_tree_add_uint(subtree, hf_coap_opt_block_mflag,
tvb, offset + opt_length - 1, 1, coinfo->block_mflag);