]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Revert "netfilter: conntrack: tag conntracks picked up in local out hook"
authorFlorian Westphal <fw@strlen.de>
Tue, 8 Mar 2022 16:28:38 +0000 (17:28 +0100)
committerFlorian Westphal <fw@strlen.de>
Tue, 8 Mar 2022 16:28:38 +0000 (17:28 +0100)
This was a prerequisite for the ill-fated
"netfilter: nat: force port remap to prevent shadowing well-known ports".

As this has been reverted, this change can be backed out too.

Signed-off-by: Florian Westphal <fw@strlen.de>
include/net/netfilter/nf_conntrack.h
net/netfilter/nf_conntrack_core.c

index 8731d5bcb47ddc53716cbd713601dbef84e63e2b..b08b70989d2cf2f327de443f3abf95daa15ee957 100644 (file)
@@ -97,7 +97,6 @@ struct nf_conn {
        unsigned long status;
 
        u16             cpu;
-       u16             local_origin:1;
        possible_net_t ct_net;
 
 #if IS_ENABLED(CONFIG_NF_NAT)
index d6aa5b47031ebcb4a35abbd01f48fc46b746c8ab..bf1e17c678f13aa5c477763e8c6bf47766829fcd 100644 (file)
@@ -1748,9 +1748,6 @@ resolve_normal_ct(struct nf_conn *tmpl,
                        return 0;
                if (IS_ERR(h))
                        return PTR_ERR(h);
-
-               ct = nf_ct_tuplehash_to_ctrack(h);
-               ct->local_origin = state->hook == NF_INET_LOCAL_OUT;
        }
        ct = nf_ct_tuplehash_to_ctrack(h);