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/sparc/dev/hme.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/arch/sparc/dev/hme.c') diff --git a/sys/arch/sparc/dev/hme.c b/sys/arch/sparc/dev/hme.c index 40727d19d93..c54dd3c0cdb 100644 --- a/sys/arch/sparc/dev/hme.c +++ b/sys/arch/sparc/dev/hme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hme.c,v 1.45 2004/09/29 07:35:11 miod Exp $ */ +/* $OpenBSD: hme.c,v 1.46 2005/01/15 05:24:10 brad Exp $ */ /* * Copyright (c) 1998 Jason L. Wright (jason@thought.net) @@ -471,7 +471,8 @@ hmeioctl(ifp, cmd, data) * Multicast list has changed; set the hardware filter * accordingly. */ - hme_mcreset(sc); + if (ifp->if_flags & IFF_RUNNING) + hme_mcreset(sc); error = 0; } break; -- cgit v1.2.3