Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic - Sync if_re.c(rev=1.6).



details:   https://anonhg.NetBSD.org/src/rev/c07d2eb0f859
branches:  trunk
changeset: 572217:c07d2eb0f859
user:      kanaoka <kanaoka%NetBSD.org@localhost>
date:      Sun Dec 26 06:48:13 2004 +0000

description:
- 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:

 sys/dev/ic/rtl8169.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r f9bb048641db -r c07d2eb0f859 sys/dev/ic/rtl8169.c
--- a/sys/dev/ic/rtl8169.c      Sat Dec 25 17:24:01 2004 +0000
+++ b/sys/dev/ic/rtl8169.c      Sun Dec 26 06:48:13 2004 +0000
@@ -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 @@
        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;
                }



Home | Main Index | Thread Index | Old Index