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@xxxxxxxxx> > --- > 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 :-( -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html