Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Fix a glitch in the initial import: The XMAC has...
details: https://anonhg.NetBSD.org/src/rev/50344c55c520
branches: trunk
changeset: 566924:50344c55c520
user: kleink <kleink%NetBSD.org@localhost>
date: Mon May 24 20:12:01 2004 +0000
description:
Fix a glitch in the initial import: The XMAC hash function is actually
based on CRC32-_LE_.
>From Christian Weisgerber in private mail.
diffstat:
sys/dev/pci/if_sk.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 0c8de17063ba -r 50344c55c520 sys/dev/pci/if_sk.c
--- a/sys/dev/pci/if_sk.c Mon May 24 19:08:07 2004 +0000
+++ b/sys/dev/pci/if_sk.c Mon May 24 20:12:01 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_sk.c,v 1.9 2004/05/24 10:06:59 kleink Exp $ */
+/* $NetBSD: if_sk.c,v 1.10 2004/05/24 20:12:01 kleink Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -575,7 +575,7 @@
{
u_int32_t crc;
- crc = ether_crc32_be(addr,ETHER_ADDR_LEN);
+ crc = ether_crc32_le(addr,ETHER_ADDR_LEN);
crc = ~crc & ((1<< SK_HASH_BITS) - 1);
DPRINTFN(2,("multicast hash for %s is %x\n",ether_sprintf(addr),crc));
return (crc);
Home |
Main Index |
Thread Index |
Old Index