Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic IFF_PROMISC implys IFF_ALLMULTI.
details: https://anonhg.NetBSD.org/src/rev/ef2f94a4ae6e
branches: trunk
changeset: 763678:ef2f94a4ae6e
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Wed Mar 30 17:52:45 2011 +0000
description:
IFF_PROMISC implys IFF_ALLMULTI.
Should fix PR#43186.
diffstat:
sys/dev/ic/i82557.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diffs (33 lines):
diff -r da86dcc55b48 -r ef2f94a4ae6e sys/dev/ic/i82557.c
--- a/sys/dev/ic/i82557.c Wed Mar 30 17:21:04 2011 +0000
+++ b/sys/dev/ic/i82557.c Wed Mar 30 17:52:45 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i82557.c,v 1.136 2010/11/13 08:55:13 uebayasi Exp $ */
+/* $NetBSD: i82557.c,v 1.137 2011/03/30 17:52:45 jakllsch Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999, 2001, 2002 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i82557.c,v 1.136 2010/11/13 08:55:13 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i82557.c,v 1.137 2011/03/30 17:52:45 jakllsch Exp $");
#include "rnd.h"
@@ -2237,7 +2237,13 @@
panic("fxp_mc_setup: pending transmissions");
#endif
- ifp->if_flags &= ~IFF_ALLMULTI;
+
+ if (ifp->if_flags & IFF_PROMISC) {
+ ifp->if_flags |= IFF_ALLMULTI;
+ return;
+ } else {
+ ifp->if_flags &= ~IFF_ALLMULTI;
+ }
/*
* Initialize multicast setup descriptor.
Home |
Main Index |
Thread Index |
Old Index