Skip to content

Commit

Permalink
Revert "netfilter: conntrack: tag conntracks picked up in local out h…
Browse files Browse the repository at this point in the history
…ook"

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>
  • Loading branch information
Florian Westphal committed Mar 8, 2022
1 parent a82c25c commit ee0a4dc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion include/net/netfilter/nf_conntrack.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 0 additions & 3 deletions net/netfilter/nf_conntrack_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit ee0a4dc

Please sign in to comment.