nft-fullcone: fix build with linux-6.12

Signed-off-by: sbwml <admin@cooluc.com>
This commit is contained in:
sbwml 2024-09-30 14:50:40 +08:00
parent f422565913
commit f91067a009

View File

@ -121,7 +121,11 @@ static int exp_event_cb(unsigned int events, const struct nf_exp_event *item)
} }
#endif #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) static int nft_fullcone_validate(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nft_data **data)
#endif
{ {
int err; int err;