From 89df0e6b8b27747dc883f3de9e8f46b10fcedc39 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sat, 15 Jan 2005 05:24:13 +0000 Subject: make sure interface is in RUNNING state before touching the multicast filters From NetBSD NetBSD PR 27678 for details ok mcbride@ --- sys/arch/macppc/dev/if_bm.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sys/arch/macppc/dev') diff --git a/sys/arch/macppc/dev/if_bm.c b/sys/arch/macppc/dev/if_bm.c index 214d9b77176..29650c10c6b 100644 --- a/sys/arch/macppc/dev/if_bm.c +++ b/sys/arch/macppc/dev/if_bm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bm.c,v 1.16 2003/10/16 03:54:48 deraadt Exp $ */ +/* $OpenBSD: if_bm.c,v 1.17 2005/01/15 05:24:10 brad Exp $ */ /* $NetBSD: if_bm.c,v 1.1 1999/01/01 01:27:52 tsubai Exp $ */ /*- @@ -896,8 +896,10 @@ bmac_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) * Multicast list has changed; set the hardware filter * accordingly. */ - bmac_init(sc); - bmac_setladrf(sc); + if (ifp->if_flags & IFF_RUNNING) { + bmac_init(sc); + bmac_setladrf(sc); + } error = 0; } break; -- cgit v1.2.3