Home
last modified time | relevance | path

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

/linux-6.15/net/ipv4/
H A Dtcp_fastopen.c132 foc->len = TCP_FASTOPEN_COOKIE_SIZE; in __tcp_fastopen_cookie_gen_cipher()
143 foc->len = TCP_FASTOPEN_COOKIE_SIZE; in __tcp_fastopen_cookie_gen_cipher()
232 foc = &search_foc; in tcp_fastopen_cookie_gen_check()
365 foc->len = -1; in tcp_try_fastopen()
372 if (foc->len == 0) { in tcp_try_fastopen()
375 } else if (foc->len > 0) { in tcp_try_fastopen()
395 valid_foc.exp = foc->exp; in tcp_try_fastopen()
396 *foc = valid_foc; in tcp_try_fastopen()
400 foc->len = -1; in tcp_try_fastopen()
410 valid_foc.exp = foc->exp; in tcp_try_fastopen()
[all …]
H A Dtcp_output.c743 if (foc->exp) { in tcp_options_write()
749 len = TCPOLEN_FASTOPEN_BASE + foc->len; in tcp_options_write()
754 memcpy(p, foc->val, foc->len); in tcp_options_write()
756 p[foc->len] = TCPOPT_NOP; in tcp_options_write()
757 p[foc->len + 1] = TCPOPT_NOP; in tcp_options_write()
909 struct tcp_fastopen_cookie *foc, in tcp_synack_options() argument
960 if (foc != NULL && foc->len >= 0) { in tcp_synack_options()
961 u32 need = foc->len; in tcp_synack_options()
968 opts->fastopen_cookie = foc; in tcp_synack_options()
3716 struct tcp_fastopen_cookie *foc, in tcp_make_synack() argument
[all …]
H A Dtcp_input.c4130 if (!foc || !syn || len < 0 || (len & 1)) in tcp_parse_fastopen_option()
4135 memcpy(foc->val, cookie, len); in tcp_parse_fastopen_option()
4138 foc->len = len; in tcp_parse_fastopen_option()
4139 foc->exp = exp_opt; in tcp_parse_fastopen_option()
4210 struct tcp_fastopen_cookie *foc) in tcp_parse_options() argument
4306 ptr, th->syn, foc, false); in tcp_parse_options()
4318 ptr + 2, th->syn, foc, true); in tcp_parse_options()
6599 tcp_rcv_fastopen_synack(sk, skb, &foc); in tcp_rcv_synsent_state_process()
7283 want_cookie ? NULL : &foc); in tcp_conn_request()
7360 &foc, TCP_SYNACK_FASTOPEN, skb); in tcp_conn_request()
[all …]
H A Dtcp_ipv4.c1188 struct tcp_fastopen_cookie *foc, argument
1202 skb = tcp_make_synack(sk, dst, req, foc, synack_type, syn_skb);
/linux-6.15/net/mptcp/
H A Dsubflow.c343 struct tcp_fastopen_cookie *foc, in subflow_prep_synack() argument
350 if (foc && foc->len > -1) in subflow_prep_synack()
360 struct tcp_fastopen_cookie *foc, in subflow_v4_send_synack() argument
364 subflow_prep_synack(sk, req, foc, synack_type); in subflow_v4_send_synack()
366 return tcp_request_sock_ipv4_ops.send_synack(sk, dst, fl, req, foc, in subflow_v4_send_synack()
374 struct tcp_fastopen_cookie *foc, in subflow_v6_send_synack() argument
378 subflow_prep_synack(sk, req, foc, synack_type); in subflow_v6_send_synack()
380 return tcp_request_sock_ipv6_ops.send_synack(sk, dst, fl, req, foc, in subflow_v6_send_synack()
/linux-6.15/include/net/
H A Dtcp.h476 int estab, struct tcp_fastopen_cookie *foc);
517 struct tcp_fastopen_cookie *foc,
1990 struct tcp_fastopen_cookie *foc,
2026 bool tcp_fastopen_cookie_match(const struct tcp_fastopen_cookie *foc, in tcp_fastopen_cookie_match() argument
2030 orig->len == foc->len && in tcp_fastopen_cookie_match()
2031 !memcmp(orig->val, foc->val, foc->len)) in tcp_fastopen_cookie_match()
2369 struct tcp_fastopen_cookie *foc,
/linux-6.15/net/ipv6/
H A Dtcp_ipv6.c525 struct tcp_fastopen_cookie *foc, in tcp_v6_send_synack() argument
542 skb = tcp_make_synack(sk, dst, req, foc, synack_type, syn_skb); in tcp_v6_send_synack()