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/dev/pci/if_vr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/dev/pci/if_vr.c') diff --git a/sys/dev/pci/if_vr.c b/sys/dev/pci/if_vr.c index 5b441ba3911..92db3df3858 100644 --- a/sys/dev/pci/if_vr.c +++ b/sys/dev/pci/if_vr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vr.c,v 1.44 2004/09/23 17:45:16 brad Exp $ */ +/* $OpenBSD: if_vr.c,v 1.45 2005/01/15 05:24:11 brad Exp $ */ /* * Copyright (c) 1997, 1998 @@ -1672,7 +1672,8 @@ vr_ioctl(ifp, command, data) * Multicast list has changed; set the hardware * filter accordingly. */ - vr_setmulti(sc); + if (ifp->if_flags & IFF_RUNNING) + vr_setmulti(sc); error = 0; } break; -- cgit v1.2.3