From f83070afdbed020f516f3b172753f5da64d49e61 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Fri, 4 Jun 2004 21:49:03 +0000 Subject: fix conversion to ether_crc32_be(). problem noticed by naddy@ ok mcbride@ --- sys/dev/ic/xl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') 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++; -- cgit v1.2.3