summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_tx.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-01-15 05:24:13 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-01-15 05:24:13 +0000
commit89df0e6b8b27747dc883f3de9e8f46b10fcedc39 (patch)
treea292b90e17b1cad700ae6fa40a061e782999a21f /sys/dev/pci/if_tx.c
parent8c0a544eeaf396cc953120df64521d1b451b7b18 (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_tx.c')
-rw-r--r--sys/dev/pci/if_tx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/if_tx.c b/sys/dev/pci/if_tx.c
index eeac0f3c509..97533f5ca05 100644
--- a/sys/dev/pci/if_tx.c
+++ b/sys/dev/pci/if_tx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tx.c,v 1.28 2004/09/23 17:45:16 brad Exp $ */
+/* $OpenBSD: if_tx.c,v 1.29 2005/01/15 05:24:11 brad Exp $ */
/* $FreeBSD: src/sys/pci/if_tx.c,v 1.45 2001/02/07 20:11:02 semenu Exp $ */
/*-
@@ -716,7 +716,8 @@ epic_ifioctl(ifp, command, data)
ether_delmulti((struct ifreq *)data, &sc->arpcom);
if (error == ENETRESET) {
- epic_set_mc_table(sc);
+ if (ifp->if_flags & IFF_RUNNING)
+ epic_set_mc_table(sc);
error = 0;
}
#endif