diff options
author | Jason Wright <jason@cvs.openbsd.org> | 1999-05-13 15:44:51 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 1999-05-13 15:44:51 +0000 |
commit | 0bee46841bdbef18c0aa0d7a4f4db10968a7160d (patch) | |
tree | 97d7627af802ef98567270ba59444140ae00ea14 /sys/arch/arc | |
parent | 0a81f6102525e5e33f378afc28e62381cafaded1 (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/arc')
-rw-r--r-- | sys/arch/arc/dev/if_sn.c | 10 |
1 files changed, 2 insertions, 8 deletions
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) |