diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-06-11 19:05:28 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-06-16 13:08:09 +0200 |
commit | 6403d96254c7c44fdfa163248b1198c714c65f6a (patch) | |
tree | 92b599a36f5a397b2779bcd3f39fe458685fbed5 /net | |
parent | 3d9b142131ef0cde259dbac5cce36f570fcb4902 (diff) | |
download | op-kernel-dev-6403d96254c7c44fdfa163248b1198c714c65f6a.zip op-kernel-dev-6403d96254c7c44fdfa163248b1198c714c65f6a.tar.gz |
netfilter: nf_tables: indicate family when dumping set elements
Set the nfnetlink header that indicates the family of this element.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/nf_tables_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c index 39369ea..ab4566c 100644 --- a/net/netfilter/nf_tables_api.c +++ b/net/netfilter/nf_tables_api.c @@ -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; |