From: Thomas Graf Subject: Re: [PATCH 1/2] updates for [nf|ct]netlink and event API Date: Thu, 30 Jun 2005 03:49:02 +0200 Message-ID: <20050630014901.GH16076@postel.suug.ch> References: <42C03F2E.30706@eurodev.net> <42C0806E.3010400@trash.net> <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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Harald Welte , Netfilter Development Mailinglist , Pablo Neira Return-path: To: Patrick McHardy Content-Disposition: inline In-Reply-To: <42C34445.9020709@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 <42C34445.9020709@trash.net> 2005-06-30 03:00 > You add a new nfattr header with the type set to CTA_TUPLE and > note the position of skb->tail. Then you add the nested attributes > as usual. When you're done you set the length of the nfattr header > to skb->tail - old_tail. The RTA_NEST/RTA_NEST_END macros handle > this for rtnetlink (include/linux/rtnetlink.h). At some point we should introduce a "generic" attribute architecture for all netlink families. The connector stuff will need it as well, so maybe the time has come to actually do it.