summaryrefslogtreecommitdiff
path: root/sys/dev/ic/dc.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-05-20 18:48:44 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-05-20 18:48:44 +0000
commit479f3d11b9ef87938678013dacbf63c5830ffd32 (patch)
tree7e5c1da8afe1e2fc2a5edf5d02e5a740bc3f336a /sys/dev/ic/dc.c
parent6aeac98cc4563d3457c133ee008933bb6742ae7b (diff)
AN983 endian issue; from FreeBSD via PR 3263 with minor style fixes by me
ok jason@
Diffstat (limited to 'sys/dev/ic/dc.c')
-rw-r--r--sys/dev/ic/dc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/ic/dc.c b/sys/dev/ic/dc.c
index f0ae55edda8..fd4231492e6 100644
--- a/sys/dev/ic/dc.c
+++ b/sys/dev/ic/dc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dc.c,v 1.59 2003/05/17 01:55:28 jason Exp $ */
+/* $OpenBSD: dc.c,v 1.60 2003/05/20 18:48:43 henning Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -1046,7 +1046,10 @@ dc_setfilt_admtek(sc)
/* now program new ones */
ETHER_FIRST_MULTI(step, ac, enm);
while (enm != NULL) {
- h = dc_crc_be(enm->enm_addrlo);
+ if (DC_IS_CENTAUR(sc))
+ h = dc_crc_le(sc, enm->enm_addrlo);
+ else
+ h = dc_crc_be(enm->enm_addrlo);
if (h < 32)
hashes[0] |= (1 << h);
else