From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: Re: [nft PATCH 2/3] src: add xt compat support Date: Fri, 27 Mar 2015 14:13:54 +0100 Message-ID: <20150327131354.GA11617@salvia> References: <20150325191556.13491.88761.stgit@nfdev2.cica.es> <20150325191602.13491.63370.stgit@nfdev2.cica.es> <20150325194441.GA26737@salvia> <20150327123139.GA10614@salvia> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Netfilter Development Mailing list , Patrick McHardy To: Arturo Borrero Gonzalez Return-path: Received: from mail.us.es ([193.147.175.20]:46361 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752310AbbC0NJ4 (ORCPT ); Fri, 27 Mar 2015 09:09:56 -0400 Content-Disposition: inline In-Reply-To: Sender: netfilter-devel-owner@vger.kernel.org List-ID: On Fri, Mar 27, 2015 at 01:59:31PM +0100, Arturo Borrero Gonzalez wrote: > On 27 March 2015 at 13:31, Pablo Neira Ayuso wrote: > > On Fri, Mar 27, 2015 at 01:00:37PM +0100, Arturo Borrero Gonzalez wrote: > >> On 25 March 2015 at 20:44, Pablo Neira Ayuso wrote: > >> > On Wed, Mar 25, 2015 at 08:16:02PM +0100, Arturo Borrero Gonzalez wrote: > >> >> diff --git a/include/xt.h b/include/xt.h > >> >> new file mode 100644 > >> >> index 0000000..414f3d1 > >> >> --- /dev/null > >> >> +++ b/include/xt.h > >> >> @@ -0,0 +1,100 @@ > >> >> +#ifndef _NFT_XT_H_ > >> >> +#define _NFT_XT_H_ > >> >> + > >> >> +#include > >> >> +#include > >> >> +#include > >> >> +#include > >> >> +#include > >> >> + > >> >> +struct netlink_linearize_ctx; > >> >> +struct netlink_parse_ctx; > >> >> +struct nft_rule_expr; > >> >> +struct rule_pp_ctx; > >> >> +struct rule; > >> >> + > >> >> +#ifdef HAVE_LIBXTABLES > >> >> + > >> >> +#include > >> >> +#include > >> >> +#include > >> >> + > >> >> +/* Fake ebt_entry */ > >> >> +struct ebt_entry { > >> > > >> > I think you can avoid this if you: > >> > > >> > #include > >> > > >> > >> Can't include because it includes > >> and clash with > > > > There must be a clean way to fix this without embedding the ebt_entry > > structure. > > > > We seem to have the same problem in ebtables-compat: > > http://git.netfilter.org/iptables/tree/iptables/nft-bridge.h#n32 Try to find a way to fix it there too ;-)