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>
This commit is contained in:
parent
57fee051c6
commit
328ccd4483
|
@ -390,7 +390,7 @@ dissect_zbee_zcl_door_lock(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
|
|||
zcl->tran_seqno);
|
||||
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_door_lock_srv_rx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_door_lock_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);
|
||||
|
@ -414,7 +414,7 @@ dissect_zbee_zcl_door_lock(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
|
|||
zcl->tran_seqno);
|
||||
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_door_lock_srv_tx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_door_lock_srv_tx_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);
|
||||
|
|
|
@ -197,7 +197,7 @@ dissect_zbee_zcl_basic(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void
|
|||
|
||||
if (tree) {
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_basic_srv_rx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_basic_srv_rx_cmd_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
||||
}
|
||||
/*offset++;*/
|
||||
|
||||
|
@ -1233,7 +1233,7 @@ dissect_zbee_zcl_identify(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_identify_srv_rx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_identify_srv_rx_cmd_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
||||
|
||||
/* Check is this command has a payload, than add the payload tree */
|
||||
rem_len = tvb_reported_length_remaining(tvb, ++offset);
|
||||
|
@ -1266,7 +1266,7 @@ dissect_zbee_zcl_identify(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_identify_srv_tx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_identify_srv_tx_cmd_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
||||
|
||||
/* Check is this command has a payload, than add the payload tree */
|
||||
rem_len = tvb_reported_length_remaining(tvb, ++offset);
|
||||
|
@ -1624,7 +1624,7 @@ dissect_zbee_zcl_groups(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, voi
|
|||
zcl->tran_seqno);
|
||||
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_groups_srv_rx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_groups_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);
|
||||
|
@ -1669,7 +1669,7 @@ dissect_zbee_zcl_groups(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, voi
|
|||
zcl->tran_seqno);
|
||||
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_groups_srv_tx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_groups_srv_tx_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);
|
||||
|
@ -2351,7 +2351,7 @@ dissect_zbee_zcl_scenes(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, voi
|
|||
zcl->tran_seqno);
|
||||
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_scenes_srv_rx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_scenes_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);
|
||||
|
@ -2397,7 +2397,7 @@ dissect_zbee_zcl_scenes(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, voi
|
|||
zcl->tran_seqno);
|
||||
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_scenes_srv_tx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_scenes_srv_tx_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);
|
||||
|
@ -3369,7 +3369,7 @@ dissect_zbee_zcl_on_off(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, voi
|
|||
zcl->tran_seqno);
|
||||
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_on_off_srv_rx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_on_off_srv_rx_cmd_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
||||
rem_len = tvb_reported_length_remaining(tvb, ++offset);
|
||||
if (rem_len > 0) {
|
||||
payload_tree = proto_tree_add_subtree(tree, tvb, offset, rem_len, ett_zbee_zcl_on_off, NULL, "Payload");
|
||||
|
@ -3977,7 +3977,7 @@ dissect_zbee_zcl_alarms(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, voi
|
|||
zcl->tran_seqno);
|
||||
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_alarms_srv_rx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_alarms_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);
|
||||
|
@ -4006,7 +4006,7 @@ dissect_zbee_zcl_alarms(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, voi
|
|||
zcl->tran_seqno);
|
||||
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_alarms_srv_tx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_alarms_srv_tx_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);
|
||||
|
@ -4588,7 +4588,7 @@ dissect_zbee_zcl_level_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_level_control_srv_rx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_level_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);
|
||||
|
@ -5019,7 +5019,7 @@ dissect_zbee_zcl_rssi_location(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tr
|
|||
zcl->tran_seqno);
|
||||
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_rssi_location_srv_rx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_rssi_location_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);
|
||||
|
@ -5068,7 +5068,7 @@ dissect_zbee_zcl_rssi_location(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tr
|
|||
zcl->tran_seqno);
|
||||
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_rssi_location_srv_tx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_rssi_location_srv_tx_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);
|
||||
|
@ -8711,7 +8711,7 @@ dissect_zbee_zcl_commissioning(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tr
|
|||
zcl->tran_seqno);
|
||||
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_commissioning_srv_rx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_commissioning_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);
|
||||
|
@ -8745,7 +8745,7 @@ dissect_zbee_zcl_commissioning(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tr
|
|||
zcl->tran_seqno);
|
||||
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_commissioning_srv_tx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_commissioning_srv_tx_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);
|
||||
|
@ -9268,7 +9268,7 @@ dissect_zbee_zcl_part(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void*
|
|||
zcl->tran_seqno);
|
||||
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_part_srv_rx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_part_srv_rx_cmd_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
||||
|
||||
/* Check is this command has a payload, than add the payload tree */
|
||||
rem_len = tvb_reported_length_remaining(tvb, ++offset);
|
||||
|
@ -9301,7 +9301,7 @@ dissect_zbee_zcl_part(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void*
|
|||
zcl->tran_seqno);
|
||||
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_part_srv_tx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_part_srv_tx_cmd_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
||||
|
||||
/* Check is this command has a payload, than add the payload tree */
|
||||
rem_len = tvb_reported_length_remaining(tvb, ++offset);
|
||||
|
@ -10590,7 +10590,7 @@ dissect_zbee_zcl_ota(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *
|
|||
zcl->tran_seqno);
|
||||
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_ota_srv_rx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_ota_srv_rx_cmd_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
||||
|
||||
/* Check is this command has a payload, than add the payload tree */
|
||||
rem_len = tvb_reported_length_remaining(tvb, ++offset);
|
||||
|
@ -10631,7 +10631,7 @@ dissect_zbee_zcl_ota(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *
|
|||
zcl->tran_seqno);
|
||||
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_ota_srv_tx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_ota_srv_tx_cmd_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
||||
|
||||
/* Check is this command has a payload, than add the payload tree */
|
||||
rem_len = tvb_reported_length_remaining(tvb, ++offset);
|
||||
|
@ -11112,7 +11112,7 @@ dissect_zbee_zcl_pwr_prof (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
|
|||
zcl->tran_seqno);
|
||||
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_pwr_prof_srv_rx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_pwr_prof_srv_rx_cmd_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
||||
|
||||
/* Check is this command has a payload, than add the payload tree */
|
||||
rem_len = tvb_reported_length_remaining(tvb, ++offset);
|
||||
|
@ -11157,7 +11157,7 @@ dissect_zbee_zcl_pwr_prof (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
|
|||
zcl->tran_seqno);
|
||||
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_pwr_prof_srv_tx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_pwr_prof_srv_tx_cmd_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
||||
|
||||
/* Check is this command has a payload, than add the payload tree */
|
||||
rem_len = tvb_reported_length_remaining(tvb, ++offset);
|
||||
|
@ -12277,7 +12277,7 @@ dissect_zbee_zcl_appl_ctrl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
|
|||
zcl->tran_seqno);
|
||||
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_appl_ctrl_srv_rx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_appl_ctrl_srv_rx_cmd_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
||||
|
||||
/* Check is this command has a payload, than add the payload tree */
|
||||
rem_len = tvb_reported_length_remaining(tvb, ++offset);
|
||||
|
@ -12316,7 +12316,7 @@ dissect_zbee_zcl_appl_ctrl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
|
|||
zcl->tran_seqno);
|
||||
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_appl_ctrl_srv_tx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_appl_ctrl_srv_tx_cmd_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
||||
|
||||
/* Check is this command has a payload, than add the payload tree */
|
||||
rem_len = tvb_reported_length_remaining(tvb, ++offset);
|
||||
|
@ -12778,7 +12778,7 @@ dissect_zbee_zcl_poll_ctrl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
|
|||
zcl->tran_seqno);
|
||||
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_poll_ctrl_srv_rx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_poll_ctrl_srv_rx_cmd_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
||||
offset++;
|
||||
|
||||
/* Handle the command dissection. */
|
||||
|
|
|
@ -713,7 +713,7 @@ dissect_zbee_zcl_appl_evtalt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree
|
|||
zcl->tran_seqno);
|
||||
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_appl_evtalt_srv_rx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_appl_evtalt_srv_rx_cmd_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
||||
|
||||
/* Check is this command has a payload, than add the payload tree */
|
||||
rem_len = tvb_reported_length_remaining(tvb, ++offset);
|
||||
|
@ -738,7 +738,7 @@ dissect_zbee_zcl_appl_evtalt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree
|
|||
zcl->tran_seqno);
|
||||
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_appl_evtalt_srv_tx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_appl_evtalt_srv_tx_cmd_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
||||
|
||||
/* Check is this command has a payload, than add the payload tree */
|
||||
rem_len = tvb_reported_length_remaining(tvb, ++offset);
|
||||
|
@ -1049,7 +1049,7 @@ dissect_zbee_zcl_appl_stats (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree
|
|||
zcl->tran_seqno);
|
||||
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_appl_stats_srv_rx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_appl_stats_srv_rx_cmd_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
||||
|
||||
/* Check is this command has a payload, than add the payload tree */
|
||||
rem_len = tvb_reported_length_remaining(tvb, ++offset);
|
||||
|
@ -1078,7 +1078,7 @@ dissect_zbee_zcl_appl_stats (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree
|
|||
zcl->tran_seqno);
|
||||
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_appl_stats_srv_tx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_appl_stats_srv_tx_cmd_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
||||
|
||||
/* Check is this command has a payload, than add the payload tree */
|
||||
rem_len = tvb_reported_length_remaining(tvb, ++offset);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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. */
|
||||
|
|
|
@ -158,7 +158,7 @@ dissect_zbee_zcl_ias_ace(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, vo
|
|||
zcl->tran_seqno);
|
||||
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_ias_ace_srv_rx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_ias_ace_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);
|
||||
|
@ -193,7 +193,7 @@ dissect_zbee_zcl_ias_ace(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, vo
|
|||
zcl->tran_seqno);
|
||||
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_ias_ace_srv_tx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_ias_ace_srv_tx_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);
|
||||
|
@ -579,7 +579,7 @@ dissect_zbee_zcl_ias_wd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, voi
|
|||
zcl->tran_seqno);
|
||||
|
||||
/* Add the command ID. */
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_ias_wd_srv_rx_cmd_id, tvb, offset, 1, cmd_id);
|
||||
proto_tree_add_item(tree, hf_zbee_zcl_ias_wd_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);
|
||||
|
|
Loading…
Reference in New Issue