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>
This commit is contained in:
Niels Widger 2018-01-10 14:01:47 -05:00 committed by Alexis La Goutte
parent 37e364b241
commit d122ba3a53
1 changed files with 1 additions and 1 deletions

View File

@ -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);