diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-04-27 19:30:05 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-04-27 19:30:05 +0000 |
commit | 78ea854d8b4053e084a87298f0d3f99ac1684473 (patch) | |
tree | f2c17744543bfb81ea8b3df199941a3b3082c063 /pkg/tcpip/network/arp/arp.go | |
parent | 423dc64b50359fac50ecce08d7a2815ed4607da2 (diff) | |
parent | 55f0c3316af8ea2a1fcc16511efc580f307623f6 (diff) |
Merge release-20200323.0-253-g55f0c33 (automated)
Diffstat (limited to 'pkg/tcpip/network/arp/arp.go')
-rw-r--r-- | pkg/tcpip/network/arp/arp.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pkg/tcpip/network/arp/arp.go b/pkg/tcpip/network/arp/arp.go index cf73a939e..7acbfa0a8 100644 --- a/pkg/tcpip/network/arp/arp.go +++ b/pkg/tcpip/network/arp/arp.go @@ -93,10 +93,7 @@ func (e *endpoint) WriteHeaderIncludedPacket(r *stack.Route, pkt stack.PacketBuf } func (e *endpoint) HandlePacket(r *stack.Route, pkt stack.PacketBuffer) { - v, ok := pkt.Data.PullUp(header.ARPSize) - if !ok { - return - } + v := pkt.Data.First() h := header.ARP(v) if !h.IsValid() { return |