summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_age.c
diff options
context:
space:
mode:
authorKevin Lo <kevlo@cvs.openbsd.org>2010-02-27 08:19:48 +0000
committerKevin Lo <kevlo@cvs.openbsd.org>2010-02-27 08:19:48 +0000
commit6df04e6333814457bb0b9284c376beacbb0889d4 (patch)
tree1af7a8ea176c07206a254cb25882b2b08915a5d3 /sys/dev/pci/if_age.c
parent27d28a47baa83dacae80a256de4f5152d253109d (diff)
Fix multicast handling. All Atheros controllers use big-endian form
when computing multicast hash. From Brad via FreeBSD
Diffstat (limited to 'sys/dev/pci/if_age.c')
-rw-r--r--sys/dev/pci/if_age.c4
1 files changed, 2 insertions, 2 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);