From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Cc: netfilter-devel@vger.kernel.org, kaber@trash.net
Subject: Re: [nft PATCH 3/4] src: add xt compat support
Date: Thu, 9 Apr 2015 14:58:59 +0200 [thread overview]
Message-ID: <20150409125859.GA21110@salvia> (raw)
In-Reply-To: <20150408174829.28553.71132.stgit@nfdev2.cica.es>
On Wed, Apr 08, 2015 at 07:48:29PM +0200, Arturo Borrero Gonzalez wrote:
> From: Pablo Neira Ayuso <pablo@netfilter.org>
>
> At compilation time, you have to pass this option.
>
> # ./configure --with-xtables
>
> And libxtables needs to be installed in your system.
>
> This patch allows you to use xt extensions from nft, eg.
>
> # nft add rule filter output \
> tcp flags syn xt target TCPMSS [ --clamp-mss-to-pmtu ]
>
> This provides access to all existing xt modules from nft. Users can
> meanwhile use xt extension until we can provide native expressions.
>
> You can build this optionally, if disabled it displays an error:
>
> # nft add rule filter output tcp flags syn xt target TCPMSS [ --clamp-mss-to-pmtu ]
> <cmdline>:1:38-77: Error: this build does not support xtables
> add rule filter output tcp flags syn xt target TCPMSS [ --clamp-mss-to-pmtu ]
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> so you know your build doesn't support this.
>
> Limitations:
>
> * Beware of clashes with keywords, eg. state, from bison parser.
> * Better xt parsing errors for unknown options.
>
> This is joint work with Arturo Borrero Gonzalez.
$ make
make all-recursive
make[1]: se ingresa al directorio
`/home/pablo/devel/scm/git-netfilter/nftables'
Making all in src
make[2]: se ingresa al directorio
`/home/pablo/devel/scm/git-netfilter/nftables/src'
make all-am
make[3]: se ingresa al directorio
`/home/pablo/devel/scm/git-netfilter/nftables/src'
CC rule.o
In file included from ../include/statement.h:6:0,
from rule.c:19:
../include/xt.h: In function ‘stmt_evaluate_xt’:
../include/xt.h:60:2: warning: implicit declaration of function
‘stmt_error’ [-Wimplicit-function-declaration]
../include/xt.h: At top level:
../include/xt.h:100:34: error: field ‘entry’ has incomplete type
make[3]: *** [rule.o] Error 1
make[3]: se sale del directorio
`/home/pablo/devel/scm/git-netfilter/nftables/src'
make[2]: *** [all] Error 2
make[2]: se sale del directorio
`/home/pablo/devel/scm/git-netfilter/nftables/src'
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio
`/home/pablo/devel/scm/git-netfilter/nftables'
make: *** [all] Error 2
This doesn't compile without libxtables support.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-04-09 12:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-08 17:48 [nft PATCH 1/4] include: cache a copy of kernel ebtables.h Arturo Borrero Gonzalez
2015-04-08 17:48 ` [nft PATCH 2/4] src: expose delinearize/linearize structures and stmt_error() Arturo Borrero Gonzalez
2015-04-08 17:48 ` [nft PATCH 3/4] src: add xt compat support Arturo Borrero Gonzalez
2015-04-09 12:58 ` Pablo Neira Ayuso [this message]
2015-04-09 15:47 ` Pablo Neira Ayuso
2015-04-08 17:48 ` [nft PATCH 4/4] tests: regression: add xt compat tests Arturo Borrero Gonzalez
2015-04-09 15:46 ` Pablo Neira Ayuso
2015-04-09 0:22 ` [nft PATCH 1/4] include: cache a copy of kernel ebtables.h Stephen Hemminger
2015-04-09 8:18 ` Arturo Borrero Gonzalez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150409125859.GA21110@salvia \
--to=pablo@netfilter.org \
--cc=arturo.borrero.glez@gmail.com \
--cc=kaber@trash.net \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.