Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Use big-endian CRC on ADMtek multicast hash.



details:   https://anonhg.NetBSD.org/src/rev/7de6a9d36409
branches:  trunk
changeset: 486295:7de6a9d36409
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu May 18 03:02:45 2000 +0000

description:
Use big-endian CRC on ADMtek multicast hash.

diffstat:

 sys/dev/ic/tulip.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (19 lines):

diff -r 8bac017c6b7c -r 7de6a9d36409 sys/dev/ic/tulip.c
--- a/sys/dev/ic/tulip.c        Thu May 18 02:12:43 2000 +0000
+++ b/sys/dev/ic/tulip.c        Thu May 18 03:02:45 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tulip.c,v 1.63 2000/05/12 17:09:27 thorpej Exp $       */
+/*     $NetBSD: tulip.c,v 1.64 2000/05/18 03:02:45 thorpej Exp $       */
 
 /*-
  * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -2795,8 +2795,7 @@
                        goto allmulti;
                }
 
-               hash = (ether_crc32_le(enm->enm_addrlo, ETHER_ADDR_LEN) >> 26)
-                   & 0x3f;
+               hash = ether_crc32_be(enm->enm_addrlo, ETHER_ADDR_LEN) >> 26;
                mchash[hash >> 5] |= 1 << (hash & 0x1f);
                ETHER_NEXT_MULTI(step, enm);
        }



Home | Main Index | Thread Index | Old Index