Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pcmcia Maintain IFF_ALLMULTI flag by ourself.
details: https://anonhg.NetBSD.org/src/rev/e8d7e5e47ae3
branches: trunk
changeset: 484175:e8d7e5e47ae3
user: enami <enami%NetBSD.org@localhost>
date: Mon Mar 27 11:03:47 2000 +0000
description:
Maintain IFF_ALLMULTI flag by ourself.
diffstat:
sys/dev/pcmcia/if_wi.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (46 lines):
diff -r 21efd5b9fb47 -r e8d7e5e47ae3 sys/dev/pcmcia/if_wi.c
--- a/sys/dev/pcmcia/if_wi.c Mon Mar 27 10:15:13 2000 +0000
+++ b/sys/dev/pcmcia/if_wi.c Mon Mar 27 11:03:47 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_wi.c,v 1.16 2000/03/27 07:04:21 enami Exp $ */
+/* $NetBSD: if_wi.c,v 1.17 2000/03/27 11:03:47 enami Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -31,7 +31,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: if_wi.c,v 1.16 2000/03/27 07:04:21 enami Exp $
+ * $Id: if_wi.c,v 1.17 2000/03/27 11:03:47 enami Exp $
*/
/*
@@ -117,7 +117,7 @@
#if !defined(lint)
static const char rcsid[] =
- "$Id: if_wi.c,v 1.16 2000/03/27 07:04:21 enami Exp $";
+ "$Id: if_wi.c,v 1.17 2000/03/27 11:03:47 enami Exp $";
#endif
#ifdef foo
@@ -911,8 +911,9 @@
ifp = &sc->sc_ethercom.ec_if;
- if (ifp->if_flags & IFF_ALLMULTI || ifp->if_flags & IFF_PROMISC) {
+ if ((ifp->if_flags & IFF_PROMISC) != 0) {
allmulti:
+ ifp->if_flags |= IFF_ALLMULTI;
bzero((char *)&mcast, sizeof(mcast));
mcast.wi_type = WI_RID_MCAST;
mcast.wi_len = ((ETHER_ADDR_LEN / 2) * 16) + 1;
@@ -940,6 +941,7 @@
ETHER_NEXT_MULTI(estep, enm);
}
+ ifp->if_flags &= ~IFF_ALLMULTI;
mcast.wi_type = WI_RID_MCAST;
mcast.wi_len = ((ETHER_ADDR_LEN / 2) * i) + 1;
wi_write_record(sc, (struct wi_ltv_gen *)&mcast);
Home |
Main Index |
Thread Index |
Old Index