Commit 6403d962 authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso

netfilter: nf_tables: indicate family when dumping set elements

Set the nfnetlink header that indicates the family of this element.
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 3d9b1421
......@@ -2850,7 +2850,7 @@ static int nf_tables_dump_set(struct sk_buff *skb, struct netlink_callback *cb)
goto nla_put_failure;
nfmsg = nlmsg_data(nlh);
nfmsg->nfgen_family = NFPROTO_UNSPEC;
nfmsg->nfgen_family = ctx.afi->family;
nfmsg->version = NFNETLINK_V0;
nfmsg->res_id = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment