Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/broadcom Modify setting of PROMISC flag.
details: https://anonhg.NetBSD.org/src/rev/3f5a32cfc5c6
branches: trunk
changeset: 781889:3f5a32cfc5c6
user: matt <matt%NetBSD.org@localhost>
date: Fri Oct 05 04:05:53 2012 +0000
description:
Modify setting of PROMISC flag.
diffstat:
sys/arch/arm/broadcom/bcm53xx_eth.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r 66a81720c55d -r 3f5a32cfc5c6 sys/arch/arm/broadcom/bcm53xx_eth.c
--- a/sys/arch/arm/broadcom/bcm53xx_eth.c Fri Oct 05 03:57:21 2012 +0000
+++ b/sys/arch/arm/broadcom/bcm53xx_eth.c Fri Oct 05 04:05:53 2012 +0000
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: bcm53xx_eth.c,v 1.5 2012/10/05 03:57:21 matt Exp $");
+__KERNEL_RCSID(1, "$NetBSD: bcm53xx_eth.c,v 1.6 2012/10/05 04:05:53 matt Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -900,9 +900,11 @@
case RXSTS_PKTTYPE_BC:
m->m_flags |= M_BCAST|M_MCAST;
break;
+ default:
+ if (sc->sc_cmdcfg & PROMISC_EN)
+ m->m_flags |= M_PROMISC;
+ break;
}
- if (sc->sc_cmdcfg & PROMISC_EN)
- m->m_flags |= M_PROMISC;
m->m_pkthdr.rcvif = ifp;
ifp->if_ipackets++;
Home |
Main Index |
Thread Index |
Old Index