diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-07-13 21:39:18 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-07-13 21:39:18 +0000 |
commit | 31942135c80031bda2fc1a68ed801cea0a7cce7d (patch) | |
tree | 9fd99c94fd1a8603d24fb6f8d581ad189c81eda9 /pkg | |
parent | e8bad4b856c4ad966333c72f2768244e6e5d5bc3 (diff) | |
parent | a287309d9ff0461842de1c487348c3032e5fdee4 (diff) |
Merge release-20200622.1-106-ga287309d9 (automated)
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/tcpip/link/fdbased/packet_dispatchers.go | 2 |
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() |