diff options
author | Dmitry Safonov <dima@arista.com> | 2023-10-23 20:21:57 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-10-27 10:35:44 +0100 |
commit | 7c2ffaf21bd67f73d21560995ce17eaf5fc1d37f (patch) | |
tree | bc6301428bb2bb3954835a6a6c1e97d034f6acda /net/ipv6/tcp_ipv6.c | |
parent | 0aadc73995d08f6b0dc061c14a564ffa46f5914e (diff) | |
download | linux-7c2ffaf21bd67f73d21560995ce17eaf5fc1d37f.tar.gz linux-7c2ffaf21bd67f73d21560995ce17eaf5fc1d37f.tar.bz2 linux-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 <fruggeri@arista.com>
Signed-off-by: Francesco Ruggeri <fruggeri@arista.com>
Co-developed-by: Salam Noureddine <noureddine@arista.com>
Signed-off-by: Salam Noureddine <noureddine@arista.com>
Signed-off-by: Dmitry Safonov <dima@arista.com>
Acked-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 70a3842f47fa..074e16fe00e0 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c @@ -1921,6 +1921,7 @@ static const struct tcp_sock_af_ops tcp_sock_ipv6_specific = { #ifdef CONFIG_TCP_AO .ao_lookup = tcp_v6_ao_lookup, .ao_parse = tcp_v6_parse_ao, + .ao_calc_key_sk = tcp_v6_ao_calc_key_sk, #endif }; #endif |