diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2017-07-27 16:12:28 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2017-07-28 05:35:41 +0000 |
commit | 1c8ec368f03e78978cb13a6bbf6a413a264141cc (patch) | |
tree | 6520feec4604a1c6911016b9ca39a4f681a5a8c2 /epan/dissectors/packet-dis.c | |
parent | b8a33b25ac92d0ce0eb21d09dd3324f12eced7ef (diff) |
dis: it is more logic sub_tree2 is the subtree of sub_tree
Ping-Bug: 13917
Change-Id: Ic0b6408b9e0c2a21187b5fe01b8ebfd7493ba7c3
Reviewed-on: https://code.wireshark.org/review/22820
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-dis.c')
-rw-r--r-- | epan/dissectors/packet-dis.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/epan/dissectors/packet-dis.c b/epan/dissectors/packet-dis.c index e11752dbf1..2c9032e295 100644 --- a/epan/dissectors/packet-dis.c +++ b/epan/dissectors/packet-dis.c @@ -5241,26 +5241,26 @@ static int dissect_DIS_PARSER_ENTITY_STATE_PDU(tvbuff_t *tvb, packet_info *pinfo } offset += 4; - sub_tree2 = proto_tree_add_subtree(tree, tvb, offset, 40, ett_entity_dead_reckoning_parameters, NULL, "Dead Reckoning Parameters"); - proto_tree_add_item(sub_tree2, hf_dis_entity_dead_reckoning_algorithm, tvb, offset, 1, ENC_BIG_ENDIAN); + sub_tree = proto_tree_add_subtree(tree, tvb, offset, 40, ett_entity_dead_reckoning_parameters, NULL, "Dead Reckoning Parameters"); + proto_tree_add_item(sub_tree, hf_dis_entity_dead_reckoning_algorithm, tvb, offset, 1, ENC_BIG_ENDIAN); offset++; proto_tree_add_item(sub_tree, hf_dis_dead_reckoning_other_parameters, tvb, offset, 15, ENC_NA); offset += 15; - sub_tree = proto_tree_add_subtree(sub_tree2, tvb, offset, 12, ett_entity_linear_aceleration, NULL, "Entity Linear Acceleration"); - proto_tree_add_item(sub_tree, hf_dis_entity_linear_aceleration_x, tvb, offset, 4, ENC_BIG_ENDIAN); + sub_tree2 = proto_tree_add_subtree(sub_tree, tvb, offset, 12, ett_entity_linear_aceleration, NULL, "Entity Linear Acceleration"); + proto_tree_add_item(sub_tree2, hf_dis_entity_linear_aceleration_x, tvb, offset, 4, ENC_BIG_ENDIAN); offset += 4; - proto_tree_add_item(sub_tree, hf_dis_entity_linear_aceleration_y, tvb, offset, 4, ENC_BIG_ENDIAN); + proto_tree_add_item(sub_tree2, hf_dis_entity_linear_aceleration_y, tvb, offset, 4, ENC_BIG_ENDIAN); offset += 4; - proto_tree_add_item(sub_tree, hf_dis_entity_linear_aceleration_z, tvb, offset, 4, ENC_BIG_ENDIAN); + proto_tree_add_item(sub_tree2, hf_dis_entity_linear_aceleration_z, tvb, offset, 4, ENC_BIG_ENDIAN); offset += 4; - sub_tree = proto_tree_add_subtree(sub_tree2, tvb, offset, 12, ett_entity_angular_velocity, NULL, "Entity Angular Velocity"); - proto_tree_add_item(sub_tree, hf_dis_entity_entity_angular_velocity_x, tvb, offset, 4, ENC_BIG_ENDIAN); + sub_tree2 = proto_tree_add_subtree(sub_tree, tvb, offset, 12, ett_entity_angular_velocity, NULL, "Entity Angular Velocity"); + proto_tree_add_item(sub_tree2, hf_dis_entity_entity_angular_velocity_x, tvb, offset, 4, ENC_BIG_ENDIAN); offset += 4; - proto_tree_add_item(sub_tree, hf_dis_entity_entity_angular_velocity_y, tvb, offset, 4, ENC_BIG_ENDIAN); + proto_tree_add_item(sub_tree2, hf_dis_entity_entity_angular_velocity_y, tvb, offset, 4, ENC_BIG_ENDIAN); offset += 4; - proto_tree_add_item(sub_tree, hf_dis_entity_entity_angular_velocity_z, tvb, offset, 4, ENC_BIG_ENDIAN); + proto_tree_add_item(sub_tree2, hf_dis_entity_entity_angular_velocity_z, tvb, offset, 4, ENC_BIG_ENDIAN); offset += 4; sub_tree = proto_tree_add_subtree(tree, tvb, offset, 12, ett_entity_marking_text, NULL, "Entity Marking"); |