Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/net/ipv4/
Dtcp_fastopen.c137 struct tcp_fastopen_cookie *foc) in __tcp_fastopen_cookie_gen_cipher() argument
144 foc->val[0] = cpu_to_le64(siphash(&iph->saddr, in __tcp_fastopen_cookie_gen_cipher()
148 foc->len = TCP_FASTOPEN_COOKIE_SIZE; in __tcp_fastopen_cookie_gen_cipher()
155 foc->val[0] = cpu_to_le64(siphash(&ip6h->saddr, in __tcp_fastopen_cookie_gen_cipher()
159 foc->len = TCP_FASTOPEN_COOKIE_SIZE; in __tcp_fastopen_cookie_gen_cipher()
172 struct tcp_fastopen_cookie *foc) in tcp_fastopen_cookie_gen() argument
179 __tcp_fastopen_cookie_gen_cipher(req, syn, &ctx->key[0], foc); in tcp_fastopen_cookie_gen()
234 struct tcp_fastopen_cookie *foc = valid_foc; in tcp_fastopen_cookie_gen_check() local
243 __tcp_fastopen_cookie_gen_cipher(req, syn, &ctx->key[i], foc); in tcp_fastopen_cookie_gen_check()
244 if (tcp_fastopen_cookie_match(foc, orig)) { in tcp_fastopen_cookie_gen_check()
[all …]
Dtcp_output.c679 struct tcp_fastopen_cookie *foc = opts->fastopen_cookie; in tcp_options_write() local
683 if (foc->exp) { in tcp_options_write()
684 len = TCPOLEN_EXP_FASTOPEN_BASE + foc->len; in tcp_options_write()
689 len = TCPOLEN_FASTOPEN_BASE + foc->len; in tcp_options_write()
694 memcpy(p, foc->val, foc->len); in tcp_options_write()
696 p[foc->len] = TCPOPT_NOP; in tcp_options_write()
697 p[foc->len + 1] = TCPOPT_NOP; in tcp_options_write()
845 struct tcp_fastopen_cookie *foc, in tcp_synack_options() argument
887 if (foc != NULL && foc->len >= 0) { in tcp_synack_options()
888 u32 need = foc->len; in tcp_synack_options()
[all …]
Dtcp_input.c3876 bool syn, struct tcp_fastopen_cookie *foc, in tcp_parse_fastopen_option() argument
3880 if (!foc || !syn || len < 0 || (len & 1)) in tcp_parse_fastopen_option()
3885 memcpy(foc->val, cookie, len); in tcp_parse_fastopen_option()
3888 foc->len = len; in tcp_parse_fastopen_option()
3889 foc->exp = exp_opt; in tcp_parse_fastopen_option()
3960 struct tcp_fastopen_cookie *foc) in tcp_parse_options() argument
4050 ptr, th->syn, foc, false); in tcp_parse_options()
4062 ptr + 2, th->syn, foc, true); in tcp_parse_options()
6048 struct tcp_fastopen_cookie foc = { .len = -1 }; in tcp_rcv_synsent_state_process() local
6052 tcp_parse_options(sock_net(sk), skb, &tp->rx_opt, 0, &foc); in tcp_rcv_synsent_state_process()
[all …]
Dtcp_ipv4.c967 struct tcp_fastopen_cookie *foc, in tcp_v4_send_synack() argument
981 skb = tcp_make_synack(sk, dst, req, foc, synack_type, syn_skb); in tcp_v4_send_synack()
/kernel/linux/linux-5.10/include/net/
Dtcp.h407 int estab, struct tcp_fastopen_cookie *foc);
448 struct tcp_fastopen_cookie *foc,
1677 struct tcp_fastopen_cookie *foc,
1714 bool tcp_fastopen_cookie_match(const struct tcp_fastopen_cookie *foc, in tcp_fastopen_cookie_match() argument
1718 orig->len == foc->len && in tcp_fastopen_cookie_match()
1719 !memcmp(orig->val, foc->val, foc->len)) in tcp_fastopen_cookie_match()
2034 struct tcp_fastopen_cookie *foc,
/kernel/linux/linux-5.10/net/ipv6/
Dtcp_ipv6.c520 struct tcp_fastopen_cookie *foc, in tcp_v6_send_synack() argument
537 skb = tcp_make_synack(sk, dst, req, foc, synack_type, syn_skb); in tcp_v6_send_synack()