]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When retransmitting TCP SYN-ACK segments with the TCP timestamp option
authorMichael Tuexen <tuexen@FreeBSD.org>
Fri, 15 Jun 2018 12:28:43 +0000 (12:28 +0000)
committerMichael Tuexen <tuexen@FreeBSD.org>
Fri, 15 Jun 2018 12:28:43 +0000 (12:28 +0000)
commit43b223f42e5ee5dcc7fec0aa2beaf1c6ee0322d1
tree6a517b6b1c1823238a99a392ef3ccc934691f8ef
parent725f388bdca2f4ee4b19f56e6c3c55b412559395
When retransmitting TCP SYN-ACK segments with the TCP timestamp option
enabled use an updated timestamp instead of reusing the one used in
the initial TCP SYN-ACK segment.

This patch ensures that an updated timestamp is used when sending the
SYN-ACK from the syncache code. It was already done if the
SYN-ACK was retransmitted from the generic code.

This makes the behaviour consistent and also conformant with
the TCP specification.

Reviewed by: jtl@, Jason Eggleston
MFC after: 1 month
Sponsored by: Neflix, Inc.
Differential Revision: https://reviews.freebsd.org/D15634
sys/netinet/tcp_syncache.c
sys/netinet/tcp_syncache.h