summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_ethersubr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index af1421d..18e48a3 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -678,7 +678,7 @@ ether_demux(ifp, eh, m)
&& (eh->ether_dhost[0] & 1) == 0
&& bcmp(eh->ether_dhost,
IFP2AC(ifp)->ac_enaddr, ETHER_ADDR_LEN) != 0
- && (ifp->if_flags && IFF_PPROMISC) == 0) {
+ && (ifp->if_flags & IFF_PPROMISC) == 0) {
m_freem(m);
return;
}
OpenPOWER on IntegriCloud