diff options
-rw-r--r-- | sys/dev/pci/if_age.c | 4 | ||||
-rw-r--r-- | sys/dev/pci/if_alc.c | 6 | ||||
-rw-r--r-- | sys/dev/pci/if_ale.c | 4 |
3 files changed, 8 insertions, 6 deletions
diff --git a/sys/dev/pci/if_age.c b/sys/dev/pci/if_age.c index a349efcc6ca..73acdded486 100644 --- a/sys/dev/pci/if_age.c +++ b/sys/dev/pci/if_age.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_age.c,v 1.8 2010/01/07 12:26:06 sthen Exp $ */ +/* $OpenBSD: if_age.c,v 1.9 2010/02/27 08:19:47 kevlo Exp $ */ /*- * Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org> @@ -2244,7 +2244,7 @@ age_iff(struct age_softc *sc) ETHER_FIRST_MULTI(step, ac, enm); while (enm != NULL) { - crc = ether_crc32_le(enm->enm_addrlo, + crc = ether_crc32_be(enm->enm_addrlo, ETHER_ADDR_LEN); mchash[crc >> 31] |= 1 << ((crc >> 26) & 0x1f); diff --git a/sys/dev/pci/if_alc.c b/sys/dev/pci/if_alc.c index 11a31b5ab46..b0cc3199a99 100644 --- a/sys/dev/pci/if_alc.c +++ b/sys/dev/pci/if_alc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_alc.c,v 1.3 2010/01/07 12:26:06 sthen Exp $ */ +/* $OpenBSD: if_alc.c,v 1.4 2010/02/27 08:19:47 kevlo Exp $ */ /*- * Copyright (c) 2009, Pyun YongHyeon <yongari@FreeBSD.org> * All rights reserved. @@ -2368,8 +2368,10 @@ alc_iff(struct alc_softc *sc) ETHER_FIRST_MULTI(step, ac, enm); while (enm != NULL) { - crc = ether_crc32_le(enm->enm_addrlo, ETHER_ADDR_LEN); + crc = ether_crc32_be(enm->enm_addrlo, ETHER_ADDR_LEN); + mchash[crc >> 31] |= 1 << ((crc >> 26) & 0x1f); + ETHER_NEXT_MULTI(step, enm); } } diff --git a/sys/dev/pci/if_ale.c b/sys/dev/pci/if_ale.c index d1896e6ce4f..0ecef47a64f 100644 --- a/sys/dev/pci/if_ale.c +++ b/sys/dev/pci/if_ale.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ale.c,v 1.10 2010/01/07 12:26:06 sthen Exp $ */ +/* $OpenBSD: if_ale.c,v 1.11 2010/02/27 08:19:47 kevlo Exp $ */ /*- * Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org> * All rights reserved. @@ -2026,7 +2026,7 @@ ale_iff(struct ale_softc *sc) ETHER_FIRST_MULTI(step, ac, enm); while (enm != NULL) { - crc = ether_crc32_le(enm->enm_addrlo, ETHER_ADDR_LEN); + crc = ether_crc32_be(enm->enm_addrlo, ETHER_ADDR_LEN); mchash[crc >> 31] |= 1 << ((crc >> 26) & 0x1f); |