diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-04-29 18:48:30 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-04-29 18:48:30 +0000 |
commit | aebcda8dc5e45a46c469e6fa7389743f8796d52c (patch) | |
tree | 58b95e814a4eab5b23e46c9c4dd2879a14a47fca /pkg/tcpip/stack | |
parent | 98460e46461029fd174df5d0b26daf73f4a3dbcc (diff) | |
parent | a41c5fe217e6c40e563669e0a888b33bc125fa88 (diff) |
Merge release-20210419.0-42-ga41c5fe21 (automated)
Diffstat (limited to 'pkg/tcpip/stack')
-rw-r--r-- | pkg/tcpip/stack/packet_buffer.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkg/tcpip/stack/packet_buffer.go b/pkg/tcpip/stack/packet_buffer.go index 646979d1e..9527416cf 100644 --- a/pkg/tcpip/stack/packet_buffer.go +++ b/pkg/tcpip/stack/packet_buffer.go @@ -364,9 +364,10 @@ func (d PacketData) PullUp(size int) (buffer.View, bool) { return d.pk.data.PullUp(size) } -// TrimFront removes count from the beginning of d. It panics if count > -// d.Size(). -func (d PacketData) TrimFront(count int) { +// DeleteFront removes count from the beginning of d. It panics if count > +// d.Size(). All backing storage references after the front of the d are +// invalidated. +func (d PacketData) DeleteFront(count int) { d.pk.data.TrimFront(count) } |