diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-10-31 00:15:09 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-10-31 00:15:09 +0000 |
commit | 2de2a361f28b7b7a98c3c29497c8284b82c83843 (patch) | |
tree | 1e8d19089052e39d5d189c970c26c959b6f1d3c4 /pkg/tcpip/transport/icmp | |
parent | c8b32980f2c8f5aec7b97fa5f06eb81733df93ad (diff) | |
parent | 3246040447c6d0a08cc12c5721480c06f77f5dfe (diff) |
Merge release-20190806.1-350-g3246040 (automated)
Diffstat (limited to 'pkg/tcpip/transport/icmp')
-rw-r--r-- | pkg/tcpip/transport/icmp/endpoint.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pkg/tcpip/transport/icmp/endpoint.go b/pkg/tcpip/transport/icmp/endpoint.go index 114a69b4e..33405eb7d 100644 --- a/pkg/tcpip/transport/icmp/endpoint.go +++ b/pkg/tcpip/transport/icmp/endpoint.go @@ -31,9 +31,6 @@ type icmpPacket struct { senderAddress tcpip.FullAddress data buffer.VectorisedView `state:".(buffer.VectorisedView)"` timestamp int64 - // views is used as buffer for data when its length is large - // enough to store a VectorisedView. - views [8]buffer.View `state:"nosave"` } type endpointState int @@ -767,7 +764,7 @@ func (e *endpoint) HandlePacket(r *stack.Route, id stack.TransportEndpointID, vv }, } - pkt.data = vv.Clone(pkt.views[:]) + pkt.data = vv e.rcvList.PushBack(pkt) e.rcvBufSize += pkt.data.Size() |