Searched refs:foc (Results 1 – 6 of 6) sorted by relevance
/Linux-v4.19/net/ipv4/ |
D | tcp_fastopen.c | 115 struct tcp_fastopen_cookie *foc) in __tcp_fastopen_cookie_gen() argument 127 crypto_cipher_encrypt_one(ctx->tfm, foc->val, path); in __tcp_fastopen_cookie_gen() 128 foc->len = TCP_FASTOPEN_COOKIE_SIZE; in __tcp_fastopen_cookie_gen() 144 struct tcp_fastopen_cookie *foc) in tcp_fastopen_cookie_gen() argument 150 return __tcp_fastopen_cookie_gen(sk, path, foc); in tcp_fastopen_cookie_gen() 164 return __tcp_fastopen_cookie_gen(sk, buf, foc); in tcp_fastopen_cookie_gen() 327 struct tcp_fastopen_cookie *foc, in tcp_try_fastopen() argument 335 if (foc->len == 0) /* Client requests a cookie */ in tcp_try_fastopen() 339 (syn_data || foc->len >= 0) && in tcp_try_fastopen() 341 foc->len = -1; in tcp_try_fastopen() [all …]
|
D | tcp_output.c | 529 struct tcp_fastopen_cookie *foc = opts->fastopen_cookie; in tcp_options_write() local 533 if (foc->exp) { in tcp_options_write() 534 len = TCPOLEN_EXP_FASTOPEN_BASE + foc->len; in tcp_options_write() 539 len = TCPOLEN_FASTOPEN_BASE + foc->len; in tcp_options_write() 544 memcpy(p, foc->val, foc->len); in tcp_options_write() 546 p[foc->len] = TCPOPT_NOP; in tcp_options_write() 547 p[foc->len + 1] = TCPOPT_NOP; in tcp_options_write() 665 struct tcp_fastopen_cookie *foc) in tcp_synack_options() argument 704 if (foc != NULL && foc->len >= 0) { in tcp_synack_options() 705 u32 need = foc->len; in tcp_synack_options() [all …]
|
D | tcp_input.c | 3746 bool syn, struct tcp_fastopen_cookie *foc, in tcp_parse_fastopen_option() argument 3750 if (!foc || !syn || len < 0 || (len & 1)) in tcp_parse_fastopen_option() 3755 memcpy(foc->val, cookie, len); in tcp_parse_fastopen_option() 3758 foc->len = len; in tcp_parse_fastopen_option() 3759 foc->exp = exp_opt; in tcp_parse_fastopen_option() 3784 struct tcp_fastopen_cookie *foc) in tcp_parse_options() argument 3871 ptr, th->syn, foc, false); in tcp_parse_options() 3883 ptr + 2, th->syn, foc, true); in tcp_parse_options() 5761 struct tcp_fastopen_cookie foc = { .len = -1 }; in tcp_rcv_synsent_state_process() local 5765 tcp_parse_options(sock_net(sk), skb, &tp->rx_opt, 0, &foc); in tcp_rcv_synsent_state_process() [all …]
|
D | tcp_ipv4.c | 929 struct tcp_fastopen_cookie *foc, in tcp_v4_send_synack() argument 941 skb = tcp_make_synack(sk, dst, req, foc, synack_type); in tcp_v4_send_synack()
|
/Linux-v4.19/include/net/ |
D | tcp.h | 413 int estab, struct tcp_fastopen_cookie *foc); 443 struct tcp_fastopen_cookie *foc, 1588 struct tcp_fastopen_cookie *foc, 1900 struct tcp_fastopen_cookie *foc,
|
/Linux-v4.19/net/ipv6/ |
D | tcp_ipv6.c | 476 struct tcp_fastopen_cookie *foc, in tcp_v6_send_synack() argument 491 skb = tcp_make_synack(sk, dst, req, foc, synack_type); in tcp_v6_send_synack()
|