Home
last modified time | relevance | path

Searched refs:foc (Results 1 – 6 of 6) sorted by relevance

/linux-4.1.27/net/ipv4/
Dtcp_fastopen.c76 struct tcp_fastopen_cookie *foc) in __tcp_fastopen_cookie_gen() argument
84 crypto_cipher_encrypt_one(ctx->tfm, foc->val, path); in __tcp_fastopen_cookie_gen()
85 foc->len = TCP_FASTOPEN_COOKIE_SIZE; in __tcp_fastopen_cookie_gen()
100 struct tcp_fastopen_cookie *foc) in tcp_fastopen_cookie_gen() argument
106 return __tcp_fastopen_cookie_gen(path, foc); in tcp_fastopen_cookie_gen()
120 return __tcp_fastopen_cookie_gen(buf, foc); in tcp_fastopen_cookie_gen()
266 struct tcp_fastopen_cookie *foc, in tcp_try_fastopen() argument
272 if (foc->len == 0) /* Client requests a cookie */ in tcp_try_fastopen()
276 (syn_data || foc->len >= 0) && in tcp_try_fastopen()
278 foc->len = -1; in tcp_try_fastopen()
[all …]
Dtcp_output.c520 struct tcp_fastopen_cookie *foc = opts->fastopen_cookie; in tcp_options_write() local
524 if (foc->exp) { in tcp_options_write()
525 len = TCPOLEN_EXP_FASTOPEN_BASE + foc->len; in tcp_options_write()
530 len = TCPOLEN_FASTOPEN_BASE + foc->len; in tcp_options_write()
535 memcpy(p, foc->val, foc->len); in tcp_options_write()
537 p[foc->len] = TCPOPT_NOP; in tcp_options_write()
538 p[foc->len + 1] = TCPOPT_NOP; in tcp_options_write()
618 struct tcp_fastopen_cookie *foc) in tcp_synack_options() argument
657 if (foc != NULL && foc->len >= 0) { in tcp_synack_options()
658 u32 need = foc->len; in tcp_synack_options()
[all …]
Dtcp_input.c3628 bool syn, struct tcp_fastopen_cookie *foc, in tcp_parse_fastopen_option() argument
3632 if (!foc || !syn || len < 0 || (len & 1)) in tcp_parse_fastopen_option()
3637 memcpy(foc->val, cookie, len); in tcp_parse_fastopen_option()
3640 foc->len = len; in tcp_parse_fastopen_option()
3641 foc->exp = exp_opt; in tcp_parse_fastopen_option()
3650 struct tcp_fastopen_cookie *foc) in tcp_parse_options() argument
3736 ptr, th->syn, foc, false); in tcp_parse_options()
3748 ptr + 2, th->syn, foc, true); in tcp_parse_options()
5474 struct tcp_fastopen_cookie foc = { .len = -1 }; in tcp_rcv_synsent_state_process() local
5477 tcp_parse_options(skb, &tp->rx_opt, 0, &foc); in tcp_rcv_synsent_state_process()
[all …]
Dtcp_ipv4.c828 struct tcp_fastopen_cookie *foc) in tcp_v4_send_synack() argument
839 skb = tcp_make_synack(sk, dst, req, foc); in tcp_v4_send_synack()
/linux-4.1.27/include/net/
Dtcp.h443 int estab, struct tcp_fastopen_cookie *foc);
466 struct tcp_fastopen_cookie *foc);
1360 struct tcp_fastopen_cookie *foc,
1654 u16 queue_mapping, struct tcp_fastopen_cookie *foc);
/linux-4.1.27/net/ipv6/
Dtcp_ipv6.c445 struct tcp_fastopen_cookie *foc) in tcp_v6_send_synack() argument
457 skb = tcp_make_synack(sk, dst, req, foc); in tcp_v6_send_synack()