summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2009-05-21 14:34:36 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2009-05-21 14:34:36 +0000
commitebcc5a7d5683b46ae04eb1dc5228ed1c22c839a3 (patch)
treecd245b0aa0e2b738a9cf3f511c8929835dad67bd /sys/dev
parent09d4f0a934549c46fa39d67f1895d9625d69868f (diff)
always set VR_RXCFG_RX_MULTI when setting the chip into promiscuous
mode; VR_RXCFG_RX_PROMISC isn't enough to allow reception of multicast frames. Discussed with Brad, ok dlg@.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_vr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/if_vr.c b/sys/dev/pci/if_vr.c
index 8361a884081..686769c8eee 100644
--- a/sys/dev/pci/if_vr.c
+++ b/sys/dev/pci/if_vr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vr.c,v 1.92 2009/05/12 13:30:56 sthen Exp $ */
+/* $OpenBSD: if_vr.c,v 1.93 2009/05/21 14:34:35 sthen Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -342,10 +342,9 @@ vr_iff(struct vr_softc *sc)
if (ifp->if_flags & IFF_PROMISC || ac->ac_multirangecnt > 0) {
ifp->if_flags |= IFF_ALLMULTI;
+ rxfilt |= VR_RXCFG_RX_MULTI;
if (ifp->if_flags & IFF_PROMISC)
rxfilt |= VR_RXCFG_RX_PROMISC;
- else
- rxfilt |= VR_RXCFG_RX_MULTI;
hashes[0] = hashes[1] = 0xFFFFFFFF;
} else {
/* Program new filter. */