| /linux/net/ipv4/ |
| H A D | tcp_fastopen.c | 208 struct tcp_fastopen_cookie *foc) in __tcp_fastopen_cookie_gen_cipher() argument 215 foc->val[0] = cpu_to_le64(siphash(&iph->saddr, in __tcp_fastopen_cookie_gen_cipher() 219 foc->len = TCP_FASTOPEN_COOKIE_SIZE; in __tcp_fastopen_cookie_gen_cipher() 226 foc->val[0] = cpu_to_le64(siphash(&ip6h->saddr, in __tcp_fastopen_cookie_gen_cipher() 230 foc->len = TCP_FASTOPEN_COOKIE_SIZE; in __tcp_fastopen_cookie_gen_cipher() 243 struct tcp_fastopen_cookie *foc) in tcp_fastopen_cookie_gen() argument 250 __tcp_fastopen_cookie_gen_cipher(req, syn, &ctx->key[0], foc); in tcp_fastopen_cookie_gen() 305 struct tcp_fastopen_cookie *foc = valid_foc; in tcp_fastopen_cookie_gen_check() local 314 __tcp_fastopen_cookie_gen_cipher(req, syn, &ctx->key[i], foc); in tcp_fastopen_cookie_gen_check() 315 if (tcp_fastopen_cookie_match(foc, orig)) { in tcp_fastopen_cookie_gen_check() [all …]
|
| H A D | tcp_output.c | 803 struct tcp_fastopen_cookie *foc = opts->fastopen_cookie; in tcp_options_write() 807 if (foc->exp) { in smc_set_option() 808 len = TCPOLEN_EXP_FASTOPEN_BASE + foc->len; in smc_set_option() 813 len = TCPOLEN_FASTOPEN_BASE + foc->len; in smc_set_option() 818 memcpy(p, foc->val, foc->len); in smc_set_option() 820 p[foc->len] = TCPOPT_NOP; in smc_set_option() 821 p[foc->len + 1] = TCPOPT_NOP; in smc_set_option() 1063 struct tcp_fastopen_cookie *foc, in tcp_synack_options() 1115 if (foc ! in tcp_synack_options() 778 struct tcp_fastopen_cookie *foc = opts->fastopen_cookie; tcp_options_write() local 1038 tcp_synack_options(const struct sock * sk,struct request_sock * req,unsigned int mss,struct sk_buff * skb,struct tcp_out_options * opts,const struct tcp_key * key,struct tcp_fastopen_cookie * foc,enum tcp_synack_type synack_type,struct sk_buff * syn_skb) tcp_synack_options() argument 3897 tcp_make_synack(const struct sock * sk,struct dst_entry * dst,struct request_sock * req,struct tcp_fastopen_cookie * foc,enum tcp_synack_type synack_type,struct sk_buff * syn_skb) tcp_make_synack() argument [all...] |
| H A D | tcp_input.c | 4450 bool syn, struct tcp_fastopen_cookie *foc, in tcp_parse_fastopen_option() argument 4454 if (!foc || !syn || len < 0 || (len & 1)) in tcp_parse_fastopen_option() 4459 memcpy(foc->val, cookie, len); in tcp_parse_fastopen_option() 4462 foc->len = len; in tcp_parse_fastopen_option() 4463 foc->exp = exp_opt; in tcp_parse_fastopen_option() 4534 struct tcp_fastopen_cookie *foc) in tcp_parse_options() argument 4631 ptr, th->syn, foc, false); in tcp_parse_options() 4649 ptr + 2, th->syn, foc, true); in tcp_parse_options() 6879 struct tcp_fastopen_cookie foc = { .len = -1 }; in tcp_rcv_synsent_state_process() local 6884 tcp_parse_options(sock_net(sk), skb, &tp->rx_opt, 0, &foc); in tcp_rcv_synsent_state_process() [all …]
|
| H A D | tcp_ipv4.c | 1186 struct tcp_fastopen_cookie *foc, argument 1200 skb = tcp_make_synack(sk, dst, req, foc, synack_type, syn_skb);
|
| /linux/net/mptcp/ |
| H A D | subflow.c | 344 struct tcp_fastopen_cookie *foc, in subflow_prep_synack() argument 351 if (foc && foc->len > -1) in subflow_prep_synack() 361 struct tcp_fastopen_cookie *foc, in subflow_v4_send_synack() argument 365 subflow_prep_synack(sk, req, foc, synack_type); in subflow_v4_send_synack() 367 return tcp_request_sock_ipv4_ops.send_synack(sk, dst, fl, req, foc, in subflow_v4_send_synack() 375 struct tcp_fastopen_cookie *foc, in subflow_v6_send_synack() argument 379 subflow_prep_synack(sk, req, foc, synack_type); in subflow_v6_send_synack() 381 return tcp_request_sock_ipv6_ops.send_synack(sk, dst, fl, req, foc, in subflow_v6_send_synack()
|
| /linux/include/net/ |
| H A D | tcp.h | 517 int estab, struct tcp_fastopen_cookie *foc); 559 struct tcp_fastopen_cookie *foc, 2093 struct tcp_fastopen_cookie *foc, 2129 bool tcp_fastopen_cookie_match(const struct tcp_fastopen_cookie *foc, 2133 orig->len == foc->len && in tcp_write_queue_tail() 2134 !memcmp(orig->val, foc->val, foc->len)) 2469 struct tcp_fastopen_cookie *foc, in tcp_get_current_key() 2071 tcp_fastopen_cookie_match(const struct tcp_fastopen_cookie * foc,const struct tcp_fastopen_cookie * orig) tcp_fastopen_cookie_match() argument
|
| /linux/net/ipv6/ |
| H A D | tcp_ipv6.c | 529 struct tcp_fastopen_cookie *foc, in tcp_v6_send_synack() 546 skb = tcp_make_synack(sk, dst, req, foc, synack_type, syn_skb); in tcp_v6_send_synack() 528 tcp_v6_send_synack(const struct sock * sk,struct dst_entry * dst,struct flowi * fl,struct request_sock * req,struct tcp_fastopen_cookie * foc,enum tcp_synack_type synack_type,struct sk_buff * syn_skb) tcp_v6_send_synack() argument
|