summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorhpeyerl <hpeyerl@NetBSD.org>1993-12-12 20:24:37 +0000
committerhpeyerl <hpeyerl@NetBSD.org>1993-12-12 20:24:37 +0000
commitac0c68e1db36d8c403ba5d34a3b2b27af044118e (patch)
tree25343044a4e6176124cc0608aad784d71625d0b6 /sys/dev
parente5fc8b446079abb4ada5c9c9d22c32292795b8fc (diff)
ie. also pass up any packet with the multicast bit set in the ethernet
>From: Havard Eidnes <Havard.Eidnes@runit.sintef.no>
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/isa/if_ed.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/isa/if_ed.c b/sys/dev/isa/if_ed.c
index 80748d48c21..8384c3af424 100644
--- a/sys/dev/isa/if_ed.c
+++ b/sys/dev/isa/if_ed.c
@@ -20,7 +20,7 @@
*/
/*
- * $Id: if_ed.c,v 1.12 1993/12/10 10:57:47 cgd Exp $
+ * $Id: if_ed.c,v 1.13 1993/12/12 20:24:37 hpeyerl Exp $
*/
/*
@@ -2089,14 +2089,13 @@ ed_get_packet(sc, buf, len)
* 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.
- *
- * XXX This test does not support multicasts.
*/
if ((sc->arpcom.ac_if.if_flags & IFF_PROMISC) &&
bcmp(eh->ether_dhost, sc->arpcom.ac_enaddr,
sizeof(eh->ether_dhost)) != 0 &&
bcmp(eh->ether_dhost, etherbroadcastaddr,
- sizeof(eh->ether_dhost)) != 0) {
+ sizeof(eh->ether_dhost)) != 0 &&
+ (eh->ether_dhost[0] & 1) == 0) {
m_freem(head);
return;