]> err.no Git - linux-2.6/blobdiff - net/ipv4/tcp_output.c
[NETFILTER]: nf_nat: kill helper and seq_adjust hooks
[linux-2.6] / net / ipv4 / tcp_output.c
index a627616314baf0b137a075ce0fb340a0d20ba475..76b3653e9b4cc54318c768410ff60e923e57b3b0 100644 (file)
@@ -2233,7 +2233,11 @@ struct sk_buff *tcp_make_synack(struct sock *sk, struct dst_entry *dst,
 
        /* RFC1323: The window in SYN & SYN/ACK segments is never scaled. */
        th->window = htons(min(req->rcv_wnd, 65535U));
-
+#ifdef CONFIG_SYN_COOKIES
+       if (unlikely(req->cookie_ts))
+               TCP_SKB_CB(skb)->when = cookie_init_timestamp(req);
+       else
+#endif
        TCP_SKB_CB(skb)->when = tcp_time_stamp;
        tcp_syn_build_options((__be32 *)(th + 1), dst_metric(dst, RTAX_ADVMSS), ireq->tstamp_ok,
                              ireq->sack_ok, ireq->wscale_ok, ireq->rcv_wscale,