Searched refs:foc (Results 1 – 6 of 6) sorted by relevance
| /OK3568_Linux_fs/kernel/net/ipv4/ |
| H A D | tcp_fastopen.c | 137 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 …]
|
| H A D | tcp_output.c | 677 struct tcp_fastopen_cookie *foc = opts->fastopen_cookie; in tcp_options_write() local 681 if (foc->exp) { in tcp_options_write() 682 len = TCPOLEN_EXP_FASTOPEN_BASE + foc->len; in tcp_options_write() 687 len = TCPOLEN_FASTOPEN_BASE + foc->len; in tcp_options_write() 692 memcpy(p, foc->val, foc->len); in tcp_options_write() 694 p[foc->len] = TCPOPT_NOP; in tcp_options_write() 695 p[foc->len + 1] = TCPOPT_NOP; in tcp_options_write() 843 struct tcp_fastopen_cookie *foc, in tcp_synack_options() argument 885 if (foc != NULL && foc->len >= 0) { in tcp_synack_options() 886 u32 need = foc->len; in tcp_synack_options() [all …]
|
| H A D | tcp_input.c | 3922 bool syn, struct tcp_fastopen_cookie *foc, in tcp_parse_fastopen_option() argument 3926 if (!foc || !syn || len < 0 || (len & 1)) in tcp_parse_fastopen_option() 3931 memcpy(foc->val, cookie, len); in tcp_parse_fastopen_option() 3934 foc->len = len; in tcp_parse_fastopen_option() 3935 foc->exp = exp_opt; in tcp_parse_fastopen_option() 4006 struct tcp_fastopen_cookie *foc) in tcp_parse_options() argument 4096 ptr, th->syn, foc, false); in tcp_parse_options() 4108 ptr + 2, th->syn, foc, true); in tcp_parse_options() 6106 struct tcp_fastopen_cookie foc = { .len = -1 }; in tcp_rcv_synsent_state_process() local 6110 tcp_parse_options(sock_net(sk), skb, &tp->rx_opt, 0, &foc); in tcp_rcv_synsent_state_process() [all …]
|
| H A D | tcp_ipv4.c | 969 struct tcp_fastopen_cookie *foc, in tcp_v4_send_synack() argument 983 skb = tcp_make_synack(sk, dst, req, foc, synack_type, syn_skb); in tcp_v4_send_synack()
|
| /OK3568_Linux_fs/kernel/include/net/ |
| H A D | tcp.h | 416 int estab, struct tcp_fastopen_cookie *foc); 457 struct tcp_fastopen_cookie *foc, 1692 struct tcp_fastopen_cookie *foc, 1729 bool tcp_fastopen_cookie_match(const struct tcp_fastopen_cookie *foc, in tcp_fastopen_cookie_match() argument 1733 orig->len == foc->len && in tcp_fastopen_cookie_match() 1734 !memcmp(orig->val, foc->val, foc->len)) in tcp_fastopen_cookie_match() 2049 struct tcp_fastopen_cookie *foc,
|
| /OK3568_Linux_fs/kernel/net/ipv6/ |
| H A D | tcp_ipv6.c | 520 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()
|