netfilter: nf_tables: indicate family when dumping set elements
Subsystems (2)
Pablo Neira Ayuso
maintainerPATCH 1/1 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 <[email protected]>
--- net/netfilter/nf_tables_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/nf_tables_api.c +1 -1
@@ -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 ;
Signature · 1 line
1.7.10.4