summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/transport/tcp/connect.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-10-29 01:24:26 +0000
committergVisor bot <gvisor-bot@google.com>2019-10-29 01:24:26 +0000
commit5f94ff9ba002f81e87c3d2956bd448f360379049 (patch)
tree684abe18b33e7c78970533ecef90dfdc42c35dfc /pkg/tcpip/transport/tcp/connect.go
parentca3e612ef2ddc3741a6f33eccafdd5a571f63ede (diff)
parent0864549ecc26e734bae3dcf40e0d761232f8bdad (diff)
Merge release-20190806.1-331-g0864549 (automated)
Diffstat (limited to 'pkg/tcpip/transport/tcp/connect.go')
-rw-r--r--pkg/tcpip/transport/tcp/connect.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/transport/tcp/connect.go b/pkg/tcpip/transport/tcp/connect.go
index 790e89cc3..ca982c451 100644
--- a/pkg/tcpip/transport/tcp/connect.go
+++ b/pkg/tcpip/transport/tcp/connect.go
@@ -442,7 +442,7 @@ func (h *handshake) execute() *tcpip.Error {
// Send the initial SYN segment and loop until the handshake is
// completed.
- h.ep.amss = mssForRoute(&h.ep.route)
+ h.ep.amss = calculateAdvertisedMSS(h.ep.userMSS, h.ep.route)
synOpts := header.TCPSynOptions{
WS: h.rcvWndScale,