]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: tcp: fix flowlabels reflection for RST packets
authorEric Dumazet <edumazet@google.com>
Wed, 10 Jul 2019 13:40:09 +0000 (06:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Jul 2019 21:43:25 +0000 (14:43 -0700)
commit817cb054c2f66697c49cb072f2a35962c92ac812
tree8ff15b41b727c9e05530b2128fe1ec50459fab01
parent3379d9d59d85841a790f20e6676a34a73c8cc792
ipv6: tcp: fix flowlabels reflection for RST packets

In d93bd92f1701 ("ipv6: tcp: enable flowlabel reflection in some RST packets")
and 9ee93906c95b ("ipv6: tcp: send consistent flowlabel in TIME_WAIT state")
we took care of IPv6 flowlabel reflections for two cases.

This patch takes care of the remaining case, when the RST packet
is sent on behalf of a 'full' socket.

In Marek use case, this was a socket in TCP_CLOSE state.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Marek Majkowski <marek@cloudflare.com>
Tested-by: Marek Majkowski <marek@cloudflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/tcp_ipv6.c