Home
last modified time | relevance | path

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

/linux/net/ipv4/
H A Dtcp_ao.c83 ao = rcu_dereference(tcp_twsk(sk)->ao_info); in tcp_ao_ignore_icmp()
95 ao = rcu_dereference(tcp_sk(sk)->ao_info); in tcp_ao_ignore_icmp()
203 ao = rcu_dereference_check(tcp_sk(sk)->ao_info, in __tcp_ao_do_lookup()
300 ao = rcu_dereference_protected(tcp_twsk(sk)->ao_info, 1); in tcp_ao_destroy_sock()
301 rcu_assign_pointer(tcp_twsk(sk)->ao_info, NULL); in tcp_ao_destroy_sock()
303 ao = rcu_dereference_protected(tcp_sk(sk)->ao_info, 1); in tcp_ao_destroy_sock()
304 rcu_assign_pointer(tcp_sk(sk)->ao_info, NULL); in tcp_ao_destroy_sock()
317 struct tcp_ao_info *ao_info = rcu_dereference_protected(tp->ao_info, 1); in tcp_ao_time_wait() local
319 if (ao_info) { in tcp_ao_time_wait()
324 hlist_for_each_entry_safe(key, n, &ao_info->head, node) { in tcp_ao_time_wait()
[all …]
H A Dtcp_output.c624 struct tcp_ao_info *ao_info; in process_tcp_ao_options() local
626 ao_info = rcu_dereference_check(tp->ao_info, in process_tcp_ao_options()
628 rnext_key = READ_ONCE(ao_info->rnext_key); in process_tcp_ao_options()
4085 struct tcp_ao_info *ao_info; in tcp_connect() local
4087 ao_info = rcu_dereference_check(tp->ao_info, in tcp_connect()
4089 if (ao_info) { in tcp_connect()
4094 needs_ao |= ao_info->ao_required; in tcp_connect()
4095 WARN_ON_ONCE(ao_info->ao_required && needs_md5); in tcp_connect()
4113 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()
609 newtp->ao_info = NULL; in tcp_create_openreq_child()
H A Dtcp_ipv4.c1042 struct tcp_ao_info *ao_info; local
1046 ao_info = rcu_dereference(tcptw->ao_info);
1047 if (ao_info) {
1056 key.ao_key = tcp_ao_established_key(ao_info, aoh->rnext_keyid, -1);
1063 key.sne = READ_ONCE(ao_info->snd_sne);
1064 rnext_key = READ_ONCE(ao_info->rnext_key);
H A Dtcp_input.c3610 ao = rcu_dereference_protected(tp->ao_info, in tcp_snd_sne_update()
3638 ao = rcu_dereference_protected(tp->ao_info, in tcp_rcv_sne_update()
6579 ao = rcu_dereference_protected(tp->ao_info, in tcp_rcv_synsent_state_process()
H A Dtcp.c3934 if (rcu_dereference_protected(tcp_sk(sk)->ao_info, in do_tcp_setsockopt()
/linux/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()
107 if (current_key >= 0 && ao_info.current_key != (uint8_t)current_key) in test_del_key()
109 if (rnext_key >= 0 && ao_info.rnext != (uint8_t)rnext_key) in test_del_key()
144 struct tcp_ao_info_opt ao_info = {}; in test_set_key() local
148 ao_info.set_current = 1; in test_set_key()
149 ao_info.current_key = (uint8_t)current_keyid; in test_set_key()
152 ao_info.set_rnext = 1; in test_set_key()
153 ao_info.rnext = (uint8_t)rnext_keyid; in test_set_key()
156 err = test_set_ao_info(sk, &ao_info); in test_set_key()
[all …]
/linux/include/linux/
H A Dtcp.h493 struct tcp_ao_info __rcu *ao_info; member
552 struct tcp_ao_info __rcu *ao_info; member
/linux/net/ipv6/
H A Dtcp_ipv6.c1159 struct tcp_ao_info *ao_info; local
1164 ao_info = rcu_dereference(tcptw->ao_info);
1165 if (ao_info) {
1172 key.ao_key = tcp_ao_established_key(ao_info,
1181 rnext_key = READ_ONCE(ao_info->rnext_key);
1183 key.sne = READ_ONCE(ao_info->snd_sne);
/linux/include/net/
H A Dtcp.h2353 ao = rcu_dereference_protected(tp->ao_info, in tcp_get_current_key()
2774 struct tcp_ao_info *ao_info; in tcp_ao_required() local
2780 ao_info = rcu_dereference_check(tcp_sk(sk)->ao_info, in tcp_ao_required()
2782 if (!ao_info) in tcp_ao_required()
2786 if (ao_info->ao_required || ao_key) { in tcp_ao_required()
2789 atomic64_inc(&ao_info->counters.ao_required); in tcp_ao_required()