diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-09-23 09:32:42 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-09-23 09:32:42 +0000 |
commit | 0f688034971309cdab779c5030377eb88d4d5754 (patch) | |
tree | cf778633ff774ba3298d5a1f9e0e8a4abc667b7d /pkg/tcpip/network/arp | |
parent | 8f530839ccfbea4d8bfe49891b44d408beed0126 (diff) | |
parent | 99decaadd6da0df2d8ec70ddea9d754c9d71a584 (diff) |
Merge release-20200914.0-137-g99decaadd (automated)
Diffstat (limited to 'pkg/tcpip/network/arp')
-rw-r--r-- | pkg/tcpip/network/arp/arp.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/tcpip/network/arp/arp.go b/pkg/tcpip/network/arp/arp.go index cb9225bd7..81e286e80 100644 --- a/pkg/tcpip/network/arp/arp.go +++ b/pkg/tcpip/network/arp/arp.go @@ -238,6 +238,12 @@ func (*protocol) Parse(pkt *stack.PacketBuffer) (proto tcpip.TransportProtocolNu return 0, false, parse.ARP(pkt) } +// ReturnError implements stack.TransportProtocol.ReturnError. +func (*protocol) ReturnError(*stack.Route, tcpip.ICMPReason, *stack.PacketBuffer) *tcpip.Error { + // In ARP, there is no such response so do nothing. + return nil +} + // NewProtocol returns an ARP network protocol. func NewProtocol() stack.NetworkProtocol { return &protocol{} |