]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_conntrack_tcp: preserve liberal flag in tcp options
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 21 Mar 2022 10:38:32 +0000 (11:38 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 24 Mar 2022 14:17:18 +0000 (15:17 +0100)
commite301af78d561f3c3e5c7120e33c427f5003ea588
tree5001723634f0f749b758c4f25ca7fb44672f5a19
parentea0bcc2f7b108a1dc2626c119483d90670b221e5
netfilter: nf_conntrack_tcp: preserve liberal flag in tcp options

Do not reset IP_CT_TCP_FLAG_BE_LIBERAL flag in out-of-sync scenarios
coming before the TCP window tracking, otherwise such connections will
fail in the window check.

Update tcp_options() to leave this flag in place and add a new helper
function to reset the tcp window state.

Based on patch from Sven Auhagen.

Fixes: d10625b7569e ("netfilter: nf_ct_tcp: improve out-of-sync situation in TCP tracking")
Tested-by: Sven Auhagen <sven.auhagen@voleatech.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_proto_tcp.c