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/mac68k/dev/if_ae.c | |
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/mac68k/dev/if_ae.c')
-rw-r--r-- | sys/arch/mac68k/dev/if_ae.c | 18 |
1 files changed, 2 insertions, 16 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. */ |