diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2016-09-27 23:57:29 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2016-09-28 06:07:01 +0000 |
commit | 152e245804397bfcd0fc3e4cfac22e1d49b0b169 (patch) | |
tree | 3ed21c5c6178a39c59409ddaa7859c2d59de5163 /epan/dissectors/packet-gsm_abis_pgsl.c | |
parent | f8b32e5b4edac7c4ca9932aacef64b48e514b577 (diff) |
proto_tree_add_item_ret_(u)int/proto_tree_add_bitmask_with_flags_ret_uint64: return real value
Apply mask and bit shift on the returned value.
Change-Id: I00aebc854756f01a25199a259d6d5252abea4349
Reviewed-on: https://code.wireshark.org/review/17958
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-gsm_abis_pgsl.c')
-rw-r--r-- | epan/dissectors/packet-gsm_abis_pgsl.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/epan/dissectors/packet-gsm_abis_pgsl.c b/epan/dissectors/packet-gsm_abis_pgsl.c index d6bf2fccd1..a9b8c9cf1d 100644 --- a/epan/dissectors/packet-gsm_abis_pgsl.c +++ b/epan/dissectors/packet-gsm_abis_pgsl.c @@ -137,7 +137,6 @@ dissect_abis_pgsl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *dat proto_tree_add_item(pgsl_tree, hf_pgsl_version, tvb, offset, 1, ENC_NA); proto_tree_add_item_ret_uint(pgsl_tree, hf_pgsl_msg_disc, tvb, offset, 1, ENC_NA, &msg_disc); - msg_disc &= 0xF; offset++; col_append_str(pinfo->cinfo, COL_INFO, val_to_str(msg_disc, pgsl_msg_disc_vals, "Unknown (%u)")); @@ -187,7 +186,6 @@ dissect_abis_pgsl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *dat /* Codec Status */ proto_tree_add_item(pgsl_tree, hf_pgsl_codec_delay, tvb, offset, 1, ENC_NA); proto_tree_add_item_ret_uint(pgsl_tree, hf_pgsl_codec_cs, tvb, offset, 1, ENC_NA, &cs); - cs &= 0x1f; proto_tree_add_item(pgsl_tree, hf_pgsl_codec_rxlev, tvb, offset+1, 1, ENC_NA); if (cs <= 4) { /* GPRS */ |