summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/transport/tcp/accept.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-05-27 01:20:10 +0000
committergVisor bot <gvisor-bot@google.com>2021-05-27 01:20:10 +0000
commitc81dd74d61e4cb78c8e5526fbf47084a97af8b9f (patch)
tree55f006c48392655464f8ff15e99275bd0483d916 /pkg/tcpip/transport/tcp/accept.go
parent04322f810ff9ebbec03962e6ae43e2788a7bcd0f (diff)
parent097efe81a19a6ee11738957a3091e99a2caa46d4 (diff)
Merge release-20210518.0-52-g097efe81a (automated)
Diffstat (limited to 'pkg/tcpip/transport/tcp/accept.go')
-rw-r--r--pkg/tcpip/transport/tcp/accept.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/transport/tcp/accept.go b/pkg/tcpip/transport/tcp/accept.go
index db75228a1..2c65b737d 100644
--- a/pkg/tcpip/transport/tcp/accept.go
+++ b/pkg/tcpip/transport/tcp/accept.go
@@ -591,7 +591,7 @@ func (e *endpoint) handleListenSegment(ctx *listenContext, s *segment) tcpip.Err
synOpts := header.TCPSynOptions{
WS: -1,
TS: opts.TS,
- TSVal: tcpTimeStamp(e.stack.Clock().NowMonotonic(), timeStampOffset()),
+ TSVal: tcpTimeStamp(e.stack.Clock().NowMonotonic(), timeStampOffset(e.stack.Rand())),
TSEcr: opts.TSVal,
MSS: calculateAdvertisedMSS(e.userMSS, route),
}