diff options
author | Bhasker Hariharan <bhaskerh@google.com> | 2019-03-05 16:40:40 -0800 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-03-05 16:41:44 -0800 |
commit | 1718fdd1a8e16f36433b069a0f5d88ea7bdb65f5 (patch) | |
tree | 35b9f258024d54d8950d5c50c682b5a4a571f726 /pkg/tcpip/transport/tcp/segment.go | |
parent | 23e66ee96d159a774ecac9f89fab8cff463174a4 (diff) |
Add new retransmissions and recovery related metrics.
PiperOrigin-RevId: 236945145
Change-Id: I051760d95154ea5574c8bb6aea526f488af5e07b
Diffstat (limited to 'pkg/tcpip/transport/tcp/segment.go')
-rw-r--r-- | pkg/tcpip/transport/tcp/segment.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/tcpip/transport/tcp/segment.go b/pkg/tcpip/transport/tcp/segment.go index bd8017f64..a4c4a115c 100644 --- a/pkg/tcpip/transport/tcp/segment.go +++ b/pkg/tcpip/transport/tcp/segment.go @@ -61,6 +61,9 @@ type segment struct { options []byte `state:".([]byte)"` hasNewSACKInfo bool rcvdTime time.Time `state:".(unixTime)"` + // xmitTime is the last transmit time of this segment. A zero value + // indicates that the segment has yet to be transmitted. + xmitTime time.Time `state:".(unixTime)"` } func newSegment(r *stack.Route, id stack.TransportEndpointID, vv buffer.VectorisedView) *segment { |