diff options
Diffstat (limited to 'net/ieee802154/6lowpan.h')
-rw-r--r-- | net/ieee802154/6lowpan.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/ieee802154/6lowpan.h b/net/ieee802154/6lowpan.h index bba5f8336317..4b8f917658b5 100644 --- a/net/ieee802154/6lowpan.h +++ b/net/ieee802154/6lowpan.h | |||
@@ -92,9 +92,10 @@ | |||
92 | */ | 92 | */ |
93 | #define lowpan_is_iid_16_bit_compressable(a) \ | 93 | #define lowpan_is_iid_16_bit_compressable(a) \ |
94 | ((((a)->s6_addr16[4]) == 0) && \ | 94 | ((((a)->s6_addr16[4]) == 0) && \ |
95 | (((a)->s6_addr16[5]) == 0) && \ | 95 | (((a)->s6_addr[10]) == 0) && \ |
96 | (((a)->s6_addr16[6]) == 0) && \ | 96 | (((a)->s6_addr[11]) == 0xff) && \ |
97 | ((((a)->s6_addr[14]) & 0x80) == 0)) | 97 | (((a)->s6_addr[12]) == 0xfe) && \ |
98 | (((a)->s6_addr[13]) == 0)) | ||
98 | 99 | ||
99 | /* multicast address */ | 100 | /* multicast address */ |
100 | #define is_addr_mcast(a) (((a)->s6_addr[0]) == 0xFF) | 101 | #define is_addr_mcast(a) (((a)->s6_addr[0]) == 0xFF) |