From 06ffd78ad4156ed40adbfb49a236b4a64ad34d6e Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 8 May 2019 06:28:53 -0600 Subject: [PATCH] Revert "include/nuttx/net/sixlowpan.h: Fix endian-ness problem in SIXLOWPAN_IS_IID_8BIT_COMPRESSABLE() macro definition. This macro checks whether we can compress the IID to 8 bits." This reverts commit 0ac8b5b8f6dfaf3942fbfcf041c25de377e95b74. After additional testing Ivan determined that this original change was incorrect. --- include/nuttx/net/sixlowpan.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nuttx/net/sixlowpan.h b/include/nuttx/net/sixlowpan.h index e7a8de40ce..22581945ff 100644 --- a/include/nuttx/net/sixlowpan.h +++ b/include/nuttx/net/sixlowpan.h @@ -295,7 +295,7 @@ #define SIXLOWPAN_IS_IID_8BIT_COMPRESSABLE(a) \ ((((a)[4]) == 0x0000) && (((a)[5]) == HTONS(0x00ff)) && \ - (((a)[6]) == HTONS(0xfe00)) && ((((a)[7]) & HTONS(0x00ff)) == 0)) + (((a)[6]) == HTONS(0xfe00)) && ((((a)[7]) & HTONS(0xff00)) == 0)) /* Check whether we can compress the IID in address 'a' to 16 bits. This is * used for unicast addresses only, and is true if the address is on the