diff options
author | Xin Long <lucien.xin@gmail.com> | 2023-07-16 17:09:17 -0400 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-07-20 10:06:36 +0200 |
commit | 4914109a8e1e494c6aa9852f9e84ec77a5fc643f (patch) | |
tree | 05a768b1df8be3e69eb1e37ce3d63c2a9d93815b /include/net/netfilter/nf_conntrack_expect.h | |
parent | tcp: tcp_enter_quickack_mode() should be static (diff) | |
download | wireguard-linux-4914109a8e1e494c6aa9852f9e84ec77a5fc643f.tar.xz wireguard-linux-4914109a8e1e494c6aa9852f9e84ec77a5fc643f.zip |
netfilter: allow exp not to be removed in nf_ct_find_expectation
Currently nf_conntrack_in() calling nf_ct_find_expectation() will
remove the exp from the hash table. However, in some scenario, we
expect the exp not to be removed when the created ct will not be
confirmed, like in OVS and TC conntrack in the following patches.
This patch allows exp not to be removed by setting IPS_CONFIRMED
in the status of the tmpl.
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Aaron Conole <aconole@redhat.com>
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/net/netfilter/nf_conntrack_expect.h')
-rw-r--r-- | include/net/netfilter/nf_conntrack_expect.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/netfilter/nf_conntrack_expect.h b/include/net/netfilter/nf_conntrack_expect.h index cf0d81be5a96..165e7a03b8e9 100644 --- a/include/net/netfilter/nf_conntrack_expect.h +++ b/include/net/netfilter/nf_conntrack_expect.h @@ -100,7 +100,7 @@ nf_ct_expect_find_get(struct net *net, struct nf_conntrack_expect * nf_ct_find_expectation(struct net *net, const struct nf_conntrack_zone *zone, - const struct nf_conntrack_tuple *tuple); + const struct nf_conntrack_tuple *tuple, bool unlink); void nf_ct_unlink_expect_report(struct nf_conntrack_expect *exp, u32 portid, int report); |