Commit d78008de authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso

netfilter: nf_tables: dump NFTA_CHAIN_FLAGS attribute

Missing NFTA_CHAIN_FLAGS netlink attribute when dumping basechain
definitions.

Fixes: c9626a2c ("netfilter: nf_tables: add hardware offload support")
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 88a63771
...@@ -1405,6 +1405,11 @@ static int nf_tables_fill_chain_info(struct sk_buff *skb, struct net *net, ...@@ -1405,6 +1405,11 @@ static int nf_tables_fill_chain_info(struct sk_buff *skb, struct net *net,
lockdep_commit_lock_is_held(net)); lockdep_commit_lock_is_held(net));
if (nft_dump_stats(skb, stats)) if (nft_dump_stats(skb, stats))
goto nla_put_failure; goto nla_put_failure;
if ((chain->flags & NFT_CHAIN_HW_OFFLOAD) &&
nla_put_be32(skb, NFTA_CHAIN_FLAGS,
htonl(NFT_CHAIN_HW_OFFLOAD)))
goto nla_put_failure;
} }
if (nla_put_be32(skb, NFTA_CHAIN_USE, htonl(chain->use))) if (nla_put_be32(skb, NFTA_CHAIN_USE, htonl(chain->use)))
......
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