summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/transport/tcp
diff options
context:
space:
mode:
authorAndrei Vagin <avagin@google.com>2019-03-20 09:57:03 -0700
committerShentubot <shentubot@google.com>2019-03-20 09:58:10 -0700
commit9f4e1cb7970d723cbc191c6ea304cb994d6d394d (patch)
tree7d8b8512c8f519daba2199f9bf9a758caf13ce88 /pkg/tcpip/transport/tcp
parent87cce0ec08b9d629a5e3a88be411b1721d767301 (diff)
netstack: adjust the sequence number after trimming the packet
PiperOrigin-RevId: 239417224 Change-Id: I14a9adc31a6330a79a6156c105969cd5f1f63d20
Diffstat (limited to 'pkg/tcpip/transport/tcp')
-rw-r--r--pkg/tcpip/transport/tcp/snd.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/tcpip/transport/tcp/snd.go b/pkg/tcpip/transport/tcp/snd.go
index 18365a673..d751c7d8e 100644
--- a/pkg/tcpip/transport/tcp/snd.go
+++ b/pkg/tcpip/transport/tcp/snd.go
@@ -745,6 +745,7 @@ func (s *sender) handleRcvdSegment(seg *segment) {
if datalen > ackLeft {
seg.data.TrimFront(int(ackLeft))
+ seg.sequenceNumber.UpdateForward(ackLeft)
break
}