From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: Re: RFC: NAT configuration over ctnetlink Date: Tue, 02 May 2006 18:51:24 +0200 Message-ID: <44578E0C.5070705@netfilter.org> References: <4451BA40.4050207@trash.net> <445388B9.2010308@netfilter.org> <4457677D.7060607@trash.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Harald Welte , Netfilter Development Mailinglist Return-path: To: Patrick McHardy In-Reply-To: <4457677D.7060607@trash.net> 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 Patrick McHardy wrote: > Pablo Neira Ayuso wrote: >>Patrick McHardy wrote: >> >>>I added ctnetlink support to a SIP proxy (siproxd) yesterday and >>>stumbled over some problems with NAT. The CTA_NAT attribute only >>>allows to set up a single manip, since NAT mappings can't be >>>changed for existing conntracks there is no way to add both a >>>src- and a dst-manip. This patch removes the overloading of the >>>status bits with netlink-relevant semantic and changes the CTA_NAT >>>attribute to CTA_NAT_SRC and CTA_NAT_DST. It breaks compatiblity, >>>but I don't think its worth trying to keep it for this stupid >>>behaviour. Any comments? >> >>Why not keep using the status bits logic? It doesn't break anything and >>you can still add support for source and destination NAT handlings at >>the same time. Is the status thing so ugly to break this? > > It is definitely ugly and broken. I'm really not happy that we added > this stuff in a hurry instead of just leaving it out and adding it > when it is in the proper shape. > > I don't know. I would prefer to just remove it. Since the library > takes all parameters as arguments to a single function (one more > thing I definitely don't like), compatibility of the library will > break anyway when we add support for multiple manips. Do you really > think its worth keeping around? Not really, if it's trash better remove this sooner than later. Now that we are going to break backward compatibility, please let me know if you don't like anything else that we could change at this point.