Make comparison endian-safe, thanks Ivan.

This commit is contained in:
David Kopf 2011-08-18 14:01:20 -04:00
parent 53737d9a38
commit 11efc33d2c

View file

@ -1935,7 +1935,8 @@ CCIF extern uip_lladdr_t uip_lladdr;
(((a)->u16[4]) == 0) && \
(((a)->u16[5]) == 0) && \
(((a)->u16[6]) == 0) && \
(((a)->u16[7]) == 1))
(((a)->u8[14]) == 0) && \
(((a)->u8[15]) == 0x01))
/**
* \brief Is IPv6 address a the unspecified address
* a is of type uip_ipaddr_t