[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20091014101649.GA13944@fogou.chygwyn.com>
Date: Wed, 14 Oct 2009 11:16:49 +0100
From: steve@...gwyn.com
To: Atis Elsts <atis@...rotik.com>
Cc: Maciej Żenczykowski <zenczykowski@...il.com>,
David Miller <davem@...emloft.net>, netdev@...r.kernel.org,
panther@...abit.hu, eric.dumazet@...il.com, brian.haley@...com
Subject: Re: [PATCH] Add sk_mark route lookup support for IPv4 listening
sockets, and for IPv4 multicast forwarding
Hi,
On Wed, Oct 14, 2009 at 02:04:37PM +0300, Atis Elsts wrote:
> On Wednesday 14 October 2009 12:27:43 steve@...gwyn.com wrote:
> >
> > The mark is supposed to be a generic thing, not just for routing
> > lookups, it can be used for classification, etc as well.
>
> In general, sounds like a good idea, but IMHO exactly this could be a problem.
> skb->mark is already used for a lot of things. What if I am setting the mark
> by a firewall rule in prerouting chain, and matching it by a postrouting
> rule? If routing lookup was changing the mark, then my setup would break.
>
Yes, thats exactly why I said that it should default to the current
behaviour.
> Perhaps one more field could be added dst_entry? The field would be filled
> from route's table (if "setmark" for that route was specified). The use of
> that field would be similar to tclassid (e.g matching in firewall), except
> that it would also be used in routing lookups, if set.
>
Yes, I think that we are both thinking along the same lines. There
must obviously be a default "don't touch" setting,
Steve.
--
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