Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351499
b: refs/heads/master
c: 9d10077
h: refs/heads/master
i:
  351497: 7db03ba
  351495: dc99e2f
v: v3
  • Loading branch information
YOSHIFUJI Hideaki / 吉藤英明 authored and David S. Miller committed Jan 21, 2013
1 parent 5fbac29 commit c570bd1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ca97a644d752b46e5e08526e36705c3b0dd03f5f
refs/heads/master: 9d1007740041613bae8492be092932a3f0eb1ebf
15 changes: 11 additions & 4 deletions trunk/include/net/addrconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,17 @@ 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)
{
return (addr->s6_addr32[0] == htonl(0xff020000) &&
addr->s6_addr32[1] == htonl(0x00000000) &&
addr->s6_addr32[2] == htonl(0x00000001) &&
addr->s6_addr[12] == 0xff);
#if defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) && BITS_PER_LONG == 64
__u64 *p = (__u64 *)addr;
return ((p[0] ^ cpu_to_be64(0xff02000000000000UL)) |
((p[1] ^ cpu_to_be64(0x00000001ff000000UL)) &
cpu_to_be64(0xffffffffff000000UL))) == 0UL;
#else
return ((addr->s6_addr32[0] ^ htonl(0xff020000)) |
addr->s6_addr32[1] |
(addr->s6_addr32[2] ^ htonl(0x00000001)) |
(addr->s6_addr[12] ^ 0xff)) == 0;
#endif
}

#ifdef CONFIG_PROC_FS
Expand Down

0 comments on commit c570bd1

Please sign in to comment.