Home
last modified time | relevance | path

Searched refs:ao_info (Results 1 – 10 of 10) sorted by relevance

/linux-6.15/net/ipv4/
H A Dtcp_ao.c320 if (ao_info) { in tcp_ao_time_wait()
331 rcu_assign_pointer(tcptw->ao_info, ao_info); in tcp_ao_time_wait()
768 ao_info = rcu_dereference(tcp_sk(sk)->ao_info); in tcp_ao_prepare_reset()
769 if (!ao_info) in tcp_ao_prepare_reset()
788 ao_info = rcu_dereference(tcp_twsk(sk)->ao_info); in tcp_ao_prepare_reset()
791 ao_info = rcu_dereference(tcp_sk(sk)->ao_info); in tcp_ao_prepare_reset()
794 if (!ao_info) in tcp_ao_prepare_reset()
1103 ao_info = rcu_dereference_protected(tp->ao_info, in tcp_ao_connect_init()
1105 if (!ao_info) in tcp_ao_connect_init()
1743 rcu_assign_pointer(tcp_sk(sk)->ao_info, ao_info); in tcp_ao_add_cmd()
[all …]
H A Dtcp_output.c629 struct tcp_ao_info *ao_info; in process_tcp_ao_options() local
631 ao_info = rcu_dereference_check(tp->ao_info, in process_tcp_ao_options()
633 rnext_key = READ_ONCE(ao_info->rnext_key); in process_tcp_ao_options()
4091 struct tcp_ao_info *ao_info; in tcp_connect() local
4093 ao_info = rcu_dereference_check(tp->ao_info, in tcp_connect()
4095 if (ao_info) { in tcp_connect()
4100 needs_ao |= ao_info->ao_required; in tcp_connect()
4101 WARN_ON_ONCE(ao_info->ao_required && needs_md5); in tcp_connect()
4119 if (unlikely(rcu_dereference_protected(tp->ao_info, in tcp_connect()
H A Dtcp_minisocks.c61 ao = rcu_dereference(tcptw->ao_info); in twsk_rcv_nxt_update()
618 newtp->ao_info = NULL; in tcp_create_openreq_child()
H A Dtcp_ipv4.c1054 struct tcp_ao_info *ao_info; local
1058 ao_info = rcu_dereference(tcptw->ao_info);
1059 if (ao_info) {
1068 key.ao_key = tcp_ao_established_key(sk, ao_info,
1076 key.sne = READ_ONCE(ao_info->snd_sne);
1077 rnext_key = READ_ONCE(ao_info->rnext_key);
H A Dtcp_input.c3647 ao = rcu_dereference_protected(tp->ao_info, in tcp_snd_sne_update()
3675 ao = rcu_dereference_protected(tp->ao_info, in tcp_rcv_sne_update()
6653 ao = rcu_dereference_protected(tp->ao_info, in tcp_rcv_synsent_state_process()
H A Dtcp.c3982 if (rcu_dereference_protected(tcp_sk(sk)->ao_info, in do_tcp_setsockopt()
/linux-6.15/tools/testing/selftests/net/tcp_ao/
H A Dkey-management.c69 struct tcp_ao_info_opt ao_info = {}; in test_del_key() local
105 if (test_get_ao_info(sk, &ao_info)) in test_del_key()
148 ao_info.set_current = 1; in test_set_key()
152 ao_info.set_rnext = 1; in test_set_key()
159 if (test_get_ao_info(sk, &ao_info)) in test_set_key()
285 if (ao_info.set_current || ao_info.set_rnext) { in assert_no_current_rnext()
288 (ao_info.set_current) ? ao_info.current_key : -1, in assert_no_current_rnext()
289 (ao_info.set_rnext) ? ao_info.rnext : -1); in assert_no_current_rnext()
559 if (!ao_info.set_current) in verify_current_rnext()
566 tst, ao_info.current_key); in verify_current_rnext()
[all …]
/linux-6.15/include/linux/
H A Dtcp.h497 struct tcp_ao_info __rcu *ao_info; member
556 struct tcp_ao_info __rcu *ao_info; member
/linux-6.15/net/ipv6/
H A Dtcp_ipv6.c1170 struct tcp_ao_info *ao_info; local
1175 ao_info = rcu_dereference(tcptw->ao_info);
1176 if (ao_info) {
1183 key.ao_key = tcp_ao_established_key(sk, ao_info,
1192 rnext_key = READ_ONCE(ao_info->rnext_key);
1194 key.sne = READ_ONCE(ao_info->snd_sne);
/linux-6.15/include/net/
H A Dtcp.h2425 ao = rcu_dereference_protected(tp->ao_info, in tcp_get_current_key()
2873 struct tcp_ao_info *ao_info; in tcp_ao_required() local
2879 ao_info = rcu_dereference_check(tcp_sk(sk)->ao_info, in tcp_ao_required()
2881 if (!ao_info) in tcp_ao_required()
2885 if (ao_info->ao_required || ao_key) { in tcp_ao_required()
2888 atomic64_inc(&ao_info->counters.ao_required); in tcp_ao_required()