6lowpan: Fix endianness issue in is_addr_link_local().
Subsystems (3)
PATCH 1/1 6lowpan: Fix endianness issue in is_addr_link_local().
Signed-off-by YOSHIFUJI Hideaki <[email protected]>
--- net/ieee802154/6lowpan.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/ieee802154/6lowpan.h +1 -1
@@ -84,7 +84,7 @@ (memcmp (addr1, addr2, length >>3 ) ==0 ) /* 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,
Signature · 1 line
1.7.9.5
David Miller
maintainerFrom: YOSHIFUJI Hideaki <[email protected]>
Date: Sun, 10 Mar 2013 04:11:57 +0900
Quoted 1 line
Signed-off-by YOSHIFUJI Hideaki <[email protected]>
Applied and queued up for -stable, thanks.