public inbox for netfilter-devel@vger.kernel.org
 help / color / mirror / Atom feed
From: Florian Westphal <fw@strlen.de>
To: <netfilter-devel@vger.kernel.org>
Cc: Florian Westphal <fw@strlen.de>
Subject: [PATCH nf-next] netfilter: osf: add deprecation notices
Date: Mon, 23 Mar 2026 09:56:26 +0100	[thread overview]
Message-ID: <20260323085629.43927-1-fw@strlen.de> (raw)

The p0f fingerprints haven't been updated in years, it doesn't look like
this feature is still in a useful/working state.

Add deprecation notices.  We can remove them again if people still use this
feature.

Signed-off-by: Florian Westphal <fw@strlen.de>
---
 net/netfilter/nfnetlink_osf.c | 3 +++
 net/netfilter/nft_osf.c       | 3 +++
 net/netfilter/xt_osf.c        | 3 +++
 3 files changed, 9 insertions(+)

diff --git a/net/netfilter/nfnetlink_osf.c b/net/netfilter/nfnetlink_osf.c
index d64ce21c7b55..ca943ea71d1a 100644
--- a/net/netfilter/nfnetlink_osf.c
+++ b/net/netfilter/nfnetlink_osf.c
@@ -423,6 +423,9 @@ static int __init nfnl_osf_init(void)
 	int err = -EINVAL;
 	int i;
 
+	pr_warn_once("The osf nfnetlink helper is deprecated and scheduled to be removed in 2027.\n"
+		     "Please contact the netfilter-devel mailing list\n");
+
 	for (i = 0; i < ARRAY_SIZE(nf_osf_fingers); ++i)
 		INIT_LIST_HEAD(&nf_osf_fingers[i]);
 
diff --git a/net/netfilter/nft_osf.c b/net/netfilter/nft_osf.c
index 18003433476c..38d3260a954c 100644
--- a/net/netfilter/nft_osf.c
+++ b/net/netfilter/nft_osf.c
@@ -147,6 +147,9 @@ static struct nft_expr_type nft_osf_type __read_mostly = {
 
 static int __init nft_osf_module_init(void)
 {
+	pr_warn_once("The osf expression is deprecated and scheduled to be removed in 2027.\n"
+		     "Please contact the netfilter-devel mailing list or update your nftables rules\n");
+
 	return nft_register_expr(&nft_osf_type);
 }
 
diff --git a/net/netfilter/xt_osf.c b/net/netfilter/xt_osf.c
index dc9485854002..0d8ee8542e16 100644
--- a/net/netfilter/xt_osf.c
+++ b/net/netfilter/xt_osf.c
@@ -48,6 +48,9 @@ static int __init xt_osf_init(void)
 {
 	int err;
 
+	pr_warn_once("The osf match is deprecated and scheduled to be removed in 2027.\n"
+		     "Please contact the netfilter-devel mailing list or update your iptables rules\n");
+
 	err = xt_register_match(&xt_osf_match);
 	if (err) {
 		pr_err("Failed to register OS fingerprint "
-- 
2.53.0


             reply	other threads:[~2026-03-23  8:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-23  8:56 Florian Westphal [this message]
2026-03-23 10:34 ` [PATCH nf-next] netfilter: osf: add deprecation notices Fernando Fernandez Mancera

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260323085629.43927-1-fw@strlen.de \
    --to=fw@strlen.de \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox