[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <AANLkTinYeJ+RDPCt4O6jKFVjYXCcQs7E7bCAO862jVQj@mail.gmail.com>
Date: Fri, 30 Jul 2010 10:57:43 +0800
From: Changli Gao <xiaosuo@...il.com>
To: Herbert Xu <herbert@...dor.apana.org.au>
Cc: "David S. Miller" <davem@...emloft.net>,
Jamal Hadi Salim <hadi@...erus.ca>, netdev@...r.kernel.org
Subject: Re: [PATCH] act_nat: get the position info from skb->tc_verd
On Fri, Jul 30, 2010 at 10:36 AM, Herbert Xu
<herbert@...dor.apana.org.au> wrote:
> On Fri, Jul 30, 2010 at 02:42:32AM +0800, Changli Gao wrote:
>> act_nat uses its flags field to determine where it acts. It isn't reliable,
>> and can't prevent users from doing wrong settings, and act_nat should get the
>> position info from skb->tc_verd as act_mirred does.
>>
>> Signed-off-by: Changli Gao <xiaosuo@...il.com>
>
> Nack, the direction controls whether we NAT saddr or daddr. It's
> perfectly OK for someone to NAT daddr on the way out.
>
Thanks for your explanation. However, ingress and egress aren't as
comprehensive as DNAT and SNAT. BTW I am planning to add stateless
PAT(Port Address Translation) support into act_nat. Any comment?
--
Regards,
Changli Gao(xiaosuo@...il.com)
--
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