aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVarka Bhadram <varkab@cdac.in>2014-07-30 01:35:11 -0400
committerMarcel Holtmann <marcel@holtmann.org>2014-07-30 13:28:41 -0400
commit267ca9fefca70817ca3283f5ae564ee385e742b6 (patch)
treeb68258b1348f78ccc8f6ee7523d94e0c8bcd2d62
parent3fa71fe0b9908144c5e710a4a4fc5d01b60d9dee (diff)
6lowpan: remove unused macros
This patch removes the unused macros. Signed-off-by: Varka Bhadram <varkab@cdac.in> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r--include/net/6lowpan.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/include/net/6lowpan.h b/include/net/6lowpan.h
index 3bb3503b7ff4..614920a39bf2 100644
--- a/include/net/6lowpan.h
+++ b/include/net/6lowpan.h
@@ -75,10 +75,6 @@
75 (((a)->s6_addr[14]) == (m)[6]) && \ 75 (((a)->s6_addr[14]) == (m)[6]) && \
76 (((a)->s6_addr[15]) == (m)[7])) 76 (((a)->s6_addr[15]) == (m)[7]))
77 77
78/* compare ipv6 addresses prefixes */
79#define ipaddr_prefixcmp(addr1, addr2, length) \
80 (memcmp(addr1, addr2, length >> 3) == 0)
81
82/* 78/*
83 * check whether we can compress the IID to 16 bits, 79 * check whether we can compress the IID to 16 bits,
84 * it's possible for unicast adresses with first 49 bits are zero only. 80 * it's possible for unicast adresses with first 49 bits are zero only.
@@ -92,17 +88,6 @@
92 88
93/* check whether the 112-bit gid of the multicast address is mappable to: */ 89/* check whether the 112-bit gid of the multicast address is mappable to: */
94 90
95/* 9 bits, for FF02::1 (all nodes) and FF02::2 (all routers) addresses only. */
96#define lowpan_is_mcast_addr_compressable(a) \
97 ((((a)->s6_addr16[1]) == 0) && \
98 (((a)->s6_addr16[2]) == 0) && \
99 (((a)->s6_addr16[3]) == 0) && \
100 (((a)->s6_addr16[4]) == 0) && \
101 (((a)->s6_addr16[5]) == 0) && \
102 (((a)->s6_addr16[6]) == 0) && \
103 (((a)->s6_addr[14]) == 0) && \
104 ((((a)->s6_addr[15]) == 1) || (((a)->s6_addr[15]) == 2)))
105
106/* 48 bits, FFXX::00XX:XXXX:XXXX */ 91/* 48 bits, FFXX::00XX:XXXX:XXXX */
107#define lowpan_is_mcast_addr_compressable48(a) \ 92#define lowpan_is_mcast_addr_compressable48(a) \
108 ((((a)->s6_addr16[1]) == 0) && \ 93 ((((a)->s6_addr16[1]) == 0) && \