diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-08-28 02:03:49 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-08-28 02:03:49 +0000 |
commit | 90d102c3b64aebd3fa237167ea0e809eb4febd69 (patch) | |
tree | 84b3b493907e36c14c928236c14437ab96fe73d4 /pkg/tcpip/network/arp | |
parent | 8e4b17512e29c63e0600c0cc8a89b5a0bdcf70e7 (diff) | |
parent | 313c767b0001bf6271405f1b765b60a334d6e911 (diff) |
Merge 313c767b (automated)
Diffstat (limited to 'pkg/tcpip/network/arp')
-rw-r--r-- | pkg/tcpip/network/arp/arp.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/pkg/tcpip/network/arp/arp.go b/pkg/tcpip/network/arp/arp.go index ea7296e6a..fd6395fc1 100644 --- a/pkg/tcpip/network/arp/arp.go +++ b/pkg/tcpip/network/arp/arp.go @@ -112,11 +112,7 @@ func (e *endpoint) HandlePacket(r *stack.Route, vv buffer.VectorisedView) { 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 case header.ARPReply: - addr := tcpip.Address(h.ProtocolAddressSender()) - linkAddr := tcpip.LinkAddress(h.HardwareAddressSender()) - e.linkAddrCache.AddLinkAddress(e.nicid, addr, linkAddr) } } |