From: mpi Date: Tue, 19 May 2015 11:21:42 +0000 (+0000) Subject: We cannot check for M_BCAST or M_MCAST now that vlan_input() is ran X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e0bcecc98a8527bde4e715cb7ef8e9f00c7c3b08;p=openbsd We cannot check for M_BCAST or M_MCAST now that vlan_input() is ran before ether_input(). --- diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index 55544842a01..19b24383a57 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vlan.c,v 1.120 2015/05/19 11:09:24 mpi Exp $ */ +/* $OpenBSD: if_vlan.c,v 1.121 2015/05/19 11:21:42 mpi Exp $ */ /* * Copyright 1998 Massachusetts Institute of Technology @@ -351,7 +351,7 @@ vlan_input(struct mbuf *m, void *hdr) * Drop promiscuously received packets if we are not in * promiscuous mode. */ - if ((m->m_flags & (M_BCAST|M_MCAST)) == 0 && + if (!ETHER_IS_MULTICAST(eh->ether_dhost) && (ifp->if_flags & IFF_PROMISC) && (ifv->ifv_if.if_flags & IFF_PROMISC) == 0) { if (bcmp(&ifv->ifv_ac.ac_enaddr, eh->ether_dhost,