diff options
| author | Kuniyuki Iwashima <[email protected]> | 2023-11-29 02:29:20 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2023-11-30 04:16:19 +0000 |
| commit | 7577bc8249c3fc86096ef1b1c9a8f4b6232231e7 (patch) | |
| tree | b9fa0eb5cf41c8cc8a616352c1493294e96c79fb /net/unix/unix_bpf.c | |
| parent | tcp: Clean up goto labels in cookie_v[46]_check(). (diff) | |
| download | kernel-7577bc8249c3fc86096ef1b1c9a8f4b6232231e7.tar.gz kernel-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 <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions
