Home
last modified time | relevance | path

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

/linux-6.12.1/net/ipv4/
Dtcp_fastopen.c121 struct tcp_fastopen_cookie *foc) in __tcp_fastopen_cookie_gen_cipher() argument
128 foc->val[0] = cpu_to_le64(siphash(&iph->saddr, in __tcp_fastopen_cookie_gen_cipher()
132 foc->len = TCP_FASTOPEN_COOKIE_SIZE; in __tcp_fastopen_cookie_gen_cipher()
139 foc->val[0] = cpu_to_le64(siphash(&ip6h->saddr, in __tcp_fastopen_cookie_gen_cipher()
143 foc->len = TCP_FASTOPEN_COOKIE_SIZE; in __tcp_fastopen_cookie_gen_cipher()
156 struct tcp_fastopen_cookie *foc) in tcp_fastopen_cookie_gen() argument
163 __tcp_fastopen_cookie_gen_cipher(req, syn, &ctx->key[0], foc); in tcp_fastopen_cookie_gen()
218 struct tcp_fastopen_cookie *foc = valid_foc; in tcp_fastopen_cookie_gen_check() local
227 __tcp_fastopen_cookie_gen_cipher(req, syn, &ctx->key[i], foc); in tcp_fastopen_cookie_gen_check()
228 if (tcp_fastopen_cookie_match(foc, orig)) { in tcp_fastopen_cookie_gen_check()
[all …]
Dtcp_output.c734 struct tcp_fastopen_cookie *foc = opts->fastopen_cookie; in tcp_options_write() local
738 if (foc->exp) { in tcp_options_write()
739 len = TCPOLEN_EXP_FASTOPEN_BASE + foc->len; in tcp_options_write()
744 len = TCPOLEN_FASTOPEN_BASE + foc->len; in tcp_options_write()
749 memcpy(p, foc->val, foc->len); in tcp_options_write()
751 p[foc->len] = TCPOPT_NOP; in tcp_options_write()
752 p[foc->len + 1] = TCPOPT_NOP; in tcp_options_write()
902 struct tcp_fastopen_cookie *foc, in tcp_synack_options() argument
947 if (foc != NULL && foc->len >= 0) { in tcp_synack_options()
948 u32 need = foc->len; in tcp_synack_options()
[all …]
Dtcp_input.c4101 bool syn, struct tcp_fastopen_cookie *foc, in tcp_parse_fastopen_option() argument
4105 if (!foc || !syn || len < 0 || (len & 1)) in tcp_parse_fastopen_option()
4110 memcpy(foc->val, cookie, len); in tcp_parse_fastopen_option()
4113 foc->len = len; in tcp_parse_fastopen_option()
4114 foc->exp = exp_opt; in tcp_parse_fastopen_option()
4186 struct tcp_fastopen_cookie *foc) in tcp_parse_options() argument
4282 ptr, th->syn, foc, false); in tcp_parse_options()
4294 ptr + 2, th->syn, foc, true); in tcp_parse_options()
6433 struct tcp_fastopen_cookie foc = { .len = -1 }; in tcp_rcv_synsent_state_process() local
6438 tcp_parse_options(sock_net(sk), skb, &tp->rx_opt, 0, &foc); in tcp_rcv_synsent_state_process()
[all …]
Dtcp_ipv4.c1174 struct tcp_fastopen_cookie *foc, argument
1188 skb = tcp_make_synack(sk, dst, req, foc, synack_type, syn_skb);
/linux-6.12.1/net/mptcp/
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.12.1/include/net/
Dtcp.h435 int estab, struct tcp_fastopen_cookie *foc);
476 struct tcp_fastopen_cookie *foc,
1918 struct tcp_fastopen_cookie *foc,
1954 bool tcp_fastopen_cookie_match(const struct tcp_fastopen_cookie *foc, in tcp_fastopen_cookie_match() argument
1958 orig->len == foc->len && in tcp_fastopen_cookie_match()
1959 !memcmp(orig->val, foc->val, foc->len)) in tcp_fastopen_cookie_match()
2297 struct tcp_fastopen_cookie *foc,
/linux-6.12.1/net/ipv6/
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()