aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/inet_ipv6.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-10-26 02:23:37 -0700
committerGuy Harris <guy@alum.mit.edu>2017-10-26 09:24:06 +0000
commitb1147a60337ff7a6f24daacfbfabb681bf031fd5 (patch)
treec5a7c67a02bb11c156438a00213ce40ffbf4acc5 /wsutil/inet_ipv6.h
parent458c3c026ed03d17ec7803c61981274ee4574f89 (diff)
Rename some IPv6 address test functions.
They test where the address is XXX, for various values of XXX, so name them accordingly. Change-Id: I437175f02b3f97fecee77e8bb9416bb5b71cd0d0 Reviewed-on: https://code.wireshark.org/review/24075 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wsutil/inet_ipv6.h')
-rw-r--r--wsutil/inet_ipv6.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/wsutil/inet_ipv6.h b/wsutil/inet_ipv6.h
index c3b37e7580..82b7f507a7 100644
--- a/wsutil/inet_ipv6.h
+++ b/wsutil/inet_ipv6.h
@@ -93,12 +93,12 @@ struct ip6_frag {
* Unicast Scope
* Note that we must check topmost 10 bits only, not 16 bits (see RFC2373).
*/
-static inline gboolean in6_is_addr_linklocal(const ws_in6_addr *a)
+static inline gboolean in6_addr_is_linklocal(const ws_in6_addr *a)
{
return (a->bytes[0] == 0xfe) && ((a->bytes[1] & 0xc0) == 0x80);
}
-static inline gboolean in6_is_addr_sitelocal(const ws_in6_addr *a)
+static inline gboolean in6_addr_is_sitelocal(const ws_in6_addr *a)
{
return (a->bytes[0] == 0xfe) && ((a->bytes[1] & 0xc0) == 0xc0);
}
@@ -106,7 +106,7 @@ static inline gboolean in6_is_addr_sitelocal(const ws_in6_addr *a)
/**
* Multicast
*/
-static inline gboolean in6_is_addr_multicast(const ws_in6_addr *a)
+static inline gboolean in6_addr_is_multicast(const ws_in6_addr *a)
{
return a->bytes[0] == 0xff;
}