From f91067a0092c6128503b2ec20b84196cb64fa909 Mon Sep 17 00:00:00 2001 From: sbwml Date: Mon, 30 Sep 2024 14:50:40 +0800 Subject: [PATCH] nft-fullcone: fix build with linux-6.12 Signed-off-by: sbwml --- src/nft_ext_fullcone.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/nft_ext_fullcone.c b/src/nft_ext_fullcone.c index 96d1feb..d1f2611 100644 --- a/src/nft_ext_fullcone.c +++ b/src/nft_ext_fullcone.c @@ -121,7 +121,11 @@ static int exp_event_cb(unsigned int events, const struct nf_exp_event *item) } #endif +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 12, 0) +static int nft_fullcone_validate(const struct nft_ctx *ctx, const struct nft_expr *expr) +#else static int nft_fullcone_validate(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nft_data **data) +#endif { int err;