diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-08-07 20:03:42 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-08-07 20:03:42 +0000 |
commit | abdd9fb7c165e6aae38d2af1bd83657ae4988caf (patch) | |
tree | b833ad10163ea6fc3866f9f35a02995c28cd4682 /pkg/tcpip/network | |
parent | e48a653bca635915220c4fb7b3102ef3b5b08888 (diff) | |
parent | 79cc4397fd99fbdd5c74ac5bb7804a463d7981d8 (diff) |
Merge 79cc4397 (automated)
Diffstat (limited to 'pkg/tcpip/network')
-rw-r--r-- | pkg/tcpip/network/arp/arp.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/tcpip/network/arp/arp.go b/pkg/tcpip/network/arp/arp.go index 60070874d..ea7296e6a 100644 --- a/pkg/tcpip/network/arp/arp.go +++ b/pkg/tcpip/network/arp/arp.go @@ -109,6 +109,7 @@ func (e *endpoint) HandlePacket(r *stack.Route, vv buffer.VectorisedView) { pkt.SetOp(header.ARPReply) copy(pkt.HardwareAddressSender(), r.LocalLinkAddress[:]) copy(pkt.ProtocolAddressSender(), h.ProtocolAddressTarget()) + copy(pkt.HardwareAddressTarget(), h.HardwareAddressSender()) copy(pkt.ProtocolAddressTarget(), h.ProtocolAddressSender()) e.linkEP.WritePacket(r, nil /* gso */, hdr, buffer.VectorisedView{}, ProtocolNumber) fallthrough // also fill the cache from requests |