summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authoryamt <yamt@NetBSD.org>2001-11-22 05:03:04 +0000
committeryamt <yamt@NetBSD.org>2001-11-22 05:03:04 +0000
commit5bf4d5554bda757cedc2bbb3533a6d1d42bce5a3 (patch)
tree8a69599689e15f35b57422c9a7a3683ee482a206 /sys/dev
parent7e84b9e1dba991521e0c37b4d68aabb3d85aa673 (diff)
use little-endian crc on multicast hash for admtek chips.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/tulip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/tulip.c b/sys/dev/ic/tulip.c
index 2f6c53a58dd..bd1af02ddfb 100644
--- a/sys/dev/ic/tulip.c
+++ b/sys/dev/ic/tulip.c
@@ -1,4 +1,4 @@
-/* $NetBSD: tulip.c,v 1.101 2001/11/13 13:14:45 lukem Exp $ */
+/* $NetBSD: tulip.c,v 1.102 2001/11/22 05:03:04 yamt Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tulip.c,v 1.101 2001/11/13 13:14:45 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tulip.c,v 1.102 2001/11/22 05:03:04 yamt Exp $");
#include "bpfilter.h"
@@ -2869,7 +2869,7 @@ tlp_al981_filter_setup(sc)
goto allmulti;
}
- hash = ether_crc32_be(enm->enm_addrlo, ETHER_ADDR_LEN) >> 26;
+ hash = ether_crc32_le(enm->enm_addrlo, ETHER_ADDR_LEN) & 0x3f;
mchash[hash >> 5] |= 1 << (hash & 0x1f);
ETHER_NEXT_MULTI(step, enm);
}