ZigBee: Allow a different set of attributes for ZCL client and server
authorKenneth Soerensen <knnthsrnsn@gmail.com>
Sat, 31 Mar 2018 19:23:47 +0000 (21:23 +0200)
committerAnders Broman <a.broman58@gmail.com>
Thu, 5 Apr 2018 05:20:52 +0000 (05:20 +0000)
commit62af7654388645a2479193bd1a280b65c1e714e0
tree4b12880f9e0b26249574fd481e38c2ab60985a7a
parent2f44216f3aab9a9a31b7b00df50de70d0c6b5f8e
ZigBee: Allow a different set of attributes for ZCL client and server

Some clusters, for example the Smart Energy Metering cluster,
requires a different set of attributes for the ZCL client and
server but with overlapping IDs.

This change allows to specify a different set of attributes for
the ZCL client.

To avoid breaking existing clusters that might have client attributes
the same set of attributes are used for server and client when
zbee_zcl_init_cluster is called.

This new client attribute set is used in the Smart Energy Metering
cluster in this commit.

Change-Id: Ie25ad746dac1ccbb233ae8975ef9047d3fc6a170
Reviewed-on: https://code.wireshark.org/review/26694
Reviewed-by: Martin Boye Petersen <martinboyepetersen@gmail.com>
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Paul Zander <p.j.zander@lighting.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
12 files changed:
epan/dissectors/packet-zbee-nwk-gp.c
epan/dissectors/packet-zbee-zcl-closures.c
epan/dissectors/packet-zbee-zcl-general.c
epan/dissectors/packet-zbee-zcl-ha.c
epan/dissectors/packet-zbee-zcl-hvac.c
epan/dissectors/packet-zbee-zcl-lighting.c
epan/dissectors/packet-zbee-zcl-meas-sensing.c
epan/dissectors/packet-zbee-zcl-misc.c
epan/dissectors/packet-zbee-zcl-sas.c
epan/dissectors/packet-zbee-zcl-se.c
epan/dissectors/packet-zbee-zcl.c
epan/dissectors/packet-zbee-zcl.h