netdev
[Top] [All Lists]

Re: [PATCH] Fix loopback over bridge port

To: Bart De Schuymer <bdschuym@xxxxxxxxxx>
Subject: Re: [PATCH] Fix loopback over bridge port
From: "David S. Miller" <davem@xxxxxxxxxx>
Date: Mon, 29 Dec 2003 17:43:20 -0800
Cc: shemminger@xxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <200312271536.46940.bdschuym@xxxxxxxxxx>
References: <200312271536.46940.bdschuym@xxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
On Sat, 27 Dec 2003 15:36:46 +0100
Bart De Schuymer <bdschuym@xxxxxxxxxx> wrote:

> The patch below fixes this by adding a check in __handle_bridge().
> It also changes br_netfilter.c by only doing the paranoid checks of
> br_nf_post_routing() when CONFIG_NETFILTER_DEBUG is set. I think the
> loopback fix will get rid of any skbuffs matching those paranoid checks.
> 
> The patch also introduces/removes some whitespace in br_netfilter.c.

Both 2.4.x and 2.6.x variants applied, thanks Bart.

> I think the code (in net/ipv4/ip_output.c::ip_dev_loopback_xmit())
> __skb_pull(newskb, newskb->nh.raw - newskb->data);
> is useless, as data always points to the network header at that moment. But
> that's not really my territory...

I'll look into this, it might be needed for proper packet sniffer
handling but that's just an offhand guess...

<Prev in Thread] Current Thread [Next in Thread>