Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sys/dev/ic Pullup 1.37 [thorpej]:
details: https://anonhg.NetBSD.org/src/rev/4f0bcfd8eea1
branches: netbsd-1-5
changeset: 490175:4f0bcfd8eea1
user: tv <tv%NetBSD.org@localhost>
date: Thu Nov 09 23:16:23 2000 +0000
description:
Pullup 1.37 [thorpej]:
One more fix to multicast hash computation. Submitter confirms that
with this fix, multicast does indeed work properly on the EPIC.
>From Zdenek Salvet <salvet%ics.muni.cz@localhost>.
diffstat:
sys/dev/ic/smc83c170.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r c9fa775d39dc -r 4f0bcfd8eea1 sys/dev/ic/smc83c170.c
--- a/sys/dev/ic/smc83c170.c Thu Nov 09 23:12:06 2000 +0000
+++ b/sys/dev/ic/smc83c170.c Thu Nov 09 23:16:23 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: smc83c170.c,v 1.32 2000/05/26 00:14:41 tsutsui Exp $ */
+/* $NetBSD: smc83c170.c,v 1.32.4.1 2000/11/09 23:16:23 tv Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -1361,7 +1361,8 @@
goto allmulti;
}
- hash = ether_crc32_le(enm->enm_addrlo, ETHER_ADDR_LEN) & 0x3f;
+ hash = ether_crc32_be(enm->enm_addrlo, ETHER_ADDR_LEN);
+ hash >>= 26;
/* Set the corresponding bit in the hash table. */
mchash[hash >> 4] |= 1 << (hash & 0xf);
Home |
Main Index |
Thread Index |
Old Index