Home
last modified time | relevance | path

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

/linux/net/ipv6/
H A Dtcp_ipv6.c868 tot_len += tcp_ao_len_aligned(key->ao_key); in tcp_v6_send_response()
923 (tcp_ao_len(key->ao_key) << 16) | in tcp_v6_send_response()
924 (key->ao_key->sndid << 8) | in tcp_v6_send_response()
926 memset((u8 *)topt + tcp_ao_maclen(key->ao_key), TCPOPT_NOP, in tcp_v6_send_response()
927 tcp_ao_len_aligned(key->ao_key) - tcp_ao_len(key->ao_key)); in tcp_v6_send_response()
929 tcp_ao_hash_hdr(AF_INET6, (char *)topt, key->ao_key, in tcp_v6_send_response()
1100 &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);
[all …]
/linux/net/ipv4/
H A Dtcp_ipv4.c969 (tcp_ao_len(key->ao_key) << 16) | in tcp_v4_send_ack()
970 (key->ao_key->sndid << 8) | in tcp_v4_send_ack()
972 arg.iov[0].iov_len += tcp_ao_len_aligned(key->ao_key); in tcp_v4_send_ack()
974 memset((u8 *)&rep.opt[offset] + tcp_ao_maclen(key->ao_key), in tcp_v4_send_ack()
975 TCPOPT_NOP, tcp_ao_len_aligned(key->ao_key) - in tcp_v4_send_ack()
976 tcp_ao_len(key->ao_key)); in tcp_v4_send_ack()
979 key->ao_key, key->traffic_key, in tcp_v4_send_ack()
1045 key.ao_key = tcp_ao_established_key(sk, ao_info,
1049 if (key.ao_key) {
1052 key.traffic_key = snd_other_key(key.ao_key);
[all …]
H A Dtcp_minisocks.c649 struct tcp_ao_key *ao_key; in tcp_create_openreq_child() local
651 ao_key = treq->af_specific->ao_lookup(sk, req, tcp_rsk(req)->ao_keyid, -1); in tcp_create_openreq_child()
652 if (ao_key) in tcp_create_openreq_child()
653 newtp->tcp_header_len += tcp_ao_len_aligned(ao_key); in tcp_create_openreq_child()
H A Dtcp_ao.c748 int tcp_v4_ao_synack_hash(char *ao_hash, struct tcp_ao_key *ao_key, in tcp_v4_ao_synack_hash() argument
754 tcp_v4_ao_calc_key_rsk(ao_key, tkey_buf, req); in tcp_v4_ao_synack_hash()
756 return tcp_ao_hash_skb(AF_INET, ao_hash, ao_key, req_to_sk(req), skb, in tcp_v4_ao_synack_hash()
1120 struct tcp_ao_key *ao_key) in tcp_ao_cache_traffic_keys() argument
1122 u8 *traffic_key = snd_other_key(ao_key); in tcp_ao_cache_traffic_keys()
1125 ret = tcp_ao_calc_key_sk(ao_key, traffic_key, sk, in tcp_ao_cache_traffic_keys()
1130 traffic_key = rcv_other_key(ao_key); in tcp_ao_cache_traffic_keys()
1131 ret = tcp_ao_calc_key_sk(ao_key, traffic_key, sk, in tcp_ao_cache_traffic_keys()
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) | in process_tcp_ao_options()
622 (key->ao_key->sndid << 8) | in process_tcp_ao_options()
979 remaining -= tcp_ao_len_aligned(key->ao_key); in tcp_syn_options()
1087 remaining -= tcp_ao_len_aligned(key->ao_key); in tcp_synack_options()
1167 size += tcp_ao_len_aligned(key->ao_key); in tcp_established_options()
1673 tcp_ao_transmit_skb(sk, skb, key.ao_key, th, in __tcp_transmit_skb()
3996 struct tcp_ao_key *ao_key = NULL; in tcp_make_synack() local
4000 ao_key = tcp_sk(sk)->af_specific->ao_lookup(sk, req_to_sk(req), in tcp_make_synack()
4007 if (unlikely(!ao_key)) { in tcp_make_synack()
[all …]
/linux/include/net/
H A Dtcp_ao.h274 int tcp_v6_ao_synack_hash(char *ao_hash, struct tcp_ao_key *ao_key,
H A Dtcp.h2576 struct tcp_ao_key *ao_key; member
2604 out->ao_key = READ_ONCE(ao->current_key); in tcp_get_current_key()
3056 struct tcp_ao_key *ao_key; in tcp_ao_required() local
3066 ao_key = tcp_ao_do_lookup(sk, l3index, saddr, family, -1, -1); in tcp_ao_required()
3067 if (ao_info->ao_required || ao_key) { in tcp_ao_required()