mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
6lowpan: Fix endianness issue in is_addr_link_local().
[ Upstream commit 9026c49272
]
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
32ceecc258
commit
7cba6aeae5
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,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,
|
||||
|
|
Loading…
Reference in a new issue