Skip to contentSkip to conversation

set_elem: parse family from Netlink message

PATCH Applied Arturo Borrero Gonzalez 2 participants 2 messages Apr 5, 2014 – Apr 7, 2014 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 set_elem: parse family from Netlink message

Lets obtain the family from the Netlink message.

---
 src/set_elem.c |    3 +++
 1 file changed, 3 insertions(+)
src/set_elem.c +3 -0
index b71a916..a747ba6 100644
@@ -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);
maintainer Applied
#1 lore raw
Quoted 1 line · Arturo Borrero Gonzalez

Lets obtain the family from the Netlink message.

Applied, thanks Arturo.