Searched refs:foc (Results 1 – 6 of 6) sorted by relevance
/linux-4.4.14/net/ipv4/ |
D | tcp_fastopen.c | 76 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 …]
|
D | tcp_output.c | 518 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 …]
|
D | tcp_input.c | 3677 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 …]
|
D | tcp_ipv4.c | 830 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/ |
D | tcp.h | 443 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/ |
D | tcp_ipv6.c | 442 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()
|