diff options
author | 2023-11-28 18:29:20 -0800 | |
---|---|---|
committer | 2023-11-29 20:16:19 -0800 | |
commit | 7577bc8249c3fc86096ef1b1c9a8f4b6232231e7 (patch) | |
tree | b9fa0eb5cf41c8cc8a616352c1493294e96c79fb /net/ipv4/tcp_ao.c | |
parent | tcp: Clean up goto labels in cookie_v[46]_check(). (diff) | |
download | wireguard-linux-7577bc8249c3fc86096ef1b1c9a8f4b6232231e7.tar.xz wireguard-linux-7577bc8249c3fc86096ef1b1c9a8f4b6232231e7.zip |
tcp: Don't pass cookie to __cookie_v[46]_check().
tcp_hdr(skb) and SYN Cookie are passed to __cookie_v[46]_check(), but
none of the callers passes cookie other than ntohl(th->ack_seq) - 1.
Let's fetch it in __cookie_v[46]_check() instead of passing the cookie
over and over.
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20231129022924.96156-5-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv4/tcp_ao.c')
0 files changed, 0 insertions, 0 deletions