tcp: propagate tcp_tw_isn via an extra parameter to ->route_req()
authorEric Dumazet <edumazet@google.com>
Sun, 7 Apr 2024 09:33:21 +0000 (09:33 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 9 Apr 2024 09:47:40 +0000 (11:47 +0200)
commitb9e810405880c99baafd550ada7043e86465396e
tree566cd8d08635f68c3445deb14a04d51e66a1e9cd
parent1c25fe9a044d5334153a3585754b26553f8287b9
tcp: propagate tcp_tw_isn via an extra parameter to ->route_req()

tcp_v6_init_req() reads TCP_SKB_CB(skb)->tcp_tw_isn to find
out if the request socket is created by a SYN hitting a TIMEWAIT socket.

This has been buggy for a decade, lets directly pass the information
from tcp_conn_request().

This is a preparatory patch to make the following one easier to review.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/net/tcp.h
net/ipv4/tcp_input.c
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c
net/mptcp/subflow.c