summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_axe.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2004-11-11 13:01:46 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2004-11-11 13:01:46 +0000
commit363d27735d6ff1fce4d2141eb354f02e2743b0d3 (patch)
treef8d3f821128486721ae60488596ccfde515afc9c /sys/dev/usb/if_axe.c
parentd821df585fd0c20a857d6f279f84a14e61e81ebb (diff)
from netbsd, if_axe.c revision 1.6
When adding/deleting multicast addresses, only whack the address filter if the interface is marked RUNNING.
Diffstat (limited to 'sys/dev/usb/if_axe.c')
-rw-r--r--sys/dev/usb/if_axe.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/usb/if_axe.c b/sys/dev/usb/if_axe.c
index 0d0c3e3234d..d3aa96b3312 100644
--- a/sys/dev/usb/if_axe.c
+++ b/sys/dev/usb/if_axe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_axe.c,v 1.19 2004/11/11 12:58:45 dlg Exp $ */
+/* $OpenBSD: if_axe.c,v 1.20 2004/11/11 13:01:45 dlg Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000-2003
@@ -1256,7 +1256,8 @@ axe_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
* Multicast list has changed; set the hardware
* filter accordingly.
*/
- axe_setmulti(sc);
+ if (ifp->if_flags & IFF_RUNNING)
+ axe_setmulti(sc);
error = 0;
}
break;