summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2004-06-04 21:49:03 +0000
committerBrad Smith <brad@cvs.openbsd.org>2004-06-04 21:49:03 +0000
commitf83070afdbed020f516f3b172753f5da64d49e61 (patch)
tree387777766053c62a9fcf4950ab6cd0f4db150ee2 /sys
parentd3e7d53bf17111cc8f28a3b06e5f00751e4310a3 (diff)
fix conversion to ether_crc32_be(). problem noticed by naddy@
ok mcbride@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/xl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/xl.c b/sys/dev/ic/xl.c
index 235817b18a2..990bc0be8fc 100644
--- a/sys/dev/ic/xl.c
+++ b/sys/dev/ic/xl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xl.c,v 1.53 2004/06/01 20:59:25 mickey Exp $ */
+/* $OpenBSD: xl.c,v 1.54 2004/06/04 21:49:02 brad Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -658,7 +658,7 @@ allmulti:
ifp->if_flags |= IFF_ALLMULTI;
goto allmulti;
}
- h = (ether_crc32_be(enm->enm_addrlo, ETHER_ADDR_LEN) >> 26) &
+ h = ether_crc32_be(enm->enm_addrlo, ETHER_ADDR_LEN) &
0x000000FF;
CSR_WRITE_2(sc, XL_COMMAND, XL_CMD_RX_SET_HASH|XL_HASH_SET|h);
mcnt++;