aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-zbee-zcl-misc.c
diff options
context:
space:
mode:
authorDana Sy <dana.hayden.sy@gmail.com>2018-04-20 17:06:06 -0700
committerAnders Broman <a.broman58@gmail.com>2018-04-21 10:08:19 +0000
commit328ccd448382a963cdc3a407583b1cef8698c2c8 (patch)
tree2ee0109040b0c95d2c08aac6fe367b224ebd69b6 /epan/dissectors/packet-zbee-zcl-misc.c
parent57fee051c6a37ab152d303be4d156c8e5c64b36a (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-misc.c')
-rw-r--r--epan/dissectors/packet-zbee-zcl-misc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-zbee-zcl-misc.c b/epan/dissectors/packet-zbee-zcl-misc.c
index 25dbda1d97..761aa80774 100644
--- a/epan/dissectors/packet-zbee-zcl-misc.c
+++ b/epan/dissectors/packet-zbee-zcl-misc.c
@@ -369,7 +369,7 @@ dissect_zbee_zcl_thermostat(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
zcl->tran_seqno);
/* Add the command ID. */
- proto_tree_add_item(tree, hf_zbee_zcl_thermostat_srv_rx_cmd_id, tvb, offset, 1, cmd_id);
+ proto_tree_add_item(tree, hf_zbee_zcl_thermostat_srv_rx_cmd_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset++;
/* Handle the command dissection. */
@@ -410,7 +410,7 @@ dissect_zbee_zcl_thermostat(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
zcl->tran_seqno);
/* Add the command ID. */
- proto_tree_add_item(tree, hf_zbee_zcl_thermostat_srv_tx_cmd_id, tvb, offset, 1, cmd_id);
+ proto_tree_add_item(tree, hf_zbee_zcl_thermostat_srv_tx_cmd_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset++;
/* Handle the command dissection. */
@@ -808,7 +808,7 @@ dissect_zbee_zcl_ias_zone(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, v
zcl->tran_seqno);
/* Add the command ID. */
- proto_tree_add_item(tree, hf_zbee_zcl_ias_zone_srv_rx_cmd_id, tvb, offset, 1, cmd_id);
+ proto_tree_add_item(tree, hf_zbee_zcl_ias_zone_srv_rx_cmd_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset++;
/* Handle the command dissection. */
@@ -830,7 +830,7 @@ dissect_zbee_zcl_ias_zone(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, v
zcl->tran_seqno);
/* Add the command ID. */
- proto_tree_add_item(tree, hf_zbee_zcl_ias_zone_srv_tx_cmd_id, tvb, offset, 1, cmd_id);
+ proto_tree_add_item(tree, hf_zbee_zcl_ias_zone_srv_tx_cmd_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset++;
/* Handle the command dissection. */