mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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]>
This commit is contained in:
parent
3d9b142131
commit
6403d96254
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue