From: Varka Bhadram <var...@cdac.in> This patch removes the unused macros.
Signed-off-by: Varka Bhadram <var...@cdac.in> --- include/net/6lowpan.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/include/net/6lowpan.h b/include/net/6lowpan.h index 79b530f..06f997a 100644 --- a/include/net/6lowpan.h +++ b/include/net/6lowpan.h @@ -82,10 +82,6 @@ (((a)->s6_addr32[2]) == 0) && \ (((a)->s6_addr32[3]) == 0)) -/* compare ipv6 addresses prefixes */ -#define ipaddr_prefixcmp(addr1, addr2, length) \ - (memcmp(addr1, addr2, length >> 3) == 0) - /* local link, i.e. FE80::/10 */ #define is_addr_link_local(a) (((a)->s6_addr16[0]) == htons(0xFE80)) @@ -105,17 +101,6 @@ /* check whether the 112-bit gid of the multicast address is mappable to: */ -/* 9 bits, for FF02::1 (all nodes) and FF02::2 (all routers) addresses only. */ -#define lowpan_is_mcast_addr_compressable(a) \ - ((((a)->s6_addr16[1]) == 0) && \ - (((a)->s6_addr16[2]) == 0) && \ - (((a)->s6_addr16[3]) == 0) && \ - (((a)->s6_addr16[4]) == 0) && \ - (((a)->s6_addr16[5]) == 0) && \ - (((a)->s6_addr16[6]) == 0) && \ - (((a)->s6_addr[14]) == 0) && \ - ((((a)->s6_addr[15]) == 1) || (((a)->s6_addr[15]) == 2))) - /* 48 bits, FFXX::00XX:XXXX:XXXX */ #define lowpan_is_mcast_addr_compressable48(a) \ ((((a)->s6_addr16[1]) == 0) && \ -- 1.7.9.5 ------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk _______________________________________________ Linux-zigbee-devel mailing list Linux-zigbee-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel