diff options
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r-- | net/ipv4/tcp_output.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index a627616314ba..76b3653e9b4c 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -2233,7 +2233,11 @@ struct sk_buff *tcp_make_synack(struct sock *sk, struct dst_entry *dst, | |||
2233 | 2233 | ||
2234 | /* RFC1323: The window in SYN & SYN/ACK segments is never scaled. */ | 2234 | /* RFC1323: The window in SYN & SYN/ACK segments is never scaled. */ |
2235 | th->window = htons(min(req->rcv_wnd, 65535U)); | 2235 | th->window = htons(min(req->rcv_wnd, 65535U)); |
2236 | 2236 | #ifdef CONFIG_SYN_COOKIES | |
2237 | if (unlikely(req->cookie_ts)) | ||
2238 | TCP_SKB_CB(skb)->when = cookie_init_timestamp(req); | ||
2239 | else | ||
2240 | #endif | ||
2237 | TCP_SKB_CB(skb)->when = tcp_time_stamp; | 2241 | TCP_SKB_CB(skb)->when = tcp_time_stamp; |
2238 | tcp_syn_build_options((__be32 *)(th + 1), dst_metric(dst, RTAX_ADVMSS), ireq->tstamp_ok, | 2242 | tcp_syn_build_options((__be32 *)(th + 1), dst_metric(dst, RTAX_ADVMSS), ireq->tstamp_ok, |
2239 | ireq->sack_ok, ireq->wscale_ok, ireq->rcv_wscale, | 2243 | ireq->sack_ok, ireq->wscale_ok, ireq->rcv_wscale, |