Searched refs:foc (Results 1 – 6 of 6) sorted by relevance
| /Linux-v5.15/net/ipv4/ |
| D | tcp_fastopen.c | 126 struct tcp_fastopen_cookie *foc) in __tcp_fastopen_cookie_gen_cipher() argument 133 foc->val[0] = cpu_to_le64(siphash(&iph->saddr, in __tcp_fastopen_cookie_gen_cipher() 137 foc->len = TCP_FASTOPEN_COOKIE_SIZE; in __tcp_fastopen_cookie_gen_cipher() 144 foc->val[0] = cpu_to_le64(siphash(&ip6h->saddr, in __tcp_fastopen_cookie_gen_cipher() 148 foc->len = TCP_FASTOPEN_COOKIE_SIZE; in __tcp_fastopen_cookie_gen_cipher() 161 struct tcp_fastopen_cookie *foc) in tcp_fastopen_cookie_gen() argument 168 __tcp_fastopen_cookie_gen_cipher(req, syn, &ctx->key[0], foc); in tcp_fastopen_cookie_gen() 223 struct tcp_fastopen_cookie *foc = valid_foc; in tcp_fastopen_cookie_gen_check() local 232 __tcp_fastopen_cookie_gen_cipher(req, syn, &ctx->key[i], foc); in tcp_fastopen_cookie_gen_check() 233 if (tcp_fastopen_cookie_match(foc, orig)) { in tcp_fastopen_cookie_gen_check() [all …]
|
| D | tcp_output.c | 680 struct tcp_fastopen_cookie *foc = opts->fastopen_cookie; in tcp_options_write() local 684 if (foc->exp) { in tcp_options_write() 685 len = TCPOLEN_EXP_FASTOPEN_BASE + foc->len; in tcp_options_write() 690 len = TCPOLEN_FASTOPEN_BASE + foc->len; in tcp_options_write() 695 memcpy(p, foc->val, foc->len); in tcp_options_write() 697 p[foc->len] = TCPOPT_NOP; in tcp_options_write() 698 p[foc->len + 1] = TCPOPT_NOP; in tcp_options_write() 846 struct tcp_fastopen_cookie *foc, in tcp_synack_options() argument 888 if (foc != NULL && foc->len >= 0) { in tcp_synack_options() 889 u32 need = foc->len; in tcp_synack_options() [all …]
|
| D | tcp_input.c | 3920 bool syn, struct tcp_fastopen_cookie *foc, in tcp_parse_fastopen_option() argument 3924 if (!foc || !syn || len < 0 || (len & 1)) in tcp_parse_fastopen_option() 3929 memcpy(foc->val, cookie, len); in tcp_parse_fastopen_option() 3932 foc->len = len; in tcp_parse_fastopen_option() 3933 foc->exp = exp_opt; in tcp_parse_fastopen_option() 4004 struct tcp_fastopen_cookie *foc) in tcp_parse_options() argument 4094 ptr, th->syn, foc, false); in tcp_parse_options() 4106 ptr + 2, th->syn, foc, true); in tcp_parse_options() 6095 struct tcp_fastopen_cookie foc = { .len = -1 }; in tcp_rcv_synsent_state_process() local 6099 tcp_parse_options(sock_net(sk), skb, &tp->rx_opt, 0, &foc); in tcp_rcv_synsent_state_process() [all …]
|
| D | tcp_ipv4.c | 982 struct tcp_fastopen_cookie *foc, in tcp_v4_send_synack() argument 996 skb = tcp_make_synack(sk, dst, req, foc, synack_type, syn_skb); in tcp_v4_send_synack()
|
| /Linux-v5.15/include/net/ |
| D | tcp.h | 426 int estab, struct tcp_fastopen_cookie *foc); 467 struct tcp_fastopen_cookie *foc, 1695 struct tcp_fastopen_cookie *foc, 1731 bool tcp_fastopen_cookie_match(const struct tcp_fastopen_cookie *foc, in tcp_fastopen_cookie_match() argument 1735 orig->len == foc->len && in tcp_fastopen_cookie_match() 1736 !memcmp(orig->val, foc->val, foc->len)) in tcp_fastopen_cookie_match() 2038 struct tcp_fastopen_cookie *foc,
|
| /Linux-v5.15/net/ipv6/ |
| D | tcp_ipv6.c | 518 struct tcp_fastopen_cookie *foc, in tcp_v6_send_synack() argument 535 skb = tcp_make_synack(sk, dst, req, foc, synack_type, syn_skb); in tcp_v6_send_synack()
|