projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d9b142
)
netfilter: nf_tables: indicate family when dumping set elements
author
Pablo Neira Ayuso
<pablo@netfilter.org>
Wed, 11 Jun 2014 17:05:28 +0000
(19:05 +0200)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Mon, 16 Jun 2014 11:08:09 +0000
(13:08 +0200)
Set the nfnetlink header that indicates the family of this element.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nf_tables_api.c
b/net/netfilter/nf_tables_api.c
index
39369ea
..
ab4566c
100644
(file)
--- 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;