[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5257D067.2050607@openwrt.org>
Date: Fri, 11 Oct 2013 12:18:15 +0200
From: Felix Fietkau <nbd@...nwrt.org>
To: Stephen Hemminger <stephen@...workplumber.org>
CC: netdev@...r.kernel.org
Subject: Re: [PATCH net] bridge: allow receiption on disabled port
On 2013-10-11 4:35 AM, Stephen Hemminger wrote:
> This is what I was thinking would be better.
>
> Don't want these packets leaking into PRE_ROUTEING chain or have
> any chance to get flooded out other ports.
>
> Compile tested only...
>
> I could use another goto instead but that becomes spaghetti and
> never like to jump back into a block.
[...]
> forward:
> switch (p->state) {
> + case BR_STATE_DISABLED:
> + if (!ether_addr_equal(p->br->dev->dev_addr, dest))
> + goto drop;
Checking against the bridge device address isn't enough, WPA EAPOL
packets are addressed to the wifi device MAC address.
- Felix
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists