Bluetooth: hidp: verify l2cap sockets
[pandora-kernel.git] / net / ieee802154 / 6lowpan.h
index 5d8cf80..8b0866f 100644 (file)
@@ -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,