Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-2-0]: src/sys/arch/sgimips/hpc Pull up revision 1.21 (requested b...
details: https://anonhg.NetBSD.org/src/rev/2ebd43e04667
branches: netbsd-2-0
changeset: 564754:2ebd43e04667
user: he <he%NetBSD.org@localhost>
date: Wed Apr 06 17:12:07 2005 +0000
description:
Pull up revision 1.21 (requested by thorpej in ticket #939):
When adding or deleting multicast addresses, only change
the address filter if the interface is marked RUNNING.
Fixes PR#27678.
Dragged along for the benefit of ticket #1054 which will be committed shortly.
diffstat:
sys/arch/sgimips/hpc/if_sq.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r ffcc2dbda70a -r 2ebd43e04667 sys/arch/sgimips/hpc/if_sq.c
--- a/sys/arch/sgimips/hpc/if_sq.c Wed Apr 06 16:53:38 2005 +0000
+++ b/sys/arch/sgimips/hpc/if_sq.c Wed Apr 06 17:12:07 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_sq.c,v 1.20 2003/12/30 23:48:07 sekiya Exp $ */
+/* $NetBSD: if_sq.c,v 1.20.2.1 2005/04/06 17:12:07 he Exp $ */
/*
* Copyright (c) 2001 Rafal K. Boni
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_sq.c,v 1.20 2003/12/30 23:48:07 sekiya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_sq.c,v 1.20.2.1 2005/04/06 17:12:07 he Exp $");
#include "bpfilter.h"
@@ -480,7 +480,10 @@
* Multicast list has changed; set the hardware filter
* accordingly.
*/
- error = sq_init(ifp);
+ if (ifp->if_flags & IFF_RUNNING)
+ error = sq_init(ifp);
+ else
+ error = 0;
}
splx(s);
Home |
Main Index |
Thread Index |
Old Index