summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/stack/tcp.go
diff options
context:
space:
mode:
authorZeling Feng <zeling@google.com>2021-08-30 10:56:32 -0700
committergVisor bot <gvisor-bot@google.com>2021-08-30 10:59:45 -0700
commit9625071e6dd6d949f6bd443910eaf56ce1c9762d (patch)
tree6aa1b4c821995c2960f2972826510925a25c7fae /pkg/tcpip/stack/tcp.go
parentcf65f9a8ded6d7423465cb89066f79915f54db5a (diff)
Avoid pseudo endpoint for TSVal generation
PiperOrigin-RevId: 393808461
Diffstat (limited to 'pkg/tcpip/stack/tcp.go')
-rw-r--r--pkg/tcpip/stack/tcp.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/tcpip/stack/tcp.go b/pkg/tcpip/stack/tcp.go
index 93ea83cdc..dc7289441 100644
--- a/pkg/tcpip/stack/tcp.go
+++ b/pkg/tcpip/stack/tcp.go
@@ -19,6 +19,7 @@ import (
"gvisor.dev/gvisor/pkg/tcpip"
"gvisor.dev/gvisor/pkg/tcpip/header"
+ "gvisor.dev/gvisor/pkg/tcpip/internal/tcp"
"gvisor.dev/gvisor/pkg/tcpip/seqnum"
)
@@ -402,7 +403,7 @@ type TCPSndBufState struct {
type TCPEndpointStateInner struct {
// TSOffset is a randomized offset added to the value of the TSVal
// field in the timestamp option.
- TSOffset uint32
+ TSOffset tcp.TSOffset
// SACKPermitted is set to true if the peer sends the TCPSACKPermitted
// option in the SYN/SYN-ACK.