summaryrefslogtreecommitdiff
path: root/sys/dev/isa/if_ex.c
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>1999-02-28 03:23:39 +0000
committerJason Wright <jason@cvs.openbsd.org>1999-02-28 03:23:39 +0000
commit8b2014f291d209ff3ff452181dde5a2507e25963 (patch)
tree95438b5752ecc8ed381c9a1dfdcf7e343aa0a3a5 /sys/dev/isa/if_ex.c
parent972131883b729aa5be397346b44e7f6e98a012a0 (diff)
compensate for the test of packet ownership being moved to ether_input()
Diffstat (limited to 'sys/dev/isa/if_ex.c')
-rw-r--r--sys/dev/isa/if_ex.c21
1 files changed, 2 insertions, 19 deletions
diff --git a/sys/dev/isa/if_ex.c b/sys/dev/isa/if_ex.c
index ff1b73fefdc..963b0ac2657 100644
--- a/sys/dev/isa/if_ex.c
+++ b/sys/dev/isa/if_ex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ex.c,v 1.3 1999/02/13 01:02:21 fgsch Exp $ */
+/* $OpenBSD: if_ex.c,v 1.4 1999/02/28 03:23:38 jason Exp $ */
/*
* Copyright (c) 1997, Donald A. Schmidt
* Copyright (c) 1996, Javier Martín Rueda (jmrueda@diatel.upm.es)
@@ -769,25 +769,8 @@ ex_rx_intr(sc)
}
#endif
#if NBPFILTER > 0
- if (ifp->if_bpf != NULL) {
+ if (ifp->if_bpf != NULL)
bpf_mtap(ifp->if_bpf, ipkt);
- /*
- * 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 &&
- bcmp(eh->ether_dhost, sc->arpcom.ac_enaddr,
- sizeof(eh->ether_dhost)) != 0 &&
- bcmp(eh->ether_dhost, etherbroadcastaddr,
- sizeof(eh->ether_dhost)) != 0) {
- m_freem(ipkt);
- goto rx_another;
- }
- }
#endif
m_adj(ipkt, sizeof(struct ether_header));
ether_input(ifp, eh, ipkt);