summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-07-13 21:39:18 +0000
committergVisor bot <gvisor-bot@google.com>2020-07-13 21:39:18 +0000
commit31942135c80031bda2fc1a68ed801cea0a7cce7d (patch)
tree9fd99c94fd1a8603d24fb6f8d581ad189c81eda9 /pkg
parente8bad4b856c4ad966333c72f2768244e6e5d5bc3 (diff)
parenta287309d9ff0461842de1c487348c3032e5fdee4 (diff)
Merge release-20200622.1-106-ga287309d9 (automated)
Diffstat (limited to 'pkg')
-rw-r--r--pkg/tcpip/link/fdbased/packet_dispatchers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/link/fdbased/packet_dispatchers.go b/pkg/tcpip/link/fdbased/packet_dispatchers.go
index f04738cfb..d8f2504b3 100644
--- a/pkg/tcpip/link/fdbased/packet_dispatchers.go
+++ b/pkg/tcpip/link/fdbased/packet_dispatchers.go
@@ -278,7 +278,7 @@ func (d *recvMMsgDispatcher) dispatch() (bool, *tcpip.Error) {
eth header.Ethernet
)
if d.e.hdrSize > 0 {
- eth = header.Ethernet(d.views[k][0])
+ eth = header.Ethernet(d.views[k][0][:header.EthernetMinimumSize])
p = eth.Type()
remote = eth.SourceAddress()
local = eth.DestinationAddress()