diff options
| author | Kuniyuki Iwashima <[email protected]> | 2023-11-29 02:29:22 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2023-11-30 04:16:28 +0000 |
| commit | 7b0f570f879adecf12329ecd60485e7e6b4783c1 (patch) | |
| tree | d1e879b3baad9ffd2b7fb29b62ff8f04d6c9df7b /tools/net/ynl/generated/devlink-user.c | |
| parent | tcp: Don't initialise tp->tsoffset in tcp_get_cookie_sock(). (diff) | |
| download | kernel-7b0f570f879adecf12329ecd60485e7e6b4783c1.tar.gz kernel-7b0f570f879adecf12329ecd60485e7e6b4783c1.zip | |
tcp: Move TCP-AO bits from cookie_v[46]_check() to tcp_ao_syncookie().
We initialise treq->af_specific in cookie_tcp_reqsk_alloc() so that
we can look up a key later in tcp_create_openreq_child().
Initially, that change was added for MD5 by commit ba5a4fdd63ae ("tcp:
make sure treq->af_specific is initialized"), but it has not been used
since commit d0f2b7a9ca0a ("tcp: Disable header prediction for MD5
flow.").
Now, treq->af_specific is used only by TCP-AO, so, we can move that
initialisation into tcp_ao_syncookie().
In addition to that, l3index in cookie_v[46]_check() is only used for
tcp_ao_syncookie(), so let's move it as well.
While at it, we move down tcp_ao_syncookie() in cookie_v4_check() so
that it will be called after security_inet_conn_request() to make
functions order consistent with cookie_v6_check().
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 'tools/net/ynl/generated/devlink-user.c')
0 files changed, 0 insertions, 0 deletions
