summaryrefslogtreecommitdiff
path: root/sys/arch/mac68k/dev
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>1999-05-13 15:44:51 +0000
committerJason Wright <jason@cvs.openbsd.org>1999-05-13 15:44:51 +0000
commit0bee46841bdbef18c0aa0d7a4f4db10968a7160d (patch)
tree97d7627af802ef98567270ba59444140ae00ea14 /sys/arch/mac68k/dev
parent0a81f6102525e5e33f378afc28e62381cafaded1 (diff)
Compensate for the check for onwership of unicast packets in promiscuous
mode being moved to if_ether.c. This is the last of the drivers hopefully.
Diffstat (limited to 'sys/arch/mac68k/dev')
-rw-r--r--sys/arch/mac68k/dev/if_ae.c18
-rw-r--r--sys/arch/mac68k/dev/if_mc.c12
-rw-r--r--sys/arch/mac68k/dev/if_sn.c11
3 files changed, 7 insertions, 34 deletions
diff --git a/sys/arch/mac68k/dev/if_ae.c b/sys/arch/mac68k/dev/if_ae.c
index b86ffde3894..d72c57eb0de 100644
--- a/sys/arch/mac68k/dev/if_ae.c
+++ b/sys/arch/mac68k/dev/if_ae.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ae.c,v 1.13 1997/04/25 22:15:26 gene Exp $ */
+/* $OpenBSD: if_ae.c,v 1.14 1999/05/13 15:44:49 jason Exp $ */
/* $NetBSD: if_ae.c,v 1.62 1997/04/24 16:52:05 scottr Exp $ */
/*
@@ -864,22 +864,8 @@ aeread(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
/* Fix up data start offset in mbuf to point past ether header. */
diff --git a/sys/arch/mac68k/dev/if_mc.c b/sys/arch/mac68k/dev/if_mc.c
index aa03fb342f8..f504b184873 100644
--- a/sys/arch/mac68k/dev/if_mc.c
+++ b/sys/arch/mac68k/dev/if_mc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mc.c,v 1.1 1998/05/08 22:15:31 gene Exp $ */
+/* $OpenBSD: if_mc.c,v 1.2 1999/05/13 15:44:49 jason Exp $ */
/* $NetBSD: if_mc.c,v 1.4 1998/01/12 19:22:09 thorpej Exp $ */
/*-
@@ -638,16 +638,10 @@ mace_read(sc, pkt, len)
#if NBPFILTER > 0
/*
* Check if there's a bpf filter listening on this interface.
- * If so, hand off the raw packet to enet, then discard things
- * not destined for us (but be sure to keep broadcast/multicast).
+ * If so, hand off the raw packet to enet.
*/
- if (ifp->if_bpf) {
+ if (ifp->if_bpf)
bpf_tap(ifp->if_bpf, pkt, len);
- if ((ifp->if_flags & IFF_PROMISC) != 0 &&
- (eh->ether_dhost[0] & 1) == 0 && /* !mcast and !bcast */
- ETHER_CMP(eh->ether_dhost, sc->sc_enaddr))
- return;
- }
#endif
m = mace_get(sc, pkt, len);
if (m == NULL) {
diff --git a/sys/arch/mac68k/dev/if_sn.c b/sys/arch/mac68k/dev/if_sn.c
index b192407a9c3..1bc820b882c 100644
--- a/sys/arch/mac68k/dev/if_sn.c
+++ b/sys/arch/mac68k/dev/if_sn.c
@@ -1126,18 +1126,11 @@ sonic_read(sc, pkt, len)
#if NBPFILTER > 0
/*
* Check if there's a bpf filter listening on this interface.
- * If so, hand off the raw packet to enet, then discard things
- * not destined for us (but be sure to keep broadcast/multicast).
+ * If so, hand off the raw packet to enet.
*/
- if (ifp->if_bpf) {
+ if (ifp->if_bpf)
bpf_tap(ifp->if_bpf, pkt,
len + sizeof(struct ether_header));
- if ((ifp->if_flags & IFF_PROMISC) != 0 &&
- (et->ether_dhost[0] & 1) == 0 && /* !mcast and !bcast */
- bcmp(et->ether_dhost, &sc->sc_enaddr,
- sizeof(et->ether_dhost)) != 0)
- return (0);
- }
#endif
m = sonic_get(sc, et, len);
if (m == NULL)