diff options
author | Dana Sy <dana.hayden.sy@gmail.com> | 2018-04-20 17:06:06 -0700 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-04-21 10:08:19 +0000 |
commit | 328ccd448382a963cdc3a407583b1cef8698c2c8 (patch) | |
tree | 2ee0109040b0c95d2c08aac6fe367b224ebd69b6 /epan/dissectors/packet-zbee-zcl-lighting.c | |
parent | 57fee051c6a37ab152d303be4d156c8e5c64b36a (diff) |
zbee: Changed encoding for zcl command IDs
The command ID was passing the value of the cmd_id instead of the
encoding for the proto_tree_add_item. This caused an issue with the
color control cluster where it wasn't parsing the command ID properly.
Change-Id: Iee42031146e37bb96182f765e79de47f6e4b5a04
Reviewed-on: https://code.wireshark.org/review/27064
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-zbee-zcl-lighting.c')
-rw-r--r-- | epan/dissectors/packet-zbee-zcl-lighting.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-zbee-zcl-lighting.c b/epan/dissectors/packet-zbee-zcl-lighting.c index 5173d9d53e..0ff3d13186 100644 --- a/epan/dissectors/packet-zbee-zcl-lighting.c +++ b/epan/dissectors/packet-zbee-zcl-lighting.c @@ -412,7 +412,7 @@ dissect_zbee_zcl_color_control(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tr zcl->tran_seqno); /* Add the command ID. */ - proto_tree_add_item(tree, hf_zbee_zcl_color_control_srv_rx_cmd_id, tvb, offset, 1, cmd_id); + proto_tree_add_item(tree, hf_zbee_zcl_color_control_srv_rx_cmd_id, tvb, offset, 1, ENC_LITTLE_ENDIAN); /* Check if this command has a payload, then add the payload tree */ rem_len = tvb_reported_length_remaining(tvb, ++offset); |