aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
authorDmitry Safonov <[email protected]>2023-10-23 19:21:57 +0000
committerDavid S. Miller <[email protected]>2023-10-27 09:35:44 +0000
commit7c2ffaf21bd67f73d21560995ce17eaf5fc1d37f (patch)
treebc6301428bb2bb3954835a6a6c1e97d034f6acda /net/ipv4/tcp_ipv4.c
parentnet/tcp: Prevent TCP-MD5 with TCP-AO being set (diff)
downloadkernel-7c2ffaf21bd67f73d21560995ce17eaf5fc1d37f.tar.gz
kernel-7c2ffaf21bd67f73d21560995ce17eaf5fc1d37f.zip
net/tcp: Calculate TCP-AO traffic keys
Add traffic key calculation the way it's described in RFC5926. Wire it up to tcp_finish_connect() and cache the new keys straight away on already established TCP connections. Co-developed-by: Francesco Ruggeri <[email protected]> Signed-off-by: Francesco Ruggeri <[email protected]> Co-developed-by: Salam Noureddine <[email protected]> Signed-off-by: Salam Noureddine <[email protected]> Signed-off-by: Dmitry Safonov <[email protected]> Acked-by: David Ahern <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r--net/ipv4/tcp_ipv4.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index 698e58a3ccec..3c73b5829377 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -2288,6 +2288,7 @@ static const struct tcp_sock_af_ops tcp_sock_ipv4_specific = {
#ifdef CONFIG_TCP_AO
.ao_lookup = tcp_v4_ao_lookup,
.ao_parse = tcp_v4_parse_ao,
+ .ao_calc_key_sk = tcp_v4_ao_calc_key_sk,
#endif
};
#endif