Home
last modified time | relevance | path

Searched refs:ao_key (Results 1 – 7 of 7) sorted by relevance

/linux/net/ipv6/
H A Dtcp_ao.c148 int tcp_v6_ao_synack_hash(char *ao_hash, struct tcp_ao_key *ao_key, in tcp_v6_ao_synack_hash() argument
155 hash_buf = kmalloc(tcp_ao_digest_size(ao_key), GFP_ATOMIC); in tcp_v6_ao_synack_hash()
159 err = tcp_v6_ao_calc_key_rsk(ao_key, hash_buf, req); in tcp_v6_ao_synack_hash()
163 err = tcp_ao_hash_skb(AF_INET6, ao_hash, ao_key, req_to_sk(req), skb, in tcp_v6_ao_synack_hash()
H A Dtcp_ipv6.c843 tot_len += tcp_ao_len_aligned(key->ao_key); in tcp_v6_send_response()
898 (tcp_ao_len(key->ao_key) << 16) | in tcp_v6_send_response()
899 (key->ao_key->sndid << 8) | in tcp_v6_send_response()
902 tcp_ao_hash_hdr(AF_INET6, (char *)topt, key->ao_key, in tcp_v6_send_response()
1066 &key.ao_key, &key.traffic_key, in tcp_v6_send_reset()
1141 key.ao_key = tcp_ao_established_key(sk, ao_info,
1145 if (key.ao_key) {
1148 key.traffic_key = snd_other_key(key.ao_key);
1197 key.ao_key = tcp_ao_do_lookup(sk, l3index,
1200 if (unlikely(!key.ao_key)) {
[all …]
/linux/net/ipv4/
H A Dtcp_minisocks.c651 struct tcp_ao_key *ao_key; in tcp_create_openreq_child() local
653 ao_key = treq->af_specific->ao_lookup(sk, req, tcp_rsk(req)->ao_keyid, -1); in tcp_create_openreq_child()
654 if (ao_key) in tcp_create_openreq_child()
655 newtp->tcp_header_len += tcp_ao_len_aligned(ao_key); in tcp_create_openreq_child()
H A Dtcp_ao.c680 int tcp_v4_ao_synack_hash(char *ao_hash, struct tcp_ao_key *ao_key, in tcp_v4_ao_synack_hash() argument
687 hash_buf = kmalloc(tcp_ao_digest_size(ao_key), GFP_ATOMIC); in tcp_v4_ao_synack_hash()
691 err = tcp_v4_ao_calc_key_rsk(ao_key, hash_buf, req); in tcp_v4_ao_synack_hash()
695 err = tcp_ao_hash_skb(AF_INET, ao_hash, ao_key, req_to_sk(req), skb, in tcp_v4_ao_synack_hash()
1078 struct tcp_ao_key *ao_key) in tcp_ao_cache_traffic_keys() argument
1080 u8 *traffic_key = snd_other_key(ao_key); in tcp_ao_cache_traffic_keys()
1083 ret = tcp_ao_calc_key_sk(ao_key, traffic_key, sk, in tcp_ao_cache_traffic_keys()
1088 traffic_key = rcv_other_key(ao_key); in tcp_ao_cache_traffic_keys()
1089 ret = tcp_ao_calc_key_sk(ao_key, traffic_key, sk, in tcp_ao_cache_traffic_keys()
H A Dtcp_ipv4.c992 (tcp_ao_len(key->ao_key) << 16) | in tcp_v4_send_ack()
993 (key->ao_key->sndid << 8) | in tcp_v4_send_ack()
995 arg.iov[0].iov_len += tcp_ao_len_aligned(key->ao_key); in tcp_v4_send_ack()
999 key->ao_key, key->traffic_key, in tcp_v4_send_ack()
1065 key.ao_key = tcp_ao_established_key(sk, ao_info,
1069 if (key.ao_key) {
1072 key.traffic_key = snd_other_key(key.ao_key);
1125 key.ao_key = tcp_ao_do_lookup(sk, l3index, addr, AF_INET,
1127 if (unlikely(!key.ao_key)) {
1129 key.ao_key = tcp_ao_do_lookup(sk, l3index, addr, AF_INET, -1, -1);
[all …]
H A Dtcp_output.c603 u8 maclen = tcp_ao_maclen(key->ao_key); in process_tcp_ao_options()
621 (tcp_ao_len(key->ao_key) << 16) |
622 (key->ao_key->sndid << 8) |
977 remaining -= tcp_ao_len_aligned(key->ao_key); in tcp_syn_options()
1084 remaining -= tcp_ao_len_aligned(key->ao_key); in tcp_synack_options()
1164 size += tcp_ao_len_aligned(key->ao_key); in tcp_established_options()
1651 err = tcp_ao_transmit_skb(sk, skb, key.ao_key, th, in tcp_transmit_skb()
3998 struct tcp_ao_key *ao_key = NULL; in tcp_make_synack()
4002 ao_key = tcp_sk(sk)->af_specific->ao_lookup(sk, req_to_sk(req), in tcp_make_synack()
4009 if (unlikely(!ao_key)) { in tcp_make_synack()
3959 struct tcp_ao_key *ao_key = NULL; tcp_make_synack() local
[all...]
/linux/include/net/
H A Dtcp.h2504 struct tcp_ao_key *ao_key; member
2532 out->ao_key = READ_ONCE(ao->current_key); in tcp_get_current_key()
2975 struct tcp_ao_key *ao_key; in tcp_ao_required() local
2985 ao_key = tcp_ao_do_lookup(sk, l3index, saddr, family, -1, -1); in tcp_ao_required()
2986 if (ao_info->ao_required || ao_key) { in tcp_ao_required()