diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-02-22 20:03:20 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-02-22 20:03:20 +0000 |
commit | bea7480455a6b590578f1bc8fe3f8a56772f3568 (patch) | |
tree | 356a31787a5a787b0504ff1ec6e0f5b657e520be /sys/arch | |
parent | 34af5e8efba7150c92d6203b4f3b7b7b905e905a (diff) |
Replace bcmp in while loop with check of ac_multirangecnt.
From brad@comstyle.com.
ok deraadt@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/socppc/dev/if_tsec.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/arch/socppc/dev/if_tsec.c b/sys/arch/socppc/dev/if_tsec.c index 796ca03f85f..bca792b7a21 100644 --- a/sys/arch/socppc/dev/if_tsec.c +++ b/sys/arch/socppc/dev/if_tsec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tsec.c,v 1.21 2009/02/17 20:57:23 jasper Exp $ */ +/* $OpenBSD: if_tsec.c,v 1.22 2009/02/22 20:03:19 kettenis Exp $ */ /* * Copyright (c) 2008 Mark Kettenis @@ -1007,14 +1007,11 @@ tsec_iff(struct tsec_softc *sc) if ((ifp->if_flags & IFF_RUNNING) == 0) goto domulti; - if (ifp->if_flags & IFF_PROMISC) + if (ifp->if_flags & IFF_PROMISC || ac->ac_multirangecnt > 0) goto allmulti; ETHER_FIRST_MULTI(step, ac, enm); while (enm != NULL) { - if (bcmp(enm->enm_addrlo, enm->enm_addrhi, ETHER_ADDR_LEN)) - goto allmulti; - crc = ether_crc32_be(enm->enm_addrlo, ETHER_ADDR_LEN); crc >>= 24; hash[crc / 32] |= 1 << (31 - (crc % 32)); |