netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: jalvarez <jalvarez@toulouse.viveris.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH nf-next] netfilter: nf_tables: allow to filter out rules by table and chain
Date: Wed, 20 Jul 2016 18:13:13 +0200	[thread overview]
Message-ID: <20160720161313.GA1316@salvia> (raw)
In-Reply-To: <578F833D.202@toulouse.viveris.com>

On Wed, Jul 20, 2016 at 03:57:17PM +0200, jalvarez wrote:
> @@ -1877,7 +1883,15 @@ static int nf_tables_dump_rules(struct sk_buff *skb,
>              continue;
> 
>          list_for_each_entry_rcu(table, &afi->tables, list) {
> +            if (ctx->table[0] &&

We could just check for this instead:

               if (ctx && ctx->table[0] &&
                   strcmp(ctx->table, table->name) != 0)
                        continue;

Will send a v2 including this.

      reply	other threads:[~2016-07-20 16:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-19 10:20 [PATCH nf-next] netfilter: nf_tables: allow to filter out rules by table and chain Pablo Neira Ayuso
2016-07-20 10:04 ` jalvarez
2016-07-20 13:57 ` jalvarez
2016-07-20 16:13   ` 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=20160720161313.GA1316@salvia \
    --to=pablo@netfilter.org \
    --cc=jalvarez@toulouse.viveris.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).