Lets obtain the family from the Netlink message. Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@xxxxxxxxx> --- 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); -- 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