Home
last modified time | relevance | path

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

/Linux-v5.4/net/ipv4/
Dtcp_fastopen.c114 struct tcp_fastopen_cookie *foc) in __tcp_fastopen_cookie_gen_cipher() argument
121 foc->val[0] = cpu_to_le64(siphash(&iph->saddr, in __tcp_fastopen_cookie_gen_cipher()
125 foc->len = TCP_FASTOPEN_COOKIE_SIZE; in __tcp_fastopen_cookie_gen_cipher()
132 foc->val[0] = cpu_to_le64(siphash(&ip6h->saddr, in __tcp_fastopen_cookie_gen_cipher()
136 foc->len = TCP_FASTOPEN_COOKIE_SIZE; in __tcp_fastopen_cookie_gen_cipher()
149 struct tcp_fastopen_cookie *foc) in tcp_fastopen_cookie_gen() argument
156 __tcp_fastopen_cookie_gen_cipher(req, syn, &ctx->key[0], foc); in tcp_fastopen_cookie_gen()
211 struct tcp_fastopen_cookie *foc = valid_foc; in tcp_fastopen_cookie_gen_check() local
220 __tcp_fastopen_cookie_gen_cipher(req, syn, &ctx->key[i], foc); in tcp_fastopen_cookie_gen_check()
221 if (tcp_fastopen_cookie_match(foc, orig)) { in tcp_fastopen_cookie_gen_check()
[all …]
Dtcp_output.c525 struct tcp_fastopen_cookie *foc = opts->fastopen_cookie; in tcp_options_write() local
529 if (foc->exp) { in tcp_options_write()
530 len = TCPOLEN_EXP_FASTOPEN_BASE + foc->len; in tcp_options_write()
535 len = TCPOLEN_FASTOPEN_BASE + foc->len; in tcp_options_write()
540 memcpy(p, foc->val, foc->len); in tcp_options_write()
542 p[foc->len] = TCPOPT_NOP; in tcp_options_write()
543 p[foc->len + 1] = TCPOPT_NOP; in tcp_options_write()
662 struct tcp_fastopen_cookie *foc) in tcp_synack_options() argument
701 if (foc != NULL && foc->len >= 0) { in tcp_synack_options()
702 u32 need = foc->len; in tcp_synack_options()
[all …]
Dtcp_input.c3756 bool syn, struct tcp_fastopen_cookie *foc, in tcp_parse_fastopen_option() argument
3760 if (!foc || !syn || len < 0 || (len & 1)) in tcp_parse_fastopen_option()
3765 memcpy(foc->val, cookie, len); in tcp_parse_fastopen_option()
3768 foc->len = len; in tcp_parse_fastopen_option()
3769 foc->exp = exp_opt; in tcp_parse_fastopen_option()
3837 struct tcp_fastopen_cookie *foc) in tcp_parse_options() argument
3926 ptr, th->syn, foc, false); in tcp_parse_options()
3938 ptr + 2, th->syn, foc, true); in tcp_parse_options()
5869 struct tcp_fastopen_cookie foc = { .len = -1 }; in tcp_rcv_synsent_state_process() local
5873 tcp_parse_options(sock_net(sk), skb, &tp->rx_opt, 0, &foc); in tcp_rcv_synsent_state_process()
[all …]
Dtcp_ipv4.c941 struct tcp_fastopen_cookie *foc, in tcp_v4_send_synack() argument
953 skb = tcp_make_synack(sk, dst, req, foc, synack_type); in tcp_v4_send_synack()
/Linux-v5.4/include/net/
Dtcp.h414 int estab, struct tcp_fastopen_cookie *foc);
454 struct tcp_fastopen_cookie *foc,
1632 struct tcp_fastopen_cookie *foc,
1669 bool tcp_fastopen_cookie_match(const struct tcp_fastopen_cookie *foc, in tcp_fastopen_cookie_match() argument
1673 orig->len == foc->len && in tcp_fastopen_cookie_match()
1674 !memcmp(orig->val, foc->val, foc->len)) in tcp_fastopen_cookie_match()
1975 struct tcp_fastopen_cookie *foc,
/Linux-v5.4/net/ipv6/
Dtcp_ipv6.c487 struct tcp_fastopen_cookie *foc, in tcp_v6_send_synack() argument
502 skb = tcp_make_synack(sk, dst, req, foc, synack_type); in tcp_v6_send_synack()