Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [91.216.245.30]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF3983FEB0A for ; Thu, 12 Mar 2026 18:06:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.216.245.30 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773338776; cv=none; b=BhWABo0D/frRvRp85lIk82uk0Tgy7n3IzN6nyYd5Smp8GlXi/xFmOtJnx9v7ga0ASJUyaTKWez9/uZJUP467pMk9wiM1Jk10iV8f0Fcp0pHkgV6lpL6PWZgELDeu/YHfe7NVYg5WGBjbp55L2TTLB/vdClXxthrWpYK00vuTo+o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773338776; c=relaxed/simple; bh=144+/10HwDzpLDdc3al4OBoPW6+3EsmqUNy9WobhsnY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=D9Yel/R15PSPLO1c7NfMMVdToS3J50rsxl97reRRDrVBtuBrEZyhgmrH0jlMFiB9oe0a6GhE8SvlpRJZExHvYi9BbVaD6+soUYeIGIbtV2B4jU31P6L7c3g+mwFJKvhQpj+ca6wEmn+lCqpinR+9YfKD1An3bFVel+4QEXVq0ZM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=strlen.de; spf=pass smtp.mailfrom=Chamillionaire.breakpoint.cc; arc=none smtp.client-ip=91.216.245.30 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=strlen.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=Chamillionaire.breakpoint.cc Received: by Chamillionaire.breakpoint.cc (Postfix, from userid 1003) id EE26660345; Thu, 12 Mar 2026 19:06:11 +0100 (CET) From: Florian Westphal To: Cc: Florian Westphal Subject: [PATCH nf-next] netfilter: add deprecation warning for dccp support Date: Thu, 12 Mar 2026 19:05:57 +0100 Message-ID: <20260312180606.5751-1-fw@strlen.de> X-Mailer: git-send-email 2.52.0 Precedence: bulk X-Mailing-List: netfilter-devel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add a deprecation warning for the xt_dccp match and the nft exthdr code. Signed-off-by: Florian Westphal --- net/netfilter/nft_exthdr.c | 4 ++++ net/netfilter/xt_dccp.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/net/netfilter/nft_exthdr.c b/net/netfilter/nft_exthdr.c index 5f01269a49bd..1602e4266f34 100644 --- a/net/netfilter/nft_exthdr.c +++ b/net/netfilter/nft_exthdr.c @@ -796,6 +796,10 @@ nft_exthdr_select_ops(const struct nft_ctx *ctx, break; #ifdef CONFIG_NFT_EXTHDR_DCCP case NFT_EXTHDR_OP_DCCP: + pr_warn_once("The dccp option matching is deprecated and scheduled to be removed in 2027, " + "please contact the netfilter-devel mailing list or update your " + "nftables rules\n"); + if (tb[NFTA_EXTHDR_DREG]) return &nft_exthdr_dccp_ops; break; diff --git a/net/netfilter/xt_dccp.c b/net/netfilter/xt_dccp.c index e5a13ecbe67a..9b8720c57d8d 100644 --- a/net/netfilter/xt_dccp.c +++ b/net/netfilter/xt_dccp.c @@ -159,6 +159,10 @@ static int __init dccp_mt_init(void) { int ret; + pr_warn_once("The DCCP match is deprecated and scheduled to be removed in 2027, " + "please contact the netfilter-devel mailing list or update your " + "iptables rules\n"); + /* doff is 8 bits, so the maximum option size is (4*256). Don't put * this in BSS since DaveM is worried about locked TLB's for kernel * BSS. */ -- 2.52.0