netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Cc: Netfilter Development Mailing list <netfilter-devel@vger.kernel.org>
Subject: Re: [RFC PATCH v2 6/6] src: add events reporting
Date: Wed, 26 Feb 2014 18:27:14 +0100	[thread overview]
Message-ID: <20140226172714.GA23009@localhost> (raw)
In-Reply-To: <CAOkSjBjFNzeHWaN5gaAeifH2rAqBbUrTJBvzNiLqE7bP4H4R4g@mail.gmail.com>

On Wed, Feb 26, 2014 at 06:17:36PM +0100, Arturo Borrero Gonzalez wrote:
> On 26 February 2014 17:10, Arturo Borrero Gonzalez
> <arturo.borrero.glez@gmail.com> wrote:
> >
> > +
> > +       /* XXXX */
> > +       sleep(1);
> > +
> > +       /* only way, by now, to know set_elems (no set_elem events) */
> > +       if (netlink_get_setelems(&set_tmpctx, &s->handle, monh->loc, s) < 0)
> > +               goto out;
> > +
> 
> About this:
> 
> it seems that I can't query the kernel just after the set is created,
> because I get an empty set.

I see. Since sets are first created then elements are added, I think
you have to make a kernel patch to add set element events.

  reply	other threads:[~2014-02-26 17:27 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-26 16:09 [RFC PATCH v2 0/6] nft events reporting Arturo Borrero Gonzalez
2014-02-26 16:09 ` [RFC PATCH v2 1/6] rule: allow to print sets in plain format Arturo Borrero Gonzalez
2014-02-26 16:44   ` Pablo Neira Ayuso
2014-02-26 16:09 ` [RFC PATCH v2 2/6] netlink: add netlink_delinearize_set() func Arturo Borrero Gonzalez
2014-02-26 16:10 ` [RFC PATCH v2 3/6] rule: generalize chain_print() Arturo Borrero Gonzalez
2014-02-26 16:10 ` [RFC PATCH v2 4/6] netlink: add netlink_delinearize_chain() func Arturo Borrero Gonzalez
2014-02-26 16:49   ` Pablo Neira Ayuso
2014-02-26 16:10 ` [RFC PATCH v2 5/6] netlink: add netlink_delinearize_table() func Arturo Borrero Gonzalez
2014-02-26 16:10 ` [RFC PATCH v2 6/6] src: add events reporting Arturo Borrero Gonzalez
2014-02-26 17:17   ` Arturo Borrero Gonzalez
2014-02-26 17:27     ` Pablo Neira Ayuso [this message]
2014-02-26 17:36       ` Arturo Borrero Gonzalez
2014-02-26 17:19   ` Pablo Neira Ayuso
2014-02-27 14:09 ` [RFC PATCH v2 0/6] nft " Patrick McHardy

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=20140226172714.GA23009@localhost \
    --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 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).