/linux/net/ipv6/ |
H A D | tcp_ao.c | 148 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 D | tcp_ipv6.c | 883 tot_len += tcp_ao_len_aligned(key->ao_key); in tcp_v6_send_response() 938 (tcp_ao_len(key->ao_key) << 16) | in tcp_v6_send_response() 939 (key->ao_key->sndid << 8) | in tcp_v6_send_response() 942 tcp_ao_hash_hdr(AF_INET6, (char *)topt, key->ao_key, in tcp_v6_send_response() 1107 &key.ao_key, &key.traffic_key, in tcp_v6_send_reset() 1175 key.ao_key = tcp_ao_established_key(sk, ao_info, 1179 if (key.ao_key) { 1182 key.traffic_key = snd_other_key(key.ao_key); 1231 key.ao_key = tcp_ao_do_lookup(sk, l3index, 1234 if (unlikely(!key.ao_key)) { [all …]
|
/linux/net/ipv4/ |
H A D | tcp_minisocks.c | 621 struct tcp_ao_key *ao_key; in tcp_create_openreq_child() local 623 ao_key = treq->af_specific->ao_lookup(sk, req, tcp_rsk(req)->ao_keyid, -1); in tcp_create_openreq_child() 624 if (ao_key) in tcp_create_openreq_child() 625 newtp->tcp_header_len += tcp_ao_len_aligned(ao_key); in tcp_create_openreq_child()
|
H A D | tcp_ao.c | 680 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 D | tcp_ipv4.c | 995 (tcp_ao_len(key->ao_key) << 16) | in tcp_v4_send_ack() 996 (key->ao_key->sndid << 8) | in tcp_v4_send_ack() 998 arg.iov[0].iov_len += tcp_ao_len_aligned(key->ao_key); in tcp_v4_send_ack() 1002 key->ao_key, key->traffic_key, in tcp_v4_send_ack() 1058 key.ao_key = tcp_ao_established_key(sk, ao_info, 1062 if (key.ao_key) { 1065 key.traffic_key = snd_other_key(key.ao_key); 1118 key.ao_key = tcp_ao_do_lookup(sk, l3index, addr, AF_INET, 1120 if (unlikely(!key.ao_key)) { 1122 key.ao_key = tcp_ao_do_lookup(sk, l3index, addr, AF_INET, -1, -1); [all …]
|
H A D | tcp_output.c | 617 u8 maclen = tcp_ao_maclen(key->ao_key); in process_tcp_ao_options() 635 (tcp_ao_len(key->ao_key) << 16) | in process_tcp_ao_options() 636 (key->ao_key->sndid << 8) | in process_tcp_ao_options() 835 remaining -= tcp_ao_len_aligned(key->ao_key); in tcp_syn_options() 927 remaining -= tcp_ao_len_aligned(key->ao_key); in tcp_synack_options() 994 size += tcp_ao_len_aligned(key->ao_key); in tcp_established_options() 1429 err = tcp_ao_transmit_skb(sk, skb, key.ao_key, th, in __tcp_transmit_skb() 3772 struct tcp_ao_key *ao_key = NULL; in tcp_make_synack() local 3776 ao_key = tcp_sk(sk)->af_specific->ao_lookup(sk, req_to_sk(req), in tcp_make_synack() 3783 if (unlikely(!ao_key)) { in tcp_make_synack() [all …]
|
/linux/include/net/ |
H A D | tcp.h | 2345 struct tcp_ao_key *ao_key; member 2373 out->ao_key = READ_ONCE(ao->current_key); in tcp_get_current_key() 2818 struct tcp_ao_key *ao_key; in tcp_ao_required() local 2828 ao_key = tcp_ao_do_lookup(sk, l3index, saddr, family, -1, -1); in tcp_ao_required() 2829 if (ao_info->ao_required || ao_key) { in tcp_ao_required()
|