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/arch/mac68k/dev | |
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/arch/mac68k/dev')
-rw-r--r-- | sys/arch/mac68k/dev/if_ae.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/mac68k/dev/if_ae.c b/sys/arch/mac68k/dev/if_ae.c index ea7e5c93169..44f49213597 100644 --- a/sys/arch/mac68k/dev/if_ae.c +++ b/sys/arch/mac68k/dev/if_ae.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ae.c,v 1.24 2004/11/26 21:21:24 miod Exp $ */ +/* $OpenBSD: if_ae.c,v 1.25 2005/01/15 05:24:09 brad Exp $ */ /* $NetBSD: if_ae.c,v 1.62 1997/04/24 16:52:05 scottr Exp $ */ /* @@ -831,8 +831,10 @@ aeioctl(ifp, cmd, data) * Multicast list has changed; set the hardware filter * accordingly. */ - aestop(sc); /* XXX for ds_setmcaf? */ - aeinit(sc); + if (ifp->if_flags & IFF_RUNNING) { + aestop(sc); /* XXX for ds_setmcaf? */ + aeinit(sc); + } error = 0; } break; |