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/pci/if_vr.c | |
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/pci/if_vr.c')
-rw-r--r-- | sys/dev/pci/if_vr.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; |