netdev
[Top] [All Lists]

Re: [PATCH] remove superfluous diverter printk'ing

To: jamal <hadi@xxxxxxxxxx>
Subject: Re: [PATCH] remove superfluous diverter printk'ing
From: Lennert Buytenhek <buytenh@xxxxxxxxxxxxxx>
Date: Sun, 16 Jan 2005 18:22:02 +0100
Cc: "David S. Miller" <davem@xxxxxxxxxxxxx>, netdev@xxxxxxxxxxx, bdschuym@xxxxxxxxxx
In-reply-to: <1105895420.1090.708.camel@xxxxxxxxxxxxxxxx>
References: <20050114124700.GA4079@xxxxxxxxxxxxxxxxx> <20050114134642.4be4e2fc.davem@xxxxxxxxxxxxx> <20050115104750.GB14991@xxxxxxxxxxxxxxxxx> <1105895420.1090.708.camel@xxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.1i
On Sun, Jan 16, 2005 at 12:10:21PM -0500, jamal wrote:

> Diverter could simply be killed now that tc actions exist if theres no
> maintainer or user.
> Should be able to divert any packet of choce to any interface.

The diverter is not used for redirecting a packet to another interface.

What it does (IIRC) is overwrite the destination MAC address on selected
packets so that the local host will process them.  You can do the same
thing with iptables' "-j REDIRECT" but the diverter was made for use on
ethernet bridges (REDIRECTing bridged packets) when the bridge-nf stuff
didn't exist yet.

Nowadays we have bridge-nf and you should be able to do the same thing
by just using '-j REDIRECT' as you would do with routing (Bart, please
correct me if I'm wrong there.)


--L

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