aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2021-07-22 10:48:34 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2021-08-01 12:00:51 +0200
commitf2e3778db7e13fd9a83c309dd8c9fbe69ba8efbe (patch)
tree6dd7423f111b5ca94e3d41397cb42e8e14837260 /net/netfilter
parentnetfilter: ipt_CLUSTERIP: use clusterip_net to store pernet warning (diff)
downloadlinux-dev-f2e3778db7e13fd9a83c309dd8c9fbe69ba8efbe.tar.xz
linux-dev-f2e3778db7e13fd9a83c309dd8c9fbe69ba8efbe.zip
netfilter: remove xt pernet data
clusterip is now handled via net_generic. NOTRACK is tiny compared to rest of xt_CT feature set, even the existing deprecation warning is bigger than the actual functionality. Just remove the warning, its not worth keeping/adding a net_generic one. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter')
-rw-r--r--net/netfilter/xt_CT.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/net/netfilter/xt_CT.c b/net/netfilter/xt_CT.c
index 12404d221026..0a913ce07425 100644
--- a/net/netfilter/xt_CT.c
+++ b/net/netfilter/xt_CT.c
@@ -351,21 +351,10 @@ notrack_tg(struct sk_buff *skb, const struct xt_action_param *par)
return XT_CONTINUE;
}
-static int notrack_chk(const struct xt_tgchk_param *par)
-{
- if (!par->net->xt.notrack_deprecated_warning) {
- pr_info("netfilter: NOTRACK target is deprecated, "
- "use CT instead or upgrade iptables\n");
- par->net->xt.notrack_deprecated_warning = true;
- }
- return 0;
-}
-
static struct xt_target notrack_tg_reg __read_mostly = {
.name = "NOTRACK",
.revision = 0,
.family = NFPROTO_UNSPEC,
- .checkentry = notrack_chk,
.target = notrack_tg,
.table = "raw",
.me = THIS_MODULE,