Yuchung Cheng 843f4a55e3 tcp: use tcp_v4_send_synack on first SYN-ACK
To avoid large code duplication in IPv6, we need to first simplify
the complicate SYN-ACK sending code in tcp_v4_conn_request().

To use tcp_v4(6)_send_synack() to send all SYN-ACKs, we need to
initialize the mini socket's receive window before trying to
create the child socket and/or building the SYN-ACK packet. So we move
that initialization from tcp_make_synack() to tcp_v4_conn_request()
as a new function tcp_openreq_init_req_rwin().

After this refactoring the SYN-ACK sending code is simpler and easier
to implement Fast Open for IPv6.

Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Daniel Lee <longinus00@gmail.com>
Signed-off-by: Jerry Chu <hkchu@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-05-13 17:53:02 -04:00
..
2014-05-13 17:43:20 -04:00
2014-05-13 13:17:24 -04:00
2014-05-07 16:06:05 -04:00
2014-05-13 17:43:20 -04:00
2014-04-20 18:18:55 -04:00
2014-05-12 14:03:41 -04:00
2014-05-12 14:03:41 -04:00
2014-05-09 15:59:45 -04:00
2014-05-12 14:03:41 -04:00
2014-04-16 15:15:05 -04:00