From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philip Craig Subject: Re: [PATCH] support --physdev-out for routed packets Date: Fri, 13 Jul 2007 13:14:18 +1000 Message-ID: <4696EE0A.9000103@snapgear.com> References: <4695CCF8.1010202@snapgear.com> <4696225E.3000606@trash.net> <4696CE1B.1090600@snapgear.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org To: Patrick McHardy Return-path: In-Reply-To: <4696CE1B.1090600@snapgear.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org Philip Craig wrote: > Patrick McHardy wrote: >> Its probably also racy wrt. fdb changes. > > Yes. It could modify the bridging code to only forward to the > physoutdev stored in nf_bridge, or store the fdb result in > nf_bridge and avoid the second fdb lookup. I remember now why I didn't do this already. The solution is to store the result in the mark, and use that in ebtables to ensure it still goes out that port. This needs to be done anyway when defining the zone in terms of IP addresses.