/linux-6.6.21/net/ipv4/ |
D | tcp_fastopen.c | 120 struct tcp_fastopen_cookie *foc) in __tcp_fastopen_cookie_gen_cipher() argument 127 foc->val[0] = cpu_to_le64(siphash(&iph->saddr, in __tcp_fastopen_cookie_gen_cipher() 131 foc->len = TCP_FASTOPEN_COOKIE_SIZE; in __tcp_fastopen_cookie_gen_cipher() 138 foc->val[0] = cpu_to_le64(siphash(&ip6h->saddr, in __tcp_fastopen_cookie_gen_cipher() 142 foc->len = TCP_FASTOPEN_COOKIE_SIZE; in __tcp_fastopen_cookie_gen_cipher() 155 struct tcp_fastopen_cookie *foc) in tcp_fastopen_cookie_gen() argument 162 __tcp_fastopen_cookie_gen_cipher(req, syn, &ctx->key[0], foc); in tcp_fastopen_cookie_gen() 217 struct tcp_fastopen_cookie *foc = valid_foc; in tcp_fastopen_cookie_gen_check() local 226 __tcp_fastopen_cookie_gen_cipher(req, syn, &ctx->key[i], foc); in tcp_fastopen_cookie_gen_check() 227 if (tcp_fastopen_cookie_match(foc, orig)) { in tcp_fastopen_cookie_gen_check() [all …]
|
D | tcp_output.c | 688 struct tcp_fastopen_cookie *foc = opts->fastopen_cookie; in tcp_options_write() local 692 if (foc->exp) { in tcp_options_write() 693 len = TCPOLEN_EXP_FASTOPEN_BASE + foc->len; in tcp_options_write() 698 len = TCPOLEN_FASTOPEN_BASE + foc->len; in tcp_options_write() 703 memcpy(p, foc->val, foc->len); in tcp_options_write() 705 p[foc->len] = TCPOPT_NOP; in tcp_options_write() 706 p[foc->len + 1] = TCPOPT_NOP; in tcp_options_write() 854 struct tcp_fastopen_cookie *foc, in tcp_synack_options() argument 896 if (foc != NULL && foc->len >= 0) { in tcp_synack_options() 897 u32 need = foc->len; in tcp_synack_options() [all …]
|
D | tcp_input.c | 3981 bool syn, struct tcp_fastopen_cookie *foc, in tcp_parse_fastopen_option() argument 3985 if (!foc || !syn || len < 0 || (len & 1)) in tcp_parse_fastopen_option() 3990 memcpy(foc->val, cookie, len); in tcp_parse_fastopen_option() 3993 foc->len = len; in tcp_parse_fastopen_option() 3994 foc->exp = exp_opt; in tcp_parse_fastopen_option() 4066 struct tcp_fastopen_cookie *foc) in tcp_parse_options() argument 4155 ptr, th->syn, foc, false); in tcp_parse_options() 4167 ptr + 2, th->syn, foc, true); in tcp_parse_options() 6226 struct tcp_fastopen_cookie foc = { .len = -1 }; in tcp_rcv_synsent_state_process() local 6231 tcp_parse_options(sock_net(sk), skb, &tp->rx_opt, 0, &foc); in tcp_rcv_synsent_state_process() [all …]
|
D | tcp_ipv4.c | 1008 struct tcp_fastopen_cookie *foc, in tcp_v4_send_synack() argument 1022 skb = tcp_make_synack(sk, dst, req, foc, synack_type, syn_skb); in tcp_v4_send_synack()
|
/linux-6.6.21/net/mptcp/ |
D | subflow.c | 311 struct tcp_fastopen_cookie *foc, in subflow_prep_synack() argument 318 if (foc && foc->len > -1) in subflow_prep_synack() 328 struct tcp_fastopen_cookie *foc, in subflow_v4_send_synack() argument 332 subflow_prep_synack(sk, req, foc, synack_type); in subflow_v4_send_synack() 334 return tcp_request_sock_ipv4_ops.send_synack(sk, dst, fl, req, foc, in subflow_v4_send_synack() 342 struct tcp_fastopen_cookie *foc, in subflow_v6_send_synack() argument 346 subflow_prep_synack(sk, req, foc, synack_type); in subflow_v6_send_synack() 348 return tcp_request_sock_ipv6_ops.send_synack(sk, dst, fl, req, foc, in subflow_v6_send_synack()
|
/linux-6.6.21/include/net/ |
D | tcp.h | 431 int estab, struct tcp_fastopen_cookie *foc); 473 struct tcp_fastopen_cookie *foc, 1812 struct tcp_fastopen_cookie *foc, 1848 bool tcp_fastopen_cookie_match(const struct tcp_fastopen_cookie *foc, in tcp_fastopen_cookie_match() argument 1852 orig->len == foc->len && in tcp_fastopen_cookie_match() 1853 !memcmp(orig->val, foc->val, foc->len)) in tcp_fastopen_cookie_match() 2154 struct tcp_fastopen_cookie *foc,
|
/linux-6.6.21/net/ipv6/ |
D | tcp_ipv6.c | 527 struct tcp_fastopen_cookie *foc, in tcp_v6_send_synack() argument 544 skb = tcp_make_synack(sk, dst, req, foc, synack_type, syn_skb); in tcp_v6_send_synack()
|