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:
parent
37e364b241
commit
d122ba3a53
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue