From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [nf-next PATCH v2] netfilter: nft_compat: add ebtables support
Date: Fri, 30 Jan 2015 19:00:45 +0100 [thread overview]
Message-ID: <20150130180045.GA12255@salvia> (raw)
In-Reply-To: <20150129183432.12221.94390.stgit@nfdev.cica.es>
On Thu, Jan 29, 2015 at 07:34:42PM +0100, Arturo Borrero Gonzalez wrote:
> This patch extends nft_compat to support ebtables extensions.
>
> ebtables verdict codes are translated to the ones used by the nf_tables engine,
> so we can properly use ebtables target extensions from nft_compat.
Applied with minor nitpick, thanks Arturo.
> diff --git a/net/netfilter/nft_compat.c b/net/netfilter/nft_compat.c
> index 265e190..73ec6ef 100644
> --- a/net/netfilter/nft_compat.c
> +++ b/net/netfilter/nft_compat.c
> @@ -66,7 +68,7 @@ static void nft_target_eval(const struct nft_expr *expr,
> if (pkt->xt.hotdrop)
> ret = NF_DROP;
>
> - switch(ret) {
> + switch (ret) {
> case XT_CONTINUE:
> data[NFT_REG_VERDICT].verdict = NFT_CONTINUE;
> break;
> @@ -74,6 +76,44 @@ static void nft_target_eval(const struct nft_expr *expr,
> data[NFT_REG_VERDICT].verdict = ret;
> break;
> }
> +
> + return;
Removed this return, we don't need it.
> +}
prev parent reply other threads:[~2015-01-30 17:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-29 18:34 [nf-next PATCH v2] netfilter: nft_compat: add ebtables support Arturo Borrero Gonzalez
2015-01-30 18:00 ` Pablo Neira Ayuso [this message]
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=20150130180045.GA12255@salvia \
--to=pablo@netfilter.org \
--cc=arturo.borrero.glez@gmail.com \
--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.