Home
last modified time | relevance | path

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

/linux-4.4.14/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()
258 struct tcp_fastopen_cookie *foc, in tcp_try_fastopen() argument
265 if (foc->len == 0) /* Client requests a cookie */ in tcp_try_fastopen()
269 (syn_data || foc->len >= 0) && in tcp_try_fastopen()
271 foc->len = -1; in tcp_try_fastopen()
[all …]
Dtcp_output.c518 struct tcp_fastopen_cookie *foc = opts->fastopen_cookie; in tcp_options_write() local
522 if (foc->exp) { in tcp_options_write()
523 len = TCPOLEN_EXP_FASTOPEN_BASE + foc->len; in tcp_options_write()
528 len = TCPOLEN_FASTOPEN_BASE + foc->len; in tcp_options_write()
533 memcpy(p, foc->val, foc->len); in tcp_options_write()
535 p[foc->len] = TCPOPT_NOP; in tcp_options_write()
536 p[foc->len + 1] = TCPOPT_NOP; in tcp_options_write()
615 struct tcp_fastopen_cookie *foc) in tcp_synack_options() argument
654 if (foc != NULL && foc->len >= 0) { in tcp_synack_options()
655 u32 need = foc->len; in tcp_synack_options()
[all …]
Dtcp_input.c3677 bool syn, struct tcp_fastopen_cookie *foc, in tcp_parse_fastopen_option() argument
3681 if (!foc || !syn || len < 0 || (len & 1)) in tcp_parse_fastopen_option()
3686 memcpy(foc->val, cookie, len); in tcp_parse_fastopen_option()
3689 foc->len = len; in tcp_parse_fastopen_option()
3690 foc->exp = exp_opt; in tcp_parse_fastopen_option()
3699 struct tcp_fastopen_cookie *foc) in tcp_parse_options() argument
3785 ptr, th->syn, foc, false); in tcp_parse_options()
3797 ptr + 2, th->syn, foc, true); in tcp_parse_options()
5522 struct tcp_fastopen_cookie foc = { .len = -1 }; in tcp_rcv_synsent_state_process() local
5525 tcp_parse_options(skb, &tp->rx_opt, 0, &foc); in tcp_rcv_synsent_state_process()
[all …]
Dtcp_ipv4.c830 struct tcp_fastopen_cookie *foc, in tcp_v4_send_synack() argument
842 skb = tcp_make_synack(sk, dst, req, foc, attach_req); in tcp_v4_send_synack()
/linux-4.4.14/include/net/
Dtcp.h443 int estab, struct tcp_fastopen_cookie *foc);
468 struct tcp_fastopen_cookie *foc,
1436 struct tcp_fastopen_cookie *foc,
1729 struct tcp_fastopen_cookie *foc,
/linux-4.4.14/net/ipv6/
Dtcp_ipv6.c442 struct tcp_fastopen_cookie *foc, in tcp_v6_send_synack() argument
456 skb = tcp_make_synack(sk, dst, req, foc, attach_req); in tcp_v6_send_synack()