- Sync if_re.c(rev=1.6).
When adding/deleting multicast addresses, only whack the address filter if the interface is marked RUNNING. Fixes kern/27678.
This commit is contained in:
parent
92e2e6b4b0
commit
38f5c9155e
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rtl8169.c,v 1.1 2004/12/23 06:26:30 jonathan Exp $ */
|
||||
/* $NetBSD: rtl8169.c,v 1.2 2004/12/26 06:48:13 kanaoka Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997, 1998-2003
|
||||
@ -2036,7 +2036,7 @@ re_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
|
||||
default:
|
||||
error = ether_ioctl(ifp, command, data);
|
||||
if (error == ENETRESET) {
|
||||
if (RTK_IS_ENABLED(sc))
|
||||
if (ifp->if_flags & IFF_RUNNING)
|
||||
rtk_setmulti(sc);
|
||||
error = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user