diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-01-15 05:24:13 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-01-15 05:24:13 +0000 |
commit | 89df0e6b8b27747dc883f3de9e8f46b10fcedc39 (patch) | |
tree | a292b90e17b1cad700ae6fa40a061e782999a21f /sys/dev/sbus | |
parent | 8c0a544eeaf396cc953120df64521d1b451b7b18 (diff) |
make sure interface is in RUNNING state before touching the multicast filters
From NetBSD
NetBSD PR 27678 for details
ok mcbride@
Diffstat (limited to 'sys/dev/sbus')
-rw-r--r-- | sys/dev/sbus/be.c | 5 | ||||
-rw-r--r-- | sys/dev/sbus/qe.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/sbus/be.c b/sys/dev/sbus/be.c index 62e8cd94f55..f37d1d09550 100644 --- a/sys/dev/sbus/be.c +++ b/sys/dev/sbus/be.c @@ -1,4 +1,4 @@ -/* $OpenBSD: be.c,v 1.15 2004/05/12 06:35:11 tedu Exp $ */ +/* $OpenBSD: be.c,v 1.16 2005/01/15 05:24:12 brad Exp $ */ /* $NetBSD: be.c,v 1.26 2001/03/20 15:39:20 pk Exp $ */ /*- @@ -1026,7 +1026,8 @@ beioctl(struct ifnet *ifp, u_long cmd, caddr_t data) * Multicast list has changed; set the hardware filter * accordingly. */ - be_mcreset(sc); + if (ifp->if_flags & IFF_RUNNING) + be_mcreset(sc); error = 0; } break; diff --git a/sys/dev/sbus/qe.c b/sys/dev/sbus/qe.c index ba74ad0ff92..8e086f1de79 100644 --- a/sys/dev/sbus/qe.c +++ b/sys/dev/sbus/qe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: qe.c,v 1.15 2004/05/12 06:35:11 tedu Exp $ */ +/* $OpenBSD: qe.c,v 1.16 2005/01/15 05:24:12 brad Exp $ */ /* $NetBSD: qe.c,v 1.16 2001/03/30 17:30:18 christos Exp $ */ /*- @@ -1001,7 +1001,8 @@ qeioctl(ifp, cmd, data) * Multicast list has changed; set the hardware filter * accordingly. */ - qe_mcreset(sc); + if (ifp->if_flags & IFF_RUNNING) + qe_mcreset(sc); error = 0; } break; |