summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjason <jason@openbsd.org>2002-08-22 19:08:50 +0000
committerjason <jason@openbsd.org>2002-08-22 19:08:50 +0000
commitbb6998edb28fa39df495bad5a0721ab718c0fc0c (patch)
tree6498e7d824933bc19966ef3ca6cace7d70d9a267
parentfix int overflow in statbf.st_size, from netbsd PR#17933 (diff)
downloadwireguard-openbsd-bb6998edb28fa39df495bad5a0721ab718c0fc0c.tar.xz
wireguard-openbsd-bb6998edb28fa39df495bad5a0721ab718c0fc0c.zip
simplify multicast setup on the 3c905 (pre-B/C, etc)
-rw-r--r--sys/dev/ic/xl.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/sys/dev/ic/xl.c b/sys/dev/ic/xl.c
index 3e57c501a51..c0a31b87c95 100644
--- a/sys/dev/ic/xl.c
+++ b/sys/dev/ic/xl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xl.c,v 1.40 2002/07/09 05:49:53 aaron Exp $ */
+/* $OpenBSD: xl.c,v 1.41 2002/08/22 19:08:50 jason Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -634,10 +634,7 @@ void xl_setmulti(sc)
{
struct ifnet *ifp;
struct arpcom *ac = &sc->sc_arpcom;
- struct ether_multi *enm;
- struct ether_multistep step;
u_int8_t rxfilt;
- int mcnt = 0;
ifp = &sc->sc_arpcom.ac_if;
@@ -650,13 +647,7 @@ void xl_setmulti(sc)
return;
}
- ETHER_FIRST_MULTI(step, ac, enm);
- while (enm != NULL) {
- mcnt++;
- ETHER_NEXT_MULTI(step, enm);
- }
-
- if (mcnt)
+ if (ac->ac_multicnt > 0)
rxfilt |= XL_RXFILTER_ALLMULTI;
else
rxfilt &= ~XL_RXFILTER_ALLMULTI;