set_elem: parse family from Netlink message
PATCH 1/1 set_elem: parse family from Netlink message
Lets obtain the family from the Netlink message.
Signed-off-by Arturo Borrero Gonzalez <[email protected]>
--- src/set_elem.c | 3 +++ 1 file changed, 3 insertions(+)
src/set_elem.c +3 -0
@@ -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);
Quoted 1 line · Arturo Borrero Gonzalez
Lets obtain the family from the Netlink message.
Applied, thanks Arturo.