]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_flow_offload: skip tcp rst and fin packets
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 13 Aug 2019 15:41:13 +0000 (17:41 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 14 Aug 2019 09:09:07 +0000 (11:09 +0200)
commit425b6977774d2f4bb0c9a453aeb77faa48273a76
tree756b4324cd796f4077908b4b903cf984f7e8fc70
parent0037db0314d26224da7c91977764b7a056f7addf
netfilter: nft_flow_offload: skip tcp rst and fin packets

TCP rst and fin packets do not qualify to place a flow into the
flowtable. Most likely there will be no more packets after connection
closure. Without this patch, this flow entry expires and connection
tracking picks up the entry in ESTABLISHED state using the fixup
timeout, which makes this look inconsistent to the user for a connection
that is actually already closed.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_flow_offload.c