summaryrefslogtreecommitdiff
path: root/sys/dev/isa/if_eg.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/isa/if_eg.c')
-rw-r--r--sys/dev/isa/if_eg.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/sys/dev/isa/if_eg.c b/sys/dev/isa/if_eg.c
index dd28594204d..058b81cda31 100644
--- a/sys/dev/isa/if_eg.c
+++ b/sys/dev/isa/if_eg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_eg.c,v 1.13 1997/11/07 08:06:47 niklas Exp $ */
+/* $OpenBSD: if_eg.c,v 1.14 1999/02/28 03:23:37 jason Exp $ */
/* $NetBSD: if_eg.c,v 1.26 1996/05/12 23:52:27 mycroft Exp $ */
/*
@@ -665,22 +665,8 @@ egread(sc, buf, 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);
-
- /*
- * 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) &&
- (eh->ether_dhost[0] & 1) == 0 && /* !mcast and !bcast */
- bcmp(eh->ether_dhost, sc->sc_arpcom.ac_enaddr,
- sizeof(eh->ether_dhost)) != 0) {
- m_freem(m);
- return;
- }
- }
#endif
/* We assume the header fit entirely in one mbuf. */