tcp: move rx_opt & syn_data_acked init to tcp_disconnect()
If we make sure all listeners have these fields cleared, then a clone will also inherit zero values. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
792c4354a5
commit
6bcdc40ddd
@@ -2617,6 +2617,10 @@ int tcp_disconnect(struct sock *sk, int flags)
|
||||
tp->rack.last_delivered = 0;
|
||||
tp->rack.reo_wnd_persist = 0;
|
||||
tp->rack.dsack_seen = 0;
|
||||
tp->syn_data_acked = 0;
|
||||
tp->rx_opt.saw_tstamp = 0;
|
||||
tp->rx_opt.dsack = 0;
|
||||
tp->rx_opt.num_sacks = 0;
|
||||
|
||||
|
||||
/* Clean up fastopen related fields */
|
||||
|
Reference in New Issue
Block a user