From 340c86e401f311b59122413f46290a6f20ad8f73 Mon Sep 17 00:00:00 2001 From: Joakim Eriksson Date: Mon, 7 Mar 2011 22:02:43 +0100 Subject: [PATCH] reverted to byte-based iid check --- core/net/sicslowpan.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/net/sicslowpan.h b/core/net/sicslowpan.h index 605bdb5f4..cb73db599 100644 --- a/core/net/sicslowpan.h +++ b/core/net/sicslowpan.h @@ -238,8 +238,10 @@ struct sicslowpan_addr_context { */ #define sicslowpan_is_iid_16_bit_compressable(a) \ ((((a)->u16[4]) == 0) && \ - (((a)->u16[5]) == 0x00ff) && \ - (((a)->u16[6]) == 0xfe00)) + (((a)->u8[10]) == 0)&& \ + (((a)->u8[11]) == 0xff)&& \ + (((a)->u8[12]) == 0xfe)&& \ + (((a)->u8[13]) == 0)) /** * \brief check whether the 9-bit group-id of the