* [libnftnl PATCH] set_elem: parse family from Netlink message
@ 2014-04-05 16:38 Arturo Borrero Gonzalez
2014-04-07 8:50 ` Pablo Neira Ayuso
0 siblings, 1 reply; 2+ messages in thread
From: Arturo Borrero Gonzalez @ 2014-04-05 16:38 UTC (permalink / raw)
To: netfilter-devel; +Cc: pablo
Lets obtain the family from the Netlink message.
Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
---
src/set_elem.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/set_elem.c b/src/set_elem.c
index b71a916..a747ba6 100644
--- a/src/set_elem.c
+++ b/src/set_elem.c
@@ -358,6 +358,9 @@ int nft_set_elems_nlmsg_parse(const struct nlmsghdr *nlh, struct nft_set *s)
if (tb[NFTA_SET_ELEM_LIST_ELEMENTS])
ret = nft_set_elems_parse(s, tb[NFTA_SET_ELEM_LIST_ELEMENTS]);
+ s->family = nfg->nfgen_family;
+ s->flags |= (1 << NFT_SET_ATTR_FAMILY);
+
return ret;
}
EXPORT_SYMBOL(nft_set_elems_nlmsg_parse);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [libnftnl PATCH] set_elem: parse family from Netlink message
2014-04-05 16:38 [libnftnl PATCH] set_elem: parse family from Netlink message Arturo Borrero Gonzalez
@ 2014-04-07 8:50 ` Pablo Neira Ayuso
0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2014-04-07 8:50 UTC (permalink / raw)
To: Arturo Borrero Gonzalez; +Cc: netfilter-devel
On Sat, Apr 05, 2014 at 06:38:29PM +0200, Arturo Borrero Gonzalez wrote:
> Lets obtain the family from the Netlink message.
Applied, thanks Arturo.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-07 8:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-05 16:38 [libnftnl PATCH] set_elem: parse family from Netlink message Arturo Borrero Gonzalez
2014-04-07 8:50 ` Pablo Neira Ayuso
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).