diff options
| author | kanaoka <kanaoka@NetBSD.org> | 2004-12-26 06:48:13 +0000 |
|---|---|---|
| committer | kanaoka <kanaoka@NetBSD.org> | 2004-12-26 06:48:13 +0000 |
| commit | 38f5c9155e58903e4a3182c4940e4dd95cdbe2b8 (patch) | |
| tree | 528a3d916fc6499a6ed13d4b8f56068e0e6af346 /sys/dev | |
| parent | 92e2e6b4b0c98cf5dfc60db006c02ca99da1fe76 (diff) | |
- 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.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ic/rtl8169.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/rtl8169.c b/sys/dev/ic/rtl8169.c index 69bf399ef7f..58ccf3a163d 100644 --- a/sys/dev/ic/rtl8169.c +++ b/sys/dev/ic/rtl8169.c @@ -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; } |
