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: [nf_tables PATCH] netfilter: nf_tables: add set_elem notifications
Date: Thu, 3 Apr 2014 12:07:30 +0200 [thread overview]
Message-ID: <20140403100730.GA11139@localhost> (raw)
In-Reply-To: <20140401120606.4305.13228.stgit@nfdev.cica.es>
On Tue, Apr 01, 2014 at 02:06:07PM +0200, Arturo Borrero Gonzalez wrote:
> This patch adds set_elems notifications.
>
> When a set_elem is added/deleted, all listening peers in userspace will
> receive the corresponding notification.
>
> Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
> ---
> net/netfilter/nf_tables_api.c | 82 +++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 82 insertions(+)
>
> diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c
> index 33045a5..9791c49 100644
> --- a/net/netfilter/nf_tables_api.c
> +++ b/net/netfilter/nf_tables_api.c
> @@ -2723,6 +2723,85 @@ static int nf_tables_getsetelem(struct sock *nlsk, struct sk_buff *skb,
> return -EOPNOTSUPP;
> }
>
> +static int nf_tables_fill_setelem_info(const struct nft_ctx *ctx,
> + struct sk_buff *skb;
^
Did you send me the final patch version?
> + const struct nft_set *set,
> + const struct nft_set_elem *elem,
> + int event, u16 flags)
> +{
> + u32 seq = ctx->nlh->nlmsg_seq;
> + struct nfgenmsg *nfmsg;
> + struct nlmsghdr *nlh;
> + struct nlattr *nest;
> +
> + event |= NFNL_SUBSYS_NFTABLES << 8;
> + nlh = nlmsg_put(skb, portid, seq, event, sizeof(struct nfgenmsg),
It also complains about unexisting portid variable and so on. This
doesn't compile :-(
next prev parent reply other threads:[~2014-04-03 10:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-01 12:06 [nf_tables PATCH] netfilter: nf_tables: add set_elem notifications Arturo Borrero Gonzalez
2014-04-02 11:48 ` Patrick McHardy
2014-04-03 10:07 ` Pablo Neira Ayuso [this message]
2014-04-03 10:19 ` Pablo Neira Ayuso
2014-04-03 10:28 ` 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=20140403100730.GA11139@localhost \
--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.