From e0bcecc98a8527bde4e715cb7ef8e9f00c7c3b08 Mon Sep 17 00:00:00 2001 From: mpi Date: Tue, 19 May 2015 11:21:42 +0000 Subject: [PATCH] We cannot check for M_BCAST or M_MCAST now that vlan_input() is ran before ether_input(). --- sys/net/if_vlan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, -- 2.20.1