Commit 7cba6aea authored by YOSHIFUJI Hideaki's avatar YOSHIFUJI Hideaki Committed by Greg Kroah-Hartman

6lowpan: Fix endianness issue in is_addr_link_local().

[ Upstream commit 9026c492 ]
Signed-off-by: default avatarYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 32ceecc2
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
(memcmp(addr1, addr2, length >> 3) == 0) (memcmp(addr1, addr2, length >> 3) == 0)
/* local link, i.e. FE80::/10 */ /* local link, i.e. FE80::/10 */
#define is_addr_link_local(a) (((a)->s6_addr16[0]) == 0x80FE) #define is_addr_link_local(a) (((a)->s6_addr16[0]) == htons(0xFE80))
/* /*
* check whether we can compress the IID to 16 bits, * check whether we can compress the IID to 16 bits,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment