aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-zbee-zcl-general.c
diff options
context:
space:
mode:
authorJohn Keeping <john@metanate.com>2017-08-05 15:13:40 +0100
committerMichael Mann <mmann78@netscape.net>2017-08-05 16:54:08 +0000
commitc57da453bab14048f419eae6b9e9ff7a332a32f0 (patch)
treec3fa6a5aef01c2676f7f2c5ef2f8179ef69b97bb /epan/dissectors/packet-zbee-zcl-general.c
parent15c0c8db5e0aac50e44eb3e2cd6eb5c0b3585220 (diff)
ZigBee: fix OTA File Version bitfield
Commit ffea2f8a24 ("ZigBee: fix endian for File Version field in OTA") fixed the endianness of the file version field but did not update the masks for the sub-elements of this field now that they are compared against the value decoded as little-endian. Change-Id: Icdb9d56cc29da19b9fc26da84979f15936c930d4 Reviewed-on: https://code.wireshark.org/review/22955 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-zbee-zcl-general.c')
-rw-r--r--epan/dissectors/packet-zbee-zcl-general.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-zbee-zcl-general.c b/epan/dissectors/packet-zbee-zcl-general.c
index 565a4abd99..72fbf8a8d6 100644
--- a/epan/dissectors/packet-zbee-zcl-general.c
+++ b/epan/dissectors/packet-zbee-zcl-general.c
@@ -9119,10 +9119,10 @@ void proto_reg_handoff_zbee_zcl_part(void)
#define ZBEE_ZCL_OTA_STATUS_WAIT_FOR_MORE 0x05 /* Wait for more */
/* 0x06-0xff - Reserved */
/* File Version mask */
-#define ZBEE_ZCL_OTA_FILE_VERS_APPL_RELEASE 0x000000FF /* Application Release */
-#define ZBEE_ZCL_OTA_FILE_VERS_APPL_BUILD 0x0000FF00 /* Application Build */
-#define ZBEE_ZCL_OTA_FILE_VERS_STACK_RELEASE 0x00FF0000 /* Stack Release */
-#define ZBEE_ZCL_OTA_FILE_VERS_STACK_BUILD 0xFF000000 /* Stack Build */
+#define ZBEE_ZCL_OTA_FILE_VERS_APPL_RELEASE 0xFF000000 /* Application Release */
+#define ZBEE_ZCL_OTA_FILE_VERS_APPL_BUILD 0x00FF0000 /* Application Build */
+#define ZBEE_ZCL_OTA_FILE_VERS_STACK_RELEASE 0x0000FF00 /* Stack Release */
+#define ZBEE_ZCL_OTA_FILE_VERS_STACK_BUILD 0x000000FF /* Stack Build */
/* Field Control bitmask field list */
#define ZBEE_ZCL_OTA_FIELD_CTRL_HW_VER_PRESENT 0x01 /* bit 0 */