diff options
author | 2022-10-14 23:45:58 +0200 | |
---|---|---|
committer | 2022-11-15 10:46:34 +0100 | |
commit | 7d34aa3e03b6a56306296bd98b26c6a1710cd57b (patch) | |
tree | b6433794bb2069d4cbec27b49b4a730d879ca373 /include/net/netfilter/nft_reject.h | |
parent | netfilter: nft_inner: fix return value check in nft_inner_parse_l2l3() (diff) | |
download | wireguard-linux-7d34aa3e03b6a56306296bd98b26c6a1710cd57b.tar.xz wireguard-linux-7d34aa3e03b6a56306296bd98b26c6a1710cd57b.zip |
netfilter: nf_tables: Extend nft_expr_ops::dump callback parameters
Add a 'reset' flag just like with nft_object_ops::dump. This will be
useful to reset "anonymous stateful objects", e.g. simple rule counters.
No functional change intended.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/netfilter/nft_reject.h')
-rw-r--r-- | include/net/netfilter/nft_reject.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/netfilter/nft_reject.h b/include/net/netfilter/nft_reject.h index 56b123a42220..6d9ba62efd75 100644 --- a/include/net/netfilter/nft_reject.h +++ b/include/net/netfilter/nft_reject.h @@ -22,7 +22,8 @@ int nft_reject_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]); -int nft_reject_dump(struct sk_buff *skb, const struct nft_expr *expr); +int nft_reject_dump(struct sk_buff *skb, + const struct nft_expr *expr, bool reset); int nft_reject_icmp_code(u8 code); int nft_reject_icmpv6_code(u8 code); |