diff options
author | Jason Wright <jason@cvs.openbsd.org> | 1999-02-28 05:02:18 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 1999-02-28 05:02:18 +0000 |
commit | 24e6c9be7da28b2cb0fa973887e5e00ba5844cb4 (patch) | |
tree | cc267f9b5b20727444f00b7373df08917bae2df1 /sys/dev/ic/am7990.c | |
parent | 8b2014f291d209ff3ff452181dde5a2507e25963 (diff) |
compensate for check on unicast packets rx'd in promisc mode being moved
to ether_input().
Diffstat (limited to 'sys/dev/ic/am7990.c')
-rw-r--r-- | sys/dev/ic/am7990.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/sys/dev/ic/am7990.c b/sys/dev/ic/am7990.c index 0ff01a562e3..bef96dcc7c9 100644 --- a/sys/dev/ic/am7990.c +++ b/sys/dev/ic/am7990.c @@ -1,4 +1,4 @@ -/* $OpenBSD: am7990.c,v 1.14 1998/09/16 22:41:20 jason Exp $ */ +/* $OpenBSD: am7990.c,v 1.15 1999/02/28 05:02:16 jason Exp $ */ /* $NetBSD: am7990.c,v 1.22 1996/10/13 01:37:19 christos Exp $ */ /*- @@ -470,23 +470,8 @@ am7990_read(sc, boff, len) * Check if there's a BPF listener on this interface. * If so, hand off the raw packet to BPF. */ - if (ifp->if_bpf) { + if (ifp->if_bpf) bpf_mtap(ifp->if_bpf, m); - -#ifndef LANCE_REVC_BUG - /* - * Note that the interface cannot be in promiscuous mode if - * there are no BPF listeners. And if we are in promiscuous - * mode, we have to check if this packet is really ours. - */ - if ((ifp->if_flags & IFF_PROMISC) != 0 && - (eh->ether_dhost[0] & 1) == 0 && /* !mcast and !bcast */ - ETHER_CMP(eh->ether_dhost, sc->sc_arpcom.ac_enaddr)) { - m_freem(m); - return; - } -#endif - } #endif #ifdef LANCE_REVC_BUG |