Message ID | 20140405163829.7898.54224.stgit@nfdev.cica.es |
---|---|
State | Accepted |
Headers | show |
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.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
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);
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(+) -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html