nft_ext_fullcone.c: fix nft_expr_ops::dump callback parameters

7d34aa3e03
This commit is contained in:
Syrone Wong 2023-02-26 21:55:30 +08:00 committed by GitHub
parent 95ad79bc6d
commit 5a21ca29b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -179,7 +179,11 @@ static int nft_fullcone_init(const struct nft_ctx *ctx, const struct nft_expr *e
return err;
}
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 2, 0)
static int nft_fullcone_dump(struct sk_buff *skb, const struct nft_expr *expr, bool reset)
#else
static int nft_fullcone_dump(struct sk_buff *skb, const struct nft_expr *expr)
#endif
{
const struct nft_fullcone *priv = nft_expr_priv(expr);