diff options
author | Antoine Tenart <atenart@kernel.org> | 2023-05-23 18:14:52 +0200 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-05-25 13:20:45 +0200 |
commit | c0a8966e2bc7d31f77a7246947ebc09c1ff06066 (patch) | |
tree | 52fd9e64f7a2566975c59c826c066f4b379d3ec2 /certs | |
parent | 4fbfde4e272065943cbcf2d016f0679456cb4f75 (diff) |
net: ipv4: use consistent txhash in TIME_WAIT and SYN_RECV
When using IPv4/TCP, skb->hash comes from sk->sk_txhash except in
TIME_WAIT and SYN_RECV where it's not set in the reply skb from
ip_send_unicast_reply. Those packets will have a mismatched hash with
others from the same flow as their hashes will be 0. IPv6 does not have
the same issue as the hash is set from the socket txhash in those cases.
This commits sets the hash in the reply skb from ip_send_unicast_reply,
which makes the IPv4 code behaving like IPv6.
Signed-off-by: Antoine Tenart <atenart@kernel.org>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions