* [PATCH net] 6lowpan: Fix endianness issue in is_addr_link_local().
@ 2013-03-09 19:11 YOSHIFUJI Hideaki
2013-03-10 20:49 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: YOSHIFUJI Hideaki @ 2013-03-09 19:11 UTC (permalink / raw)
To: davem; +Cc: linux-zigbee-devel, netdev, yoshfuji
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
---
net/ieee802154/6lowpan.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/ieee802154/6lowpan.h b/net/ieee802154/6lowpan.h
index 8c2251f..bba5f83 100644
--- 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,
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net] 6lowpan: Fix endianness issue in is_addr_link_local().
2013-03-09 19:11 [PATCH net] 6lowpan: Fix endianness issue in is_addr_link_local() YOSHIFUJI Hideaki
@ 2013-03-10 20:49 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-03-10 20:49 UTC (permalink / raw)
To: yoshfuji; +Cc: linux-zigbee-devel, netdev
From: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Date: Sun, 10 Mar 2013 04:11:57 +0900
> Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Applied and queued up for -stable, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-10 20:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-09 19:11 [PATCH net] 6lowpan: Fix endianness issue in is_addr_link_local() YOSHIFUJI Hideaki
2013-03-10 20:49 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.