OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fef4c86
)
6lowpan: Fix endianness issue in is_addr_link_local().
author
YOSHIFUJI Hideaki / 吉藤英明
<yoshfuji@linux-ipv6.org>
Sat, 9 Mar 2013 09:11:57 +0000
(09:11 +0000)
committer
David S. Miller
<davem@davemloft.net>
Sun, 10 Mar 2013 20:49:35 +0000
(16:49 -0400)
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ieee802154/6lowpan.h
patch
|
blob
|
history
diff --git
a/net/ieee802154/6lowpan.h
b/net/ieee802154/6lowpan.h
index
8c2251f
..
bba5f83
100644
(file)
--- a/
net/ieee802154/6lowpan.h
+++ b/
net/ieee802154/6lowpan.h
@@
-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,