summaryrefslogtreecommitdiff
path: root/sys/arch/wgrisc
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/wgrisc
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/wgrisc')
-rw-r--r--sys/arch/wgrisc/dev/if_sn.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/sys/arch/wgrisc/dev/if_sn.c b/sys/arch/wgrisc/dev/if_sn.c
index cfc42bc59ac..6aacfb8c859 100644
--- a/sys/arch/wgrisc/dev/if_sn.c
+++ b/sys/arch/wgrisc/dev/if_sn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_sn.c,v 1.2 1999/01/11 05:12:10 millert Exp $ */
+/* $OpenBSD: if_sn.c,v 1.3 1999/05/13 15:44:50 jason Exp $ */
/*
* National Semiconductor SONIC Driver
* Copyright (c) 1991 Algorithmics Ltd (http://www.algor.co.uk)
@@ -1201,18 +1201,11 @@ sonic_read(sc, rxp)
#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 (sc->sc_if.if_bpf) {
+ if (sc->sc_if.if_bpf)
bpf_tap(sc->sc_if.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;
- }
#endif
m = sonic_get(sc, et, len);
if (m == NULL)