Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Fix multicast filter to set IFF_ALLMULTI flag pro...
details: https://anonhg.NetBSD.org/src/rev/5349b31ed104
branches: trunk
changeset: 484183:5349b31ed104
user: onoe <onoe%NetBSD.org@localhost>
date: Mon Mar 27 12:58:01 2000 +0000
description:
Fix multicast filter to set IFF_ALLMULTI flag properly. Also clear
unused group address from filter.
diffstat:
sys/dev/ic/awi.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 0d8eb7130e91 -r 5349b31ed104 sys/dev/ic/awi.c
--- a/sys/dev/ic/awi.c Mon Mar 27 12:54:59 2000 +0000
+++ b/sys/dev/ic/awi.c Mon Mar 27 12:58:01 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: awi.c,v 1.15 2000/03/27 12:54:59 onoe Exp $ */
+/* $NetBSD: awi.c,v 1.16 2000/03/27 12:58:01 onoe Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -924,6 +924,7 @@
struct ether_multistep step;
#endif
+ /* reinitialize muticast filter */
n = 0;
ifp->if_flags |= IFF_ALLMULTI;
sc->sc_mib_local.Accept_All_Multicast_Dis = 0;
@@ -932,7 +933,6 @@
goto set_mib;
}
sc->sc_mib_mac.aPromiscuous_Enable = 0;
- ifp->if_flags &= ~IFF_ALLMULTI;
#ifdef __FreeBSD__
if (ifp->if_amcount != 0)
goto set_mib;
@@ -960,6 +960,8 @@
ETHER_NEXT_MULTI(step, enm);
}
#endif
+ for (; n < AWI_GROUP_ADDR_SIZE; n++)
+ memset(sc->sc_mib_addr.aGroup_Addresses[n], 0, ETHER_ADDR_LEN);
ifp->if_flags &= ~IFF_ALLMULTI;
sc->sc_mib_local.Accept_All_Multicast_Dis = 1;
Home |
Main Index |
Thread Index |
Old Index