/kernel/linux/linux-5.10/net/ipv4/ |
H A D | tcp_fastopen.c | 137 struct tcp_fastopen_cookie *foc) in __tcp_fastopen_cookie_gen_cipher() 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() 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, ori in tcp_fastopen_cookie_gen_check() 134 __tcp_fastopen_cookie_gen_cipher(struct request_sock *req, struct sk_buff *syn, const siphash_key_t *key, struct tcp_fastopen_cookie *foc) __tcp_fastopen_cookie_gen_cipher() argument 169 tcp_fastopen_cookie_gen(struct sock *sk, struct request_sock *req, struct sk_buff *syn, struct tcp_fastopen_cookie *foc) tcp_fastopen_cookie_gen() argument 363 tcp_try_fastopen(struct sock *sk, struct sk_buff *skb, struct request_sock *req, struct tcp_fastopen_cookie *foc, const struct dst_entry *dst) tcp_try_fastopen() argument [all...] |
H A D | tcp_output.c | 678 struct tcp_fastopen_cookie *foc = opts->fastopen_cookie; in tcp_options_write() local 682 if (foc->exp) { in tcp_options_write() 683 len = TCPOLEN_EXP_FASTOPEN_BASE + foc->len; in tcp_options_write() 688 len = TCPOLEN_FASTOPEN_BASE + foc->len; in tcp_options_write() 693 memcpy(p, foc->val, foc->len); in tcp_options_write() 695 p[foc->len] = TCPOPT_NOP; in tcp_options_write() 696 p[foc->len + 1] = TCPOPT_NOP; in tcp_options_write() 844 struct tcp_fastopen_cookie *foc, in tcp_synack_options() 886 if (foc ! in tcp_synack_options() 839 tcp_synack_options(const struct sock *sk, struct request_sock *req, unsigned int mss, struct sk_buff *skb, struct tcp_out_options *opts, const struct tcp_md5sig_key *md5, struct tcp_fastopen_cookie *foc, enum tcp_synack_type synack_type, struct sk_buff *syn_skb) tcp_synack_options() argument 3545 tcp_make_synack(const struct sock *sk, struct dst_entry *dst, struct request_sock *req, struct tcp_fastopen_cookie *foc, enum tcp_synack_type synack_type, struct sk_buff *syn_skb) tcp_make_synack() argument [all...] |
H A D | tcp_input.c | 3947 bool syn, struct tcp_fastopen_cookie *foc, in tcp_parse_fastopen_option() 3951 if (!foc || !syn || len < 0 || (len & 1)) in tcp_parse_fastopen_option() 3956 memcpy(foc->val, cookie, len); in tcp_parse_fastopen_option() 3959 foc->len = len; in tcp_parse_fastopen_option() 3960 foc->exp = exp_opt; in tcp_parse_fastopen_option() 4031 struct tcp_fastopen_cookie *foc) in tcp_parse_options() 4121 ptr, th->syn, foc, false); in tcp_parse_options() 4133 ptr + 2, th->syn, foc, true); in tcp_parse_options() 6133 struct tcp_fastopen_cookie foc = { .len = -1 }; in tcp_rcv_synsent_state_process() local 6137 tcp_parse_options(sock_net(sk), skb, &tp->rx_opt, 0, &foc); in tcp_rcv_synsent_state_process() local 3946 tcp_parse_fastopen_option(int len, const unsigned char *cookie, bool syn, struct tcp_fastopen_cookie *foc, bool exp_opt) tcp_parse_fastopen_option() argument 4028 tcp_parse_options(const struct net *net, const struct sk_buff *skb, struct tcp_options_received *opt_rx, int estab, struct tcp_fastopen_cookie *foc) tcp_parse_options() argument 6848 struct tcp_fastopen_cookie foc = { .len = -1 }; tcp_conn_request() local [all...] |
H A D | tcp_ipv4.c | 984 struct tcp_fastopen_cookie *foc, in tcp_v4_send_synack() 998 skb = tcp_make_synack(sk, dst, req, foc, synack_type, syn_skb); in tcp_v4_send_synack() 981 tcp_v4_send_synack(const struct sock *sk, struct dst_entry *dst, struct flowi *fl, struct request_sock *req, struct tcp_fastopen_cookie *foc, enum tcp_synack_type synack_type, struct sk_buff *syn_skb) tcp_v4_send_synack() argument
|
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | tcp_fastopen.c | 120 struct tcp_fastopen_cookie *foc) in __tcp_fastopen_cookie_gen_cipher() 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() 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, ori in tcp_fastopen_cookie_gen_check() 117 __tcp_fastopen_cookie_gen_cipher(struct request_sock *req, struct sk_buff *syn, const siphash_key_t *key, struct tcp_fastopen_cookie *foc) __tcp_fastopen_cookie_gen_cipher() argument 152 tcp_fastopen_cookie_gen(struct sock *sk, struct request_sock *req, struct sk_buff *syn, struct tcp_fastopen_cookie *foc) tcp_fastopen_cookie_gen() argument 347 tcp_try_fastopen(struct sock *sk, struct sk_buff *skb, struct request_sock *req, struct tcp_fastopen_cookie *foc, const struct dst_entry *dst) tcp_try_fastopen() argument [all...] |
H A D | tcp_output.c | 688 struct tcp_fastopen_cookie *foc = opts->fastopen_cookie; in tcp_options_write() local 692 if (foc->exp) { in tcp_options_write() 693 len = TCPOLEN_EXP_FASTOPEN_BASE + foc->len; in tcp_options_write() 698 len = TCPOLEN_FASTOPEN_BASE + foc->len; in tcp_options_write() 703 memcpy(p, foc->val, foc->len); in tcp_options_write() 705 p[foc->len] = TCPOPT_NOP; in tcp_options_write() 706 p[foc->len + 1] = TCPOPT_NOP; in tcp_options_write() 854 struct tcp_fastopen_cookie *foc, in tcp_synack_options() 896 if (foc ! in tcp_synack_options() 849 tcp_synack_options(const struct sock *sk, struct request_sock *req, unsigned int mss, struct sk_buff *skb, struct tcp_out_options *opts, const struct tcp_md5sig_key *md5, struct tcp_fastopen_cookie *foc, enum tcp_synack_type synack_type, struct sk_buff *syn_skb) tcp_synack_options() argument 3634 tcp_make_synack(const struct sock *sk, struct dst_entry *dst, struct request_sock *req, struct tcp_fastopen_cookie *foc, enum tcp_synack_type synack_type, struct sk_buff *syn_skb) tcp_make_synack() argument [all...] |
H A D | tcp_input.c | 3981 bool syn, struct tcp_fastopen_cookie *foc, in tcp_parse_fastopen_option() 3985 if (!foc || !syn || len < 0 || (len & 1)) in tcp_parse_fastopen_option() 3990 memcpy(foc->val, cookie, len); in tcp_parse_fastopen_option() 3993 foc->len = len; in tcp_parse_fastopen_option() 3994 foc->exp = exp_opt; in tcp_parse_fastopen_option() 4066 struct tcp_fastopen_cookie *foc) in tcp_parse_options() 4155 ptr, th->syn, foc, false); in tcp_parse_options() 4167 ptr + 2, th->syn, foc, true); in tcp_parse_options() 6226 struct tcp_fastopen_cookie foc = { .len = -1 }; in tcp_rcv_synsent_state_process() local 6231 tcp_parse_options(sock_net(sk), skb, &tp->rx_opt, 0, &foc); in tcp_rcv_synsent_state_process() local 3980 tcp_parse_fastopen_option(int len, const unsigned char *cookie, bool syn, struct tcp_fastopen_cookie *foc, bool exp_opt) tcp_parse_fastopen_option() argument 4063 tcp_parse_options(const struct net *net, const struct sk_buff *skb, struct tcp_options_received *opt_rx, int estab, struct tcp_fastopen_cookie *foc) tcp_parse_options() argument 6968 struct tcp_fastopen_cookie foc = { .len = -1 }; tcp_conn_request() local [all...] |
H A D | tcp_ipv4.c | 1008 struct tcp_fastopen_cookie *foc, in tcp_v4_send_synack() 1022 skb = tcp_make_synack(sk, dst, req, foc, synack_type, syn_skb); in tcp_v4_send_synack() 1005 tcp_v4_send_synack(const struct sock *sk, struct dst_entry *dst, struct flowi *fl, struct request_sock *req, struct tcp_fastopen_cookie *foc, enum tcp_synack_type synack_type, struct sk_buff *syn_skb) tcp_v4_send_synack() argument
|
/kernel/linux/linux-6.6/net/mptcp/ |
H A D | subflow.c | 311 struct tcp_fastopen_cookie *foc, in subflow_prep_synack() 318 if (foc && foc->len > -1) in subflow_prep_synack() 328 struct tcp_fastopen_cookie *foc, in subflow_v4_send_synack() 332 subflow_prep_synack(sk, req, foc, synack_type); in subflow_v4_send_synack() 334 return tcp_request_sock_ipv4_ops.send_synack(sk, dst, fl, req, foc, in subflow_v4_send_synack() 342 struct tcp_fastopen_cookie *foc, in subflow_v6_send_synack() 346 subflow_prep_synack(sk, req, foc, synack_type); in subflow_v6_send_synack() 348 return tcp_request_sock_ipv6_ops.send_synack(sk, dst, fl, req, foc, in subflow_v6_send_synack() 310 subflow_prep_synack(const struct sock *sk, struct request_sock *req, struct tcp_fastopen_cookie *foc, enum tcp_synack_type synack_type) subflow_prep_synack() argument 325 subflow_v4_send_synack(const struct sock *sk, struct dst_entry *dst, struct flowi *fl, struct request_sock *req, struct tcp_fastopen_cookie *foc, enum tcp_synack_type synack_type, struct sk_buff *syn_skb) subflow_v4_send_synack() argument 339 subflow_v6_send_synack(const struct sock *sk, struct dst_entry *dst, struct flowi *fl, struct request_sock *req, struct tcp_fastopen_cookie *foc, enum tcp_synack_type synack_type, struct sk_buff *syn_skb) subflow_v6_send_synack() argument
|
/kernel/linux/linux-5.10/include/net/ |
H A D | tcp.h | 413 int estab, struct tcp_fastopen_cookie *foc); 454 struct tcp_fastopen_cookie *foc, 1711 struct tcp_fastopen_cookie *foc, 1748 bool tcp_fastopen_cookie_match(const struct tcp_fastopen_cookie *foc, in tcp_fastopen_cookie_match() argument 1752 orig->len == foc->len && in tcp_fastopen_cookie_match() 1753 !memcmp(orig->val, foc->val, foc->len)) in tcp_fastopen_cookie_match() 2072 struct tcp_fastopen_cookie *foc,
|
/kernel/linux/linux-6.6/include/net/ |
H A D | tcp.h | 431 int estab, struct tcp_fastopen_cookie *foc); 473 struct tcp_fastopen_cookie *foc, 1812 struct tcp_fastopen_cookie *foc, 1848 bool tcp_fastopen_cookie_match(const struct tcp_fastopen_cookie *foc, in tcp_fastopen_cookie_match() argument 1852 orig->len == foc->len && in tcp_fastopen_cookie_match() 1853 !memcmp(orig->val, foc->val, foc->len)) in tcp_fastopen_cookie_match() 2154 struct tcp_fastopen_cookie *foc,
|
/kernel/linux/common_modules/newip/third_party/linux-5.10/include/net/ |
H A D | tcp_nip.h | 181 struct tcp_fastopen_cookie *foc,
|
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/ |
H A D | tcp_nip_output.c | 720 * foc: Fast Open option. 727 struct tcp_fastopen_cookie *foc, in tcp_nip_synack_options() 781 * foc: Fast Open option. 786 struct tcp_fastopen_cookie *foc, in tcp_nip_make_synack() 828 foc, synack_type) + sizeof(*th); in tcp_nip_make_synack() 723 tcp_nip_synack_options(struct request_sock *req, unsigned int mss, struct sk_buff *skb, struct tcp_nip_out_options *opts, const struct tcp_md5sig_key *md5, struct tcp_fastopen_cookie *foc, enum tcp_synack_type synack_type) tcp_nip_synack_options() argument 784 tcp_nip_make_synack(const struct sock *sk, struct dst_entry *dst, struct request_sock *req, struct tcp_fastopen_cookie *foc, enum tcp_synack_type synack_type) tcp_nip_make_synack() argument
|
H A D | tcp_nip_input.c | 889 * foc: Len field 893 struct tcp_fastopen_cookie *foc) in tcp_nip_parse_options() 1145 struct tcp_fastopen_cookie foc = { .len = -1 }; in _tcp_nip_conn_request() local 1229 af_ops->send_synack(sk, dst, NULL, req, &foc, TCP_SYNACK_NORMAL, NULL); in _tcp_nip_conn_request() 891 tcp_nip_parse_options(const struct sk_buff *skb, struct tcp_options_received *opt_rx, int estab, struct tcp_fastopen_cookie *foc) tcp_nip_parse_options() argument
|
H A D | tcp_nip.c | 771 * foc: Fast open options 777 struct tcp_fastopen_cookie *foc, in tcp_nip_send_synack() 784 skb = tcp_nip_make_synack(sk, dst, req, foc, synack_type); in tcp_nip_send_synack() 774 tcp_nip_send_synack(const struct sock *sk, struct dst_entry *dst, struct flowi *fl, struct request_sock *req, struct tcp_fastopen_cookie *foc, enum tcp_synack_type synack_type, struct sk_buff *syn_skb) tcp_nip_send_synack() argument
|
/kernel/linux/linux-5.10/net/ipv6/ |
H A D | tcp_ipv6.c | 523 struct tcp_fastopen_cookie *foc, in tcp_v6_send_synack() 540 skb = tcp_make_synack(sk, dst, req, foc, synack_type, syn_skb); in tcp_v6_send_synack() 520 tcp_v6_send_synack(const struct sock *sk, struct dst_entry *dst, struct flowi *fl, struct request_sock *req, struct tcp_fastopen_cookie *foc, enum tcp_synack_type synack_type, struct sk_buff *syn_skb) tcp_v6_send_synack() argument
|
/kernel/linux/linux-6.6/net/ipv6/ |
H A D | tcp_ipv6.c | 527 struct tcp_fastopen_cookie *foc, in tcp_v6_send_synack() 544 skb = tcp_make_synack(sk, dst, req, foc, synack_type, syn_skb); in tcp_v6_send_synack() 524 tcp_v6_send_synack(const struct sock *sk, struct dst_entry *dst, struct flowi *fl, struct request_sock *req, struct tcp_fastopen_cookie *foc, enum tcp_synack_type synack_type, struct sk_buff *syn_skb) tcp_v6_send_synack() argument
|