From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [PATCH 1/2] updates for [nf|ct]netlink and event API Date: Thu, 30 Jun 2005 23:26:12 +0200 Message-ID: <42C46374.5000407@trash.net> References: <20050628071308.GE13239@sunbeam.de.gnumonks.org> <42C1747A.3010703@trash.net> <42C2F2DF.7070301@eurodev.net> <42C2FC14.80609@trash.net> <42C33E33.7090908@eurodev.net> <42C34445.9020709@trash.net> <20050630014901.GH16076@postel.suug.ch> <42C350A1.1030602@trash.net> <20050630120302.GI16076@postel.suug.ch> <42C3F35B.50805@trash.net> <20050630180238.GM16076@postel.suug.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Harald Welte , netdev@vger.kernel.org, Jamal Hadi Salim , Netfilter Development Mailinglist , Pablo Neira Return-path: To: Thomas Graf In-Reply-To: <20050630180238.GM16076@postel.suug.ch> 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: netdev.vger.kernel.org Thomas Graf wrote: > * Patrick McHardy <42C3F35B.50805@trash.net> 2005-06-30 15:27 > >>I think for nested attributes error handling should happen on the >>outer level. Just trimming on the inner level would leave a >>half-finished nested attribute. > > I can agree with this, the question that remains is: do we want > to trim in functions where no nesting is done at all? i.e. things > like the generic network statistics dumping interface. Trimming isn't required in this case since the length is know and checked in advance. An error should still be propagated back of course so potential outer levels can do trimming. Regards Patrick