aboutsummaryrefslogtreecommitdiffstats
path: root/epan/ipv6-utils.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2013-10-16 17:19:59 +0000
committerGerald Combs <gerald@wireshark.org>2013-10-16 17:19:59 +0000
commit1701f42969d28ef428f6e8f88b44f6b5bc949593 (patch)
treea88e112701932ddac7cc5799c8acfac3dc0cbbdc /epan/ipv6-utils.h
parent4515b2b3aae5fecd52548006b84f0746325b0cb5 (diff)
Fix warnings found by Clang 5.0 (-Wself-assign and -Wparentheses-equality).
Move code from ipv6-utils.h to packet-ipv6.c since that was the only place it was used. Comment out unused code. svn path=/trunk/; revision=52645
Diffstat (limited to 'epan/ipv6-utils.h')
-rw-r--r--epan/ipv6-utils.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/epan/ipv6-utils.h b/epan/ipv6-utils.h
index 1a1fcd2df0..2f8afedec6 100644
--- a/epan/ipv6-utils.h
+++ b/epan/ipv6-utils.h
@@ -37,18 +37,4 @@ typedef struct {
guint32 prefix;
} ipv6_addr;
-/**
- * Unicast Scope
- * Note that we must check topmost 10 bits only, not 16 bits (see RFC2373).
- */
-#define E_IN6_IS_ADDR_LINKLOCAL(a) \
- (((a)->bytes[0] == 0xfe) && (((a)->bytes[1] & 0xc0) == 0x80))
-#define E_IN6_IS_ADDR_SITELOCAL(a) \
- (((a)->bytes[0] == 0xfe) && (((a)->bytes[1] & 0xc0) == 0xc0))
-
-/**
- * Multicast
- */
-#define E_IN6_IS_ADDR_MULTICAST(a) ((a)->bytes[0] == 0xff)
-
#endif /* __IPV6_UTILS_H__ */