From 0bee46841bdbef18c0aa0d7a4f4db10968a7160d Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Thu, 13 May 1999 15:44:51 +0000 Subject: 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. --- sys/arch/arc/dev/if_sn.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'sys/arch/arc') diff --git a/sys/arch/arc/dev/if_sn.c b/sys/arch/arc/dev/if_sn.c index 0028e297a33..a204db7a4ff 100644 --- a/sys/arch/arc/dev/if_sn.c +++ b/sys/arch/arc/dev/if_sn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sn.c,v 1.11 1999/01/11 05:11:09 millert Exp $ */ +/* $OpenBSD: if_sn.c,v 1.12 1999/05/13 15:44:48 jason Exp $ */ /* * National Semiconductor SONIC Driver * Copyright (c) 1991 Algorithmics Ltd (http://www.algor.co.uk) @@ -1174,15 +1174,9 @@ sonic_read(sc, rxp) * If so, hand off the raw packet to enet, then discard things * not destined for us (but be sure to keep broadcast/multicast). */ - 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(0); - } #endif m = sonic_get(sc, et, len); if (m == NULL) -- cgit v1.2.3