Skip to contentSkip to conversation

netfilter: add deprecation warning for dccp support

PATCH New Florian Westphal 1 participant 1 message Mar 12

Subsystems (2)
lore
Share & tools
lore

Florian Westphal

author maintainer
#0 lore raw

PATCH 1/1 netfilter: add deprecation warning for dccp support

Add a deprecation warning for the xt_dccp match and the nft exthdr code.

---
 net/netfilter/nft_exthdr.c | 4 ++++
 net/netfilter/xt_dccp.c    | 4 ++++
 2 files changed, 8 insertions(+)
net/netfilter/nft_exthdr.c +4 -0
index 5f01269a49bd..1602e4266f34 100644
@@ -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;
net/netfilter/xt_dccp.c +4 -0
index e5a13ecbe67a..9b8720c57d8d 100644
@@ -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. */
Signature · 1 line
2.52.0