reverted to byte-based iid check

This commit is contained in:
Joakim Eriksson 2011-03-07 22:02:43 +01:00
parent 4599284110
commit 340c86e401

View file

@ -238,8 +238,10 @@ struct sicslowpan_addr_context {
*/ */
#define sicslowpan_is_iid_16_bit_compressable(a) \ #define sicslowpan_is_iid_16_bit_compressable(a) \
((((a)->u16[4]) == 0) && \ ((((a)->u16[4]) == 0) && \
(((a)->u16[5]) == 0x00ff) && \ (((a)->u8[10]) == 0)&& \
(((a)->u16[6]) == 0xfe00)) (((a)->u8[11]) == 0xff)&& \
(((a)->u8[12]) == 0xfe)&& \
(((a)->u8[13]) == 0))
/** /**
* \brief check whether the 9-bit group-id of the * \brief check whether the 9-bit group-id of the