From 363d27735d6ff1fce4d2141eb354f02e2743b0d3 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Thu, 11 Nov 2004 13:01:46 +0000 Subject: from netbsd, if_axe.c revision 1.6 When adding/deleting multicast addresses, only whack the address filter if the interface is marked RUNNING. --- sys/dev/usb/if_axe.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/dev/usb/if_axe.c') 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; -- cgit v1.2.3