From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Graf Subject: Re: [PATCH 1/3] libnl: add netfilter support Date: Mon, 3 Sep 2007 12:01:48 +0200 Message-ID: <20070903100148.GG18480@postel.suug.ch> References: <46DB9716.1020400@snapgear.com> <46DB9776.8020209@snapgear.com> <46DBD8CD.9060804@trash.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Netfilter Developer Mailing List , Philip Craig To: Patrick McHardy Return-path: Content-Disposition: inline In-Reply-To: <46DBD8CD.9060804@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 2007-09-03 11:50 > Philip Craig wrote: > > +#define NFA_NEST(skb, type) \ > > +({ struct nfattr *__start = (struct nfattr *)skb_tail_pointer(skb); \ > > + NFA_PUT(skb, (NFNL_NFA_NEST | type), 0, NULL); \ > > + __start; }) > > > The latest libnetfilter_conntrack version doesn't send the NFA_NEST > bit to the kernel anymore since we intend to get rid of it, at > least on the receive side. Please change this to not send it here > as well. Great, so basically the attribute interfaces could be merged on the sending side. I think I can live with checking for the bit on the receiving side, the only problem it could cause is when the attribute type is used to encode information such as a port number. So if we are willing to take that risk the receiving path could be merged as well.