[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <50864168.8000509@computer.org>
Date: Tue, 23 Oct 2012 09:04:08 +0200
From: Jan Ceuleers <jan.ceuleers@...puter.org>
To: Tony Cheneau <tony.cheneau@...esiak.org>
CC: "David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org,
linux-zigbee-devel@...ts.sourceforge.net,
Alan Ott <alan@...nal11.us>,
Alexander Smirnov <alex.bluesman.smirnov@...il.com>
Subject: Re: [PATCH net-next 01/15] 6lowpan: lowpan_is_iid_16_bit_compressable()
does not detect compressable address correctly
On 10/23/2012 06:09 AM, Tony Cheneau wrote:
> #define lowpan_is_iid_16_bit_compressable(a) \
> ((((a)->s6_addr16[4]) == 0) && \
> - (((a)->s6_addr16[5]) == 0) && \
> - (((a)->s6_addr16[6]) == 0) && \
> - ((((a)->s6_addr[14]) & 0x80) == 0))
> + (((a)->s6_addr[10]) == 0) && \
> + (((a)->s6_addr[11]) == 0xff) && \
> + (((a)->s6_addr[12]) == 0xfe) && \
> + (((a)->s6_addr[13]) == 0))
> +
>
> /* multicast address */
> #define is_addr_mcast(a) (((a)->s6_addr[0]) == 0xFF)
>
Is the additional newline needed at the end of the #define?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists