tcp_input.c (eda7acddf8080bb2d022a8d4b8b2345eb80c63ec) tcp_input.c (cec37a6e41aae7bf3df9a3da783380a4d9325fd8)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * INET An implementation of the TCP/IP protocol suite for the LINUX
4 * operating system. INET is implemented using the BSD Socket
5 * interface as the means of communication with the user level.
6 *
7 * Implementation of the Transmission Control Protocol(TCP).
8 *

--- 5964 unchanged lines hidden (view full) ---

5973 tcp_store_ts_recent(tp);
5974 } else {
5975 tp->tcp_header_len = sizeof(struct tcphdr);
5976 }
5977
5978 tcp_sync_mss(sk, icsk->icsk_pmtu_cookie);
5979 tcp_initialize_rcv_mss(sk);
5980
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * INET An implementation of the TCP/IP protocol suite for the LINUX
4 * operating system. INET is implemented using the BSD Socket
5 * interface as the means of communication with the user level.
6 *
7 * Implementation of the Transmission Control Protocol(TCP).
8 *

--- 5964 unchanged lines hidden (view full) ---

5973 tcp_store_ts_recent(tp);
5974 } else {
5975 tp->tcp_header_len = sizeof(struct tcphdr);
5976 }
5977
5978 tcp_sync_mss(sk, icsk->icsk_pmtu_cookie);
5979 tcp_initialize_rcv_mss(sk);
5980
5981 if (sk_is_mptcp(sk))
5982 mptcp_rcv_synsent(sk);
5983
5981 /* Remember, tcp_poll() does not lock socket!
5982 * Change state from SYN-SENT only after copied_seq
5983 * is initialized. */
5984 WRITE_ONCE(tp->copied_seq, tp->rcv_nxt);
5985
5986 smc_check_reset_syn(tp);
5987
5988 smp_mb();

--- 606 unchanged lines hidden (view full) ---

6595 }
6596
6597 req = inet_reqsk_alloc(rsk_ops, sk, !want_cookie);
6598 if (!req)
6599 goto drop;
6600
6601 tcp_rsk(req)->af_specific = af_ops;
6602 tcp_rsk(req)->ts_off = 0;
5984 /* Remember, tcp_poll() does not lock socket!
5985 * Change state from SYN-SENT only after copied_seq
5986 * is initialized. */
5987 WRITE_ONCE(tp->copied_seq, tp->rcv_nxt);
5988
5989 smc_check_reset_syn(tp);
5990
5991 smp_mb();

--- 606 unchanged lines hidden (view full) ---

6598 }
6599
6600 req = inet_reqsk_alloc(rsk_ops, sk, !want_cookie);
6601 if (!req)
6602 goto drop;
6603
6604 tcp_rsk(req)->af_specific = af_ops;
6605 tcp_rsk(req)->ts_off = 0;
6606#if IS_ENABLED(CONFIG_MPTCP)
6607 tcp_rsk(req)->is_mptcp = 0;
6608#endif
6603
6604 tcp_clear_options(&tmp_opt);
6605 tmp_opt.mss_clamp = af_ops->mss_clamp;
6606 tmp_opt.user_mss = tp->rx_opt.user_mss;
6607 tcp_parse_options(sock_net(sk), skb, &tmp_opt, 0,
6608 want_cookie ? NULL : &foc);
6609
6610 if (want_cookie && !tmp_opt.saw_tstamp)

--- 100 unchanged lines hidden ---
6609
6610 tcp_clear_options(&tmp_opt);
6611 tmp_opt.mss_clamp = af_ops->mss_clamp;
6612 tmp_opt.user_mss = tp->rx_opt.user_mss;
6613 tcp_parse_options(sock_net(sk), skb, &tmp_opt, 0,
6614 want_cookie ? NULL : &foc);
6615
6616 if (want_cookie && !tmp_opt.saw_tstamp)

--- 100 unchanged lines hidden ---