|
@@ -314,7 +314,7 @@ static inline bool ipv6_addr_is_multicast(const struct in6_addr *addr)
|
|
|
static inline bool ipv6_addr_is_ll_all_nodes(const struct in6_addr *addr)
|
|
|
{
|
|
|
#if defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) && BITS_PER_LONG == 64
|
|
|
- __u64 *p = (__u64 *)addr;
|
|
|
+ __be64 *p = (__be64 *)addr;
|
|
|
return ((p[0] ^ cpu_to_be64(0xff02000000000000UL)) | (p[1] ^ cpu_to_be64(1))) == 0UL;
|
|
|
#else
|
|
|
return ((addr->s6_addr32[0] ^ htonl(0xff020000)) |
|
|
@@ -326,7 +326,7 @@ static inline bool ipv6_addr_is_ll_all_nodes(const struct in6_addr *addr)
|
|
|
static inline bool ipv6_addr_is_ll_all_routers(const struct in6_addr *addr)
|
|
|
{
|
|
|
#if defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) && BITS_PER_LONG == 64
|
|
|
- __u64 *p = (__u64 *)addr;
|
|
|
+ __be64 *p = (__be64 *)addr;
|
|
|
return ((p[0] ^ cpu_to_be64(0xff02000000000000UL)) | (p[1] ^ cpu_to_be64(2))) == 0UL;
|
|
|
#else
|
|
|
return ((addr->s6_addr32[0] ^ htonl(0xff020000)) |
|
|
@@ -343,7 +343,7 @@ static inline bool ipv6_addr_is_isatap(const struct in6_addr *addr)
|
|
|
static inline bool ipv6_addr_is_solict_mult(const struct in6_addr *addr)
|
|
|
{
|
|
|
#if defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) && BITS_PER_LONG == 64
|
|
|
- __u64 *p = (__u64 *)addr;
|
|
|
+ __be64 *p = (__be64 *)addr;
|
|
|
return ((p[0] ^ cpu_to_be64(0xff02000000000000UL)) |
|
|
|
((p[1] ^ cpu_to_be64(0x00000001ff000000UL)) &
|
|
|
cpu_to_be64(0xffffffffff000000UL))) == 0UL;
|