diff options
author | Kevin Lo <kevlo@cvs.openbsd.org> | 2011-03-14 03:01:20 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@cvs.openbsd.org> | 2011-03-14 03:01:20 +0000 |
commit | 9f4e56f76f8e4d2eeb11ad49cccc4d232560ecf5 (patch) | |
tree | b3a984fbca5782dda806db19a8e736a6f8d4ed35 /sys/dev/pci | |
parent | f7751ddd1eadd4fe6662988bb95eb61672a6c067 (diff) |
Accept broadcast frames so MCR0_BROADCAST bit must be zero;
from Anton Maksimenkov
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_vte.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/pci/if_vte.c b/sys/dev/pci/if_vte.c index d96d288c97a..953d2d0350a 100644 --- a/sys/dev/pci/if_vte.c +++ b/sys/dev/pci/if_vte.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vte.c,v 1.3 2011/01/21 06:34:04 kevlo Exp $ */ +/* $OpenBSD: if_vte.c,v 1.4 2011/03/14 03:01:19 kevlo Exp $ */ /*- * Copyright (c) 2010, Pyun YongHyeon <yongari@FreeBSD.org> * All rights reserved. @@ -1457,12 +1457,10 @@ vte_iff(struct vte_softc *sc) } mcr = CSR_READ_2(sc, VTE_MCR0); + /* Always accept broadcast frames so MCR0_BROADCAST bit must be 0 */ mcr &= ~(MCR0_PROMISC | MCR0_BROADCAST | MCR0_MULTICAST); ifp->if_flags &= ~IFF_ALLMULTI; - /* Always accept broadcast frames. */ - mcr |= MCR0_BROADCAST; - if (ifp->if_flags & IFF_PROMISC || ac->ac_multirangecnt > 0) { ifp->if_flags |= IFF_ALLMULTI; if (ifp->if_flags & IFF_PROMISC) |