aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-zbee.h
diff options
context:
space:
mode:
authorPaul Zander <p.j.zander@lighting.com>2018-03-12 10:57:31 +0100
committerAnders Broman <a.broman58@gmail.com>2018-03-14 05:37:00 +0000
commitbe177eb84fee8462be0f7542c0db726301955f90 (patch)
tree09d0371add4390d7dd2caccaa79582cb75349ca1 /epan/dissectors/packet-zbee.h
parent8f86a3b6cb5873bccd5c71ca2791146cde74313d (diff)
Add support for ZigBee ZCL manufacturer specific attributes and commands.
For each ZCL cluster there is the possibility to implement manufacturer specific attributes and commands. This is done by setting a flag (Manufacturer specific = true/false) in the Frame Control Field of the ZCL frame. If this flag is set then also the Manufacturer Code is added to the ZCL frame. Example: Manufacturer Code = 0x100b = Philips. So basically this means that the meaning of an attribute/command is dependent on the manufacturer code. Currently the ZCL frame is parsed and the manufacturer code is also dissected and displayed correctly. However, the dissection of manufacturer specific attributes and commands is not done properly. Their is no distinction between a global attribute/command and a manufacturer specific attribute/command. This results in the incorrect dissection of these manufacturer specific attributes/commands. This patch fixes this issue. The registration of a cluster is now done with a cluster Id AND the manufacturer specific code. Change-Id: I5d4aeb5473fd56f2a570d2a1f83d1090d42423ab Reviewed-on: https://code.wireshark.org/review/26440 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.h')
-rw-r--r--epan/dissectors/packet-zbee.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-zbee.h b/epan/dissectors/packet-zbee.h
index e2e2778cf1..633d597609 100644
--- a/epan/dissectors/packet-zbee.h
+++ b/epan/dissectors/packet-zbee.h
@@ -415,6 +415,8 @@
#define ZBEE_ZCL_FCF_TO_CLIENT 0x01
/* Manufacturer Codes */
+#define ZBEE_MFG_CODE_NONE 0x0000
+
/* Codes less than 0x1000 were issued for RF4CE */
#define ZBEE_MFG_CODE_PANASONIC_RF4CE 0x0001
#define ZBEE_MFG_CODE_SONY_RF4CE 0x0002