diff options
author | Jason Wright <jason@cvs.openbsd.org> | 1999-02-26 17:05:56 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 1999-02-26 17:05:56 +0000 |
commit | 2acc654aba54712531d8185598afc25f1d2877f0 (patch) | |
tree | 3ef0f9f334c6faa981fe8b850f24016c107af1de /sys/dev/pci/if_vr.c | |
parent | 842ed679f15acf3904a23c6859a05c53e4ebb9cc (diff) |
compensate for the fact that the check for ownership of a unicast packet
has moved to ether_input()
Diffstat (limited to 'sys/dev/pci/if_vr.c')
-rw-r--r-- | sys/dev/pci/if_vr.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/sys/dev/pci/if_vr.c b/sys/dev/pci/if_vr.c index 63818e68cb7..2815fbb7f15 100644 --- a/sys/dev/pci/if_vr.c +++ b/sys/dev/pci/if_vr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vr.c,v 1.3 1999/02/24 00:20:09 deraadt Exp $ */ +/* $OpenBSD: if_vr.c,v 1.4 1999/02/26 17:05:55 jason Exp $ */ /* * Copyright (c) 1997, 1998 @@ -1315,21 +1315,10 @@ static void vr_rxeof(sc) m->m_pkthdr.len = m->m_len = total_len; #if NBPFILTER > 0 /* - * Handle BPF listeners. Let the BPF user see the packet, but - * don't pass it up to the ether_input() layer unless it's - * a broadcast packet, multicast packet, matches our ethernet - * address or the interface is in promiscuous mode. + * Handle BPF listeners. Let the BPF user see the packet. */ - if (ifp->if_bpf) { + if (ifp->if_bpf) bpf_mtap(ifp->if_bpf, m); - if (ifp->if_flags & IFF_PROMISC && - (bcmp(eh->ether_dhost, sc->arpcom.ac_enaddr, - ETHER_ADDR_LEN) && - (eh->ether_dhost[0] & 1) == 0)) { - m_freem(m); - continue; - } - } #endif /* Remove header from mbuf and pass it on. */ m_adj(m, sizeof(struct ether_header)); |