diff options
author | Phil Sutter <phil@nwl.cc> | 2022-10-14 23:45:59 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-11-15 10:53:17 +0100 |
commit | 8daa8fde3fc3f069ff0b5c87079a5c1df7743113 (patch) | |
tree | 211a951a755672710e6ab79026e016aacd28a587 /net/netfilter/nft_inner.c | |
parent | 7d34aa3e03b6a56306296bd98b26c6a1710cd57b (diff) | |
download | linux-8daa8fde3fc3f069ff0b5c87079a5c1df7743113.tar.gz |
netfilter: nf_tables: Introduce NFT_MSG_GETRULE_RESET
Analogous to NFT_MSG_GETOBJ_RESET, but for rules: Reset stateful
expressions like counters or quotas. The latter two are the only
consumers, adjust their 'dump' callbacks to respect the parameter
introduced earlier.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_inner.c')
-rw-r--r-- | net/netfilter/nft_inner.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nft_inner.c b/net/netfilter/nft_inner.c index 6d96b826db4e3f..28e2873ba24e42 100644 --- a/net/netfilter/nft_inner.c +++ b/net/netfilter/nft_inner.c @@ -359,7 +359,7 @@ static int nft_inner_dump(struct sk_buff *skb, goto nla_put_failure; if (nft_expr_dump(skb, NFTA_INNER_EXPR, - (struct nft_expr *)&priv->expr) < 0) + (struct nft_expr *)&priv->expr, reset) < 0) goto nla_put_failure; return 0; |