public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Trivial ipv6 fix.
@ 2004-08-02  8:12 Ralph Loader
  2004-08-02 13:59 ` YOSHIFUJI Hideaki / 吉藤英明
  0 siblings, 1 reply; 3+ messages in thread
From: Ralph Loader @ 2004-08-02  8:12 UTC (permalink / raw)
  To: davem, pekkas, yoshfuji; +Cc: linux-kernel

Hi,

ipv6_addr_hash doesn't do what it's comment says.  The comment was
probably what was intended, not that it'll make much difference in
practice.

Cheers,
Ralph.

Signed-off-by: Ralph Loader <suckfish@ihug.co.nz>

--- include/net/addrconf.h.orig	2004-08-02 19:54:07.772297854 +1200
+++ include/net/addrconf.h	2004-08-02 19:55:25.166824746 +1200
@@ -178,8 +178,8 @@
 	 * This will include the IEEE address token on links that support it.
 	 */
 
-	word = addr->s6_addr[2] ^ addr->s6_addr32[3];
-	word  ^= (word>>16);
+	word = addr->s6_addr32[2] ^ addr->s6_addr32[3];
+	word ^= (word >> 16);
 	word ^= (word >> 8);
 
 	return ((word ^ (word >> 4)) & 0x0f);



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-08-03  0:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-02  8:12 [PATCH] Trivial ipv6 fix Ralph Loader
2004-08-02 13:59 ` YOSHIFUJI Hideaki / 吉藤英明
2004-08-03  0:08   ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox