diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-12-05 09:51:19 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-12-05 09:51:19 +0000 |
commit | a40718b74e096524340d52d638ac6a9fd70fd464 (patch) | |
tree | 6c7f27d6107342b4dfff5a5283bf7d0ef5c27bcc /pkg/tcpip/transport/tcp/segment.go | |
parent | 8299d30640051e66a28b362b44379df99efef094 (diff) | |
parent | 3075ede86edf04117f120b3cf110e699034b759c (diff) |
Merge release-20201130.0-47-g3075ede86 (automated)
Diffstat (limited to 'pkg/tcpip/transport/tcp/segment.go')
-rw-r--r-- | pkg/tcpip/transport/tcp/segment.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/transport/tcp/segment.go b/pkg/tcpip/transport/tcp/segment.go index 2091989cc..5ef73ec74 100644 --- a/pkg/tcpip/transport/tcp/segment.go +++ b/pkg/tcpip/transport/tcp/segment.go @@ -204,7 +204,7 @@ func (s *segment) payloadSize() int { // segMemSize is the amount of memory used to hold the segment data and // the associated metadata. func (s *segment) segMemSize() int { - return segSize + s.data.Size() + return SegSize + s.data.Size() } // parse populates the sequence & ack numbers, flags, and window fields of the |