Searched refs:foc (Results 1 – 6 of 6) sorted by relevance
/linux-6.1.9/net/ipv4/ |
D | tcp_fastopen.c | 120 struct tcp_fastopen_cookie *foc) in __tcp_fastopen_cookie_gen_cipher() argument 127 foc->val[0] = cpu_to_le64(siphash(&iph->saddr, in __tcp_fastopen_cookie_gen_cipher() 131 foc->len = TCP_FASTOPEN_COOKIE_SIZE; in __tcp_fastopen_cookie_gen_cipher() 138 foc->val[0] = cpu_to_le64(siphash(&ip6h->saddr, in __tcp_fastopen_cookie_gen_cipher() 142 foc->len = TCP_FASTOPEN_COOKIE_SIZE; in __tcp_fastopen_cookie_gen_cipher() 155 struct tcp_fastopen_cookie *foc) in tcp_fastopen_cookie_gen() argument 162 __tcp_fastopen_cookie_gen_cipher(req, syn, &ctx->key[0], foc); in tcp_fastopen_cookie_gen() 217 struct tcp_fastopen_cookie *foc = valid_foc; in tcp_fastopen_cookie_gen_check() local 226 __tcp_fastopen_cookie_gen_cipher(req, syn, &ctx->key[i], foc); in tcp_fastopen_cookie_gen_check() 227 if (tcp_fastopen_cookie_match(foc, orig)) { in tcp_fastopen_cookie_gen_check() [all …]
|
D | tcp_output.c | 679 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 …]
|
D | tcp_input.c | 3952 bool syn, struct tcp_fastopen_cookie *foc, in tcp_parse_fastopen_option() argument 3956 if (!foc || !syn || len < 0 || (len & 1)) in tcp_parse_fastopen_option() 3961 memcpy(foc->val, cookie, len); in tcp_parse_fastopen_option() 3964 foc->len = len; in tcp_parse_fastopen_option() 3965 foc->exp = exp_opt; in tcp_parse_fastopen_option() 4037 struct tcp_fastopen_cookie *foc) in tcp_parse_options() argument 4127 ptr, th->syn, foc, false); in tcp_parse_options() 4139 ptr + 2, th->syn, foc, true); in tcp_parse_options() 6173 struct tcp_fastopen_cookie foc = { .len = -1 }; in tcp_rcv_synsent_state_process() local 6178 tcp_parse_options(sock_net(sk), skb, &tp->rx_opt, 0, &foc); in tcp_rcv_synsent_state_process() [all …]
|
D | tcp_ipv4.c | 1001 struct tcp_fastopen_cookie *foc, in tcp_v4_send_synack() argument 1015 skb = tcp_make_synack(sk, dst, req, foc, synack_type, syn_skb); in tcp_v4_send_synack()
|
/linux-6.1.9/include/net/ |
D | tcp.h | 434 int estab, struct tcp_fastopen_cookie *foc); 476 struct tcp_fastopen_cookie *foc, 1761 struct tcp_fastopen_cookie *foc, 1797 bool tcp_fastopen_cookie_match(const struct tcp_fastopen_cookie *foc, in tcp_fastopen_cookie_match() argument 1801 orig->len == foc->len && in tcp_fastopen_cookie_match() 1802 !memcmp(orig->val, foc->val, foc->len)) in tcp_fastopen_cookie_match() 2099 struct tcp_fastopen_cookie *foc,
|
/linux-6.1.9/net/ipv6/ |
D | tcp_ipv6.c | 529 struct tcp_fastopen_cookie *foc, in tcp_v6_send_synack() argument 546 skb = tcp_make_synack(sk, dst, req, foc, synack_type, syn_skb); in tcp_v6_send_synack()
|